On 21/07/2015 1:44 AM, Viktor Dukhovni wrote:

Try:

     mynetworks = 127.0.0.1/32, hash:/etc/pkg/etc/postfix/network_table

That fixed it


smtpd_recipient_restrictions =
  permit_mynetworks
  permit_sasl_authenticated
  reject_unauth_destination
  reject_unknown_recipient_domain
  reject_unverified_recipient

This requires SASL or presence in mynetworks.

smtpd_relay_restrictions = permit_mynetworks

This is silly, set it either empty, or better:

     # Restrict relay to trusted or authenticated clients
     smtpd_relay_restrictions =
        permit_mynetworks,
        permit_sasl_authenticated,
        reject_unauth_destination

at which point:

     smtpd_recipient_restrictions =
        permit_mynetworks,
        permit_sasl_authenticated,
        reject_unknown_recipient_domain,
        reject_unverified_recipient


network_table contains :

more network_table
203.6.241.0/24 OK
127.0.0.0/8 OK
192.168.2.0 OK

Hash tables don't support CIDR syntax.

     mynetworks = cidr:/etc/pkg/etc/postfix/network_table

That also fixed it, now using all the networks defined in network table

Thank you!

Carl



Reply via email to