To enable SASL for accepting mail from other users, open the [http://tools.ietf.org/html/rfc6409 "Message submission"] port (TCP 587) in {{ic|/etc/postfix/master.cf}}, by uncommenting these lines (which are there by default, just commented):

−

<pre>

+

−

srcpac -Sb postfix

+

−

</pre>

+

−

This will download and build '''Postfix''' with '''SASL''' support.

+

{{bc|<nowiki>

+

submission inet n - n - - smtpd

+

-o syslog_name=postfix/submission

+

-o smtpd_tls_security_level=encrypt

+

-o smtpd_sasl_auth_enable=yes

+

-o smtpd_reject_unlisted_recipient=no

+

# -o smtpd_client_restrictions=$mua_client_restrictions

+

# -o smtpd_helo_restrictions=$mua_helo_restrictions

+

# -o smtpd_sender_restrictions=$mua_sender_restrictions

+

-o smtpd_recipient_restrictions=permit_sasl_authenticated,reject

+

-o milter_macro_daemon_name=ORIGINATING

+

</nowiki>}}

−

An example line for the <code>/etc/postfix/main.cf</code> file to enable the SASL is below.

+

Note that this also enables SSL, so if you do not have a SSL certificate, keep the "smtpd_tls_security_level" option commented out.