Oefenweb / ansible-postfix

Ansible role to set up postfix in Debian-like systems
MIT License
173 stars 82 forks source link

smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination #49

Closed oggers closed 6 years ago

oggers commented 6 years ago

I have a relayhost configured and when I start postfix I get this error in mail.err:

Jul 17 16:13:25 luna postfix/smtpd[30323]: fatal: in parameter smtpd_relay_restrictions or smtpd_recipient_restrictions, specify at least one working instance of: reject_unauth_destination, defer_unauth_destination, reject, defer, defer_if_permit or check_relay_domains

After manually adding to main.cf at least: smtpd_relay_restrictions = permit_sasl_authenticated,reject_unauth_destination the error went away.

Could you please add this option?

tersmitten commented 6 years ago

Can you make a pull request?

You might want to have a look at postfix_mydestination and only print it if it's a non-empty list

tersmitten commented 6 years ago

Fixed in #50