Solução - Postfix versão 2.7 ou acima é necessário:
/etc/postfix/master.cf
#smtp inet n - n - - smtpd
127.0.0.1:smtp inet n - n - - smtpd
-o syslog_name=postfix-localhost
-o smtp_helo_name=localhost
-o smtp_bind_address=127.0.0.1
-o myhostname=localhost
65.xxx.xxx.100:smtp inet n - n - - smtpd
-o syslog_name=postfix-mail.abc.com
-o smtp_helo_name=mail.abc.com
-o smtp_bind_address=65.xxx.xxx.100
-o myhostname=mail.abc.com
65.xxx.xxx.200:smtp inet n - n - - smtpd
-o syslog_name=postfix-mail.xyz.com
-o smtp_helo_name=mail.zyx.com
-o smtp_bind_address=65.xxx.xxx.200
-o myhostname=mail.xyz.com
abc-out unix - - n - - smtp
-o smtp_bind_address=65.xxx.xxx.100
-o smtp_helo_name=mail.abc.com
-o syslog_name=postfix-mail.abc.com
xyz-out unix - - n - - smtp
-o smtp_bind_address=65.xxx.xxx.200
-o smtp_helo_name=mail.xyz.com
-o syslog_name=postfix-mail.xyz.com
/etc/postfix/main.cf
sender_dependent_default_transport_maps = hash:/etc/postfix/sender_transport
/ etc / postfix / sender_transport
# Use source IP - 65.xxx.xxx.100
@abc.com abc-out:
@example.com abc-out:
# Use source IP - 65.xxx.xxx.200
@xyz.com xyz-out:
Executar comando para gerar o hash db
postmap hash:/etc/postfix/sender_transport
Reinicie / recarregue o postfix
service postfix reload
Teste
[root@localhost ~]# telnet 65.xxx.xxx.200 25
Trying 65.xxx.xxx.200...
Connected to 65.xxx.xxx.200.
Escape character is '^]'.
220 mail.xyz.com ESMTP Postfix
Envio de teste de e-mail
[root@localhost ~]# telnet localhost 25
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 localhost ESMTP Postfix
helo localhost
250 localhost
mail from: [email protected]
250 2.1.0 Ok
rcpt to: [email protected]
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
Hello world!
.
250 2.0.0 Ok: queued as 93E708207BA
Chegou ao Gmail na Caixa de entrada > Mostrar original
Delivered-To: [email protected]
Received: by 10.xxx.xxx.xxx with SMTP id w64csp782609qgd;
Tue, 9 Dec 2014 09:35:57 -0800 (PST)
X-Received: by 10.xxx.xxx.xxx with SMTP id o28mr4132552yha.168.1418146557180;
Tue, 09 Dec 2014 09:35:57 -0800 (PST)
Return-Path: <[email protected]>
Received: from mail.xyz.com ([65.xxx.xxx.200])
by mx.google.com with ESMTPS id n10si743294ykc.114.2014.12.09.09.35.56
for <[email protected]>
(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Tue, 09 Dec 2014 09:35:56 -0800 (PST)
...
...
Message-Id: <[email protected]>
Date: Tue, 9 Dec 2014 12:37:11 -0500 (EST)
From: [email protected]
Hello world!
Voila !! veja-o usado 65.xxx.xxx.200
endereço IP para enviar e-mail ..
Received: from mail.xyz.com ([65.xxx.xxx.200])