Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in /shared/infoadmin/public_html/kb/header.php on line 13
ServerPronto HowTo Sales: 1-877-24-PRONTO   Live Chat   
Postfix - Using a Smarthost to relay email

Warning: Use of undefined constant P1 - assumed 'P1' (this will throw an Error in a future version of PHP) in /shared/infoadmin/public_html/kb/page.php on line 49
Linux -> Email -> Postfix - Using a Smarthost to relay email



Postfix - Using a Smarthost to relay email

Configuring PostFix to use a Smarthost

Routing all mails to a smarthost :

These instructions assume the postfixconfig files live in /etc/postfix/main.cf

In /etc/postfix/main.cfadd the line:

relayhost = mailout.serverpronto.com


Routing all mails for a specific domain to a smarthost :

Add a line to /etc/postfix/transport:

example.com smtp:mailout.serverpronto.com

generate a postmap file :

postmap hash:/etc/postfix/transport

To use the transport file, add or edit a line in /etc/postfix/main.cf:

transport_maps = hash:/etc/postfix/transport

Restart Postfix and all mail. The mail for selected domains should go trough the Smarthost.




Information originally posted at http://help.comodo.com/topic-157-1-288-4540-.html