How To: Have qmail send to an external smtp server
11th January 2006 - By Aaron
So you have qmail, but you want it to send your message from your isp’s smtp server instead of your own. Well it’s actually pretty simple…
First SSH to your server and create a file called /var/qmail/control/smtproutes.
Edit it to look like this
/var/qmail/control/smtproutes
:smtp.myisp.comRestart qmail for good measure with /etc/rc.d/init.d/qmail reload
You’re done!
April 28th, 2006 at 8:23 am
Thank you sooo much! I have been looking ALL over for this solution!
August 20th, 2006 at 6:15 pm
Thankyou Stucco, this solved our problem of getting too many bounce messages with ‘we don’t accept mail from this SMTP’.