1
I have a Postfix 2.5.1 on a Debian 4.0 PPC server. I intend to use this as an SMTP relay for outgoing email from my mobile phone (as my phone service provider recently dropped their SMTP server).
The Postfix server is behind a NAT router to which I have added some port-forwarding rules for inbound SMTP. This works OK.
Currently the main.cf
has a large set of restrictions listed under smtpd_recipient_restrictions
which are not needed and which end with permit
(which I understand is the default anyway if all rules are inapplicable)
I don't know why the existing main.cf
doesn't have rules organised under other sections like smtpd_client_restrictions
etc as the Postfix docs do. However I feel it's best for me to use the conventions in the main.cf supplied with the software rather than re-organise.
in main.cf can I simplify my restrictions to this?
smtpd_recipient_restrictions =
permit_mynetworks
permit_sasl_authenticated
reject
Your statement about
– masegaloeh – 2014-05-09T12:53:34.360smtpd_client_restrictions
applied before AUTH is true when parametersmtpd_delay_reject
=no
. In the default configuration however, the value ofsmtpd_delay_reject
isyes
. See this page for the reason.