Qmail relay to smarthost: How to route all mail to a smarthost Qmail relay to smarthost: How to route all mail to a smarthost, qmail relay, qmail smtp, qmail route mail to smarthost
Unlike Exim/Postfix/Sendmail, Qmail is a modular application. It means that each setting is kept in a separate configuration file and each MTA function is performed by a separate binary file from the Qmail pack (qmail-smtp receives the mail, qmail-queue manages the queue, qmail-send sends it further, qmail-rspawn for remote recipients, qmail-lspawn for local recipients, qmail-inject as a sendmail interface and so on). This is because qmail was thought with security concerns in mind, by DJB.
The file where qmail relaying to smarthost settings are kept is named smtproutes and is usually found in /var/qmail/control/
So, in your vi editor, open smtproutes file and add your lines:
(or manually add ":smtp.qmail.com" line (without qutoes) to the file.) this command will set qmail that all your mails will be routed to smtp.qmail.com (will remove other existing lines, so be careful)
Qmail: routing all mails for a specific domain to a smarthost
Hello, Guest ! You can Login or Register to www.ivorde.ro!
Post comment:
2 comment(s) to Qmail relay to smarthost: How to route all mail to a smarthost:
1. Re: Qmail relay to smarthost: How to route all mail to a smarthost
Or maybe not by Andrei
at March 31st, 2009 - 16:49
Hi Mouse I would like to disagree with your 2nd statement:
yahoo.com:smtp.gmail.com mandrei05
and the qmail-send log from a mail sent to my yahoo mailbox: delivery 2937: success: 72.14.221.109_accepted_message./Remote_host_said:_250_2.0.0_OK_1238507169_4sm5225766fge.28/
You should also try it. As for the 1st statement, you are right. My qmail is set to use STARTTLS command first.
2. Re: Qmail relay to smarthost: How to route all mail to a smarthost
Issues with this. by Anony Mouse
at February 27th, 2009 - 12:40
There's an inherant problem with this information, Gmail will not accept any emails without the STARTTLS command being sent before the login intormation, and because gmail uses port 587, your information is also incorrect there as well.
:smtp.gmail.com:587 gmailuser gmailpassword
would be more appropriate, but as stated abouve, this still will not work as gmail requires you to sent the STARTTLS command before you can login, and the end result will be your message being bounced back to you.
Designed and developed by Andrei Manescu. Optimized for Mozilla Firefox.
Copyright 2007 Andrei Manescu
All trademarks and copyrights on this page are owned by their respective owners. Comments are owned by those who posted them.