Charles Marcus wrote, at 05/06/2009 08:48 AM: > On 5/6/2009 8:37 AM, Jorey Bump wrote: >>>> I modified master.cf and configure submission that way: >>>> submission inet n - n - - smtpd >>>> -o smtpd_enforce_tls=yes >>>> -o smtpd_sasl_auth_enable=yes >>>> -o smtpd_client_restrictions=permit_sasl_authenticated,reject > >>> What version of postfix was this? >>> >>> I believe newer versions (I'm on 2.5.6) should be something like: >>> >>> submission inet n - n - - smtpd >>> -o smtpd_tls_security_level=encrypt >>> -o smtpd_tls_auth_only=yes >>> -o smtpd_client_restrictions=permit_sasl_authenticated,reject > >> The OP might also benefit from changing the last line to: >> >> -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject >> >> This will override the corresponding smtpd_recipient_restrictions in >> main.cf and provide a simpler configuration appropriate to the >> submission service. Tweak as needed. > > Hmmm... I'm wondering what the effective difference is (maybe I should > change mine too?)...
In this particular case, either will probably just work. The main advantage is that it matches the approach used in main.cf (handling all restrictions in smtpd_recipient_restrictions), so the override makes it possible to avoid restrictions specifically targeting the server's role as an MX. Another minor advantage is that the configuration will continue to work if permit_sasl_authenticated is removed from smtpd_recipient_restrictions in main.cf (if the decision is ever made to disallow submission on port 25, restricting authenticated users to submission port 587). It's slightly more portable, but only when assuming the common practice of handling all restrictions in smtpd_recipient_restrictions.