Ubuntu relay email server through ISPs SMTP
Easy way to set-up fast, simple and reliable email relay server which will work with ISPs smtp server.
1. Install EXIM4 server: apt-get install exim4 exim4-config
2. run : dpkg-reconfigure exim4-config; choose following config:
a: mail sent by smarthost; no local mail
b: you domain name (example.com)
c: loopback address
d: nothing
e: domain name (example.com)
f: ISP's host name - smtp.comcast.net
g: No
h: Yes
3. Test, using php, perl or install mail utils: apt-get install mailutils :
a. type: mail your@email.com
b. cc:
c: subject
d: body
e type single period (.) to send

Thanks for this!!!
Been trying to get this working for absolutely ages. Your simple description of what to do is excellent. Thank you.
THANK YOU SO MUCH!
I've been wanting to do this for so long, and you just made it so incredibly simple.
I thought I was going to have to install postfix from scratch, but NO you made it so fast and easy.
Everything is working so great now!
Thank you so much for this tutorial. It works great. No more 'The IP you're using to send email is not authorized...' errors.