LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Postfix - Multiple ports and multiple relayhost (http://www.linuxquestions.org/questions/linux-server-73/postfix-multiple-ports-and-multiple-relayhost-905294/)

saraza 09-27-2011 04:44 PM

Postfix - Multiple ports and multiple relayhost
 
Hi,

I know I can have multiple ports listening, but can I have different relay host for each one?
I tried setting up port tcp/26 in master.cf:

26 inet n - - - - smtpd
-o smtpd_sasl_auth_enable=yes
-o smtpd_sasl_password_maps=static:user: pass
-o smtpd_sasl_security_options=noanonymous
-o smtpd_tls_security_level=may
-o header_size_limit=4096000
-o relayhost=[relayhost]: port

Will that work?

Thanks!

rustek 10-02-2011 06:11 PM

I'm not familiar with your first line, it may be correct I just don't know, if I did it, it would look like this;
Code:

75.165.246.13:26  inet  n - - - - smtpd
I don't think you need the brackets so something like;
Code:

-o relayhost=whatever.com:2525
Would probably work, I'm not an expert...

Russ


All times are GMT -5. The time now is 01:18 AM.