Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postfix_smtpd_recipient_restrictions is mandatory to set #122

Closed
igorshergin opened this issue Feb 3, 2022 · 2 comments
Closed

postfix_smtpd_recipient_restrictions is mandatory to set #122

igorshergin opened this issue Feb 3, 2022 · 2 comments

Comments

@igorshergin
Copy link

Not sure which version of Postfix started that, but I get non-working postfix with fatal error while trying your playbook examples:

Feb 3 13:07:13 git postfix/smtpd[75989]: 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

So it seems
postfix_smtpd_recipient_restrictions:
- check_relay_domains
is mandatory for the simplest relay configuration.

@kso512
Copy link

kso512 commented Apr 18, 2022

Encountered this error in Ubuntu 22.04 beta, using the "For Gmail support" configuration.

Adding this raw option declaration worked on the Ubuntu system showing the error, as well as the Debian 10 and 11 systems under the same configuration, meaning it is backward compatible:

postfix_raw_options:
  - "smtpd_relay_restrictions = reject_unauth_destination"

More context from the Ubuntu system that was affected:

$ apt-cache show postfix
Package: postfix
Architecture: amd64
Version: 3.6.4-1ubuntu1

@tersmitten
Copy link
Member

smtpd_relay_restrictions is supported, so probably no need to use postfix_raw_options anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants