The following information applies to Postfix 2.1. Earlier
Postfix versions do not support the
receive_override_options feature.
The easiest approach is to configure ONE Postfix instance with
multiple SMTP server IP addresses in master.cf:
-
Two SMTP server IP addresses for mail from inside users
only, with header/body filtering turned off, and a local mail pickup
service with header/body filtering turned off.
/etc/postfix.master.cf:
# ==================================================================
# service type private unpriv chroot wakeup maxproc command
# (yes) (yes) (yes) (never) (100)
# ==================================================================
1.2.3.4:smtp inet n - n - - smtpd
-o
receive_override_options=
no_header_body_checks
127.0.0.1:smtp inet n - n - - smtpd
-o
receive_override_options=
no_header_body_checks
pickup fifo n - n 60 1 pickup
-o
receive_override_options=
no_header_body_checks
-
One SMTP server address for mail from outside users with
header/body filtering turned on via main.cf.
/etc/postfix.master.cf:
# =================================================================
# service type private unpriv chroot wakeup maxproc command
# (yes) (yes) (yes) (never) (100)
# =================================================================
1.2.3.5:smtp inet n - n - - smtpd