Oefenweb / ansible-postfix

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

set postfix_smtpd_relay_restrictions to default postfix value #97

Closed manelclos closed 3 years ago

manelclos commented 4 years ago

Hi,

After using this role with ubuntu-focal:

mail.log:

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

Setting postfix_smtpd_relay_restrictions to postfix's default value solves the issue: http://www.postfix.org/postconf.5.html#smtpd_relay_restrictions

Would you accept a PR to defaults and README.md?

tersmitten commented 3 years ago

You can use postfix_compatibility_level