PDA

View Full Version : ISPManager 5 + Postfix outgoing IP by domain don't work


MV1980
07-08-2014, 11:49 AM
Hi,

On IPSManager 5 documentation (http://en.5.ispdoc.com/index.php/Mail_configuration#General_notes_about_Postfix).

It says that postfix can bind outgoing email to IP.

We have checked and the file "/etc/postfix/ssd_transport_maps.regexp" e created, and also "master.cf" is correct:

/etc/postfix/ssd_transport_maps.regexp

@domain1.com\.com$/ domain1.com:

/etc/postfix/master.cf

domain1.com unix - - n - - smtp -o syslog_name=postfix-192.168.0.103 -o smtp_bind_address=192.168.0.103


But when we try to send and email as "domain1.com" the email is sent by the shared IP "192.168.0.102" instead of "192.168.0.103".


The server has real IPs instead of internal IPs.

Maybe the problem is that postfix used on Centos is 2.6 instead of 2.7 ?

fly
07-10-2014, 10:57 AM
Could you please create a ticket for support team in my.ispsystem.com.

Lorelei
07-17-2014, 11:38 AM
MV1980, yes, this feature works for postfix 2.7

also you should check main.cf for strings:
------------------------------------------------------------------------------
sender_dependent_default_transport_maps = regexp:/etc/postfix/domainips
default_transport = smtp:
------------------------------------------------------------------------------

see documentation here http://en.ispdoc.com/index.php/Sending_email_from_a_specified_IP-address_in_an_email_domain