Here is my personal MX & MSA on single Linux box.
/etc/postfix/ is null
/etc/postfix-msa/ is the mail submission agent on port 587 and smpts on port
465
/etc/postfix-mx/ is the mail exchanger on port 25
/etc/postfix/main.cf:
# Mail Submission Agent (MSA)
# Mail Exchanger (MX)
master_service_disable = inet
multi_instance_wrapper = ${command_directory}/postmulti -p --
multi_instance_enable = yes
#multi_instance_directories = /etc/postfix-xout /etc/postfix-xin
/etc/postfix-msa /etc/postfix-mx
multi_instance_directories = /etc/postfix-msa /etc/postfix-mx
#multi_instance_name = postfix-null
#syslog_facility = $multi_instance_name
syslog_facility = local1
/etc/postfix/master.cf:
#smtp inet n - n - - smtpd
#submission inet n - n - - smtpd
# -o smtpd_tls_security_level=encrypt
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
# -o milter_macro_daemon_name=ORIGINATING
#smtps inet n - n - - smtpd
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
# -o milter_macro_daemon_name=ORIGINATING
/etc/postfix-msa/main.cf:
# Multi-Instance Settings
# Mail Submission Agent (MSA)
master_service_disable =
authorized_submit_users =
multi_instance_group = msa
multi_instance_name = postfix-msa
multi_instance_enable = yes
#syslog_facility = $multi_instance_name
syslog_facility = local2
/etc/postfix-msa/master.cf:
#smtp inet n - n - - smtpd
submission inet n - n - - smtpd
-o smtpd_tls_security_level=may
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
-o milter_macro_daemon_name=ORIGINATING
smtps inet n - n - - smtpd
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
-o milter_macro_daemon_name=ORIGINATING
/etc/postfix-mx/main.cf:
# Multi-Instance Settings
# Mail Exchanger (MX)
master_service_disable =
authorized_submit_users = root
multi_instance_group = mx
multi_instance_name = postfix-mx
multi_instance_enable = yes
#syslog_facility = $multi_instance_name
syslog_facility = local3
/etc/postfix-mx/master.cf:
smtp inet n - n - - smtpd
#submission inet n - n - - smtpd
# -o smtpd_tls_security_level=encrypt
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
# -o milter_macro_daemon_name=ORIGINATING
#smtps inet n - n - - smtpd
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
# -o milter_macro_daemon_name=ORIGINATING
--------------------------------------------------
From: "John Levine" <jo...@iecc.com>
Sent: Monday, November 08, 2010 7:28 PM
To: <postfix-users@postfix.org>
Subject: Port 587 submit setup
A friend is trying to set up a Postfix submit server on port 587, so
it requires SMTP AUTH but doesn't use the DNSBLs that his regular port
25 server uses.
This is surely a FAQ, but we must both be very nearsighted because we
can't find it. Can someone remind us where it explains how to set up
a SUBMIT server with a different config from one's regular server?
Tnx,
John