Andreas Ziegler:
> Hi,
>
> a postfix server that is listening on more than IP - each for another
> internal service - is sending them out to the recipients using one
> specific IP.
> Is it possible to specify, that mails coming in on IP 1.2.3.4 have to
> use another outgoing IP than mails coming in on other IPs?
> I know it is possible to use the domain to differentiate the outgoing
> IP, but every mail is using the same domain, so that is not an option.
> I read that one could set up multiple postfix instances - but i hope
> there is an easier way using the one postfix instance that is already
> running.
> The postfix version that is running: 2.9.1-4 (ubuntu precise)
>
/etc/postfix/master.cf:
# SMTP server.
1.2.3.4 .. .. .. smtpd
-o content_filter=smtp_1_2_3_4:
# SMTP client.
smtp_1_2_3_4 .. .. .. smtp
-o smtp_bind_address=1.2.3.4
It's a hack, but it is a supported hack.
Wietse