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

Unable to send email even when authenticated #225

Open
imro2 opened this issue Jan 30, 2025 · 1 comment
Open

Unable to send email even when authenticated #225

imro2 opened this issue Jan 30, 2025 · 1 comment

Comments

@imro2
Copy link

imro2 commented Jan 30, 2025

I just spent hours researching this. Could not send email if even when SASL authentication succeeded. I was getting Client host rejected: Access denied; and reviewed all the polices I copied from the example. I could not come up with a reason. Only after adding POSTFIX_debug_peer_list: host-from-which-i-am-sending.com did I get a clue.

It turned out to be the this default (for this docker) policy:

smtpd_client_restrictions=permit_mynetworks,reject

It would be great if permit_sasl_authenticated was part of the policy by default so other people don't have to go through this.

I solved it for my self by adding this to my docker-compose:

POSTFIX_smtpd_client_restrictions: "permit_mynetworks, permit_sasl_authenticated, reject"

Hopefully it will help other searching for a similar issue.

@bokysan
Copy link
Owner

bokysan commented Jan 30, 2025

Hm, you are correct. That change would make sense. Thanks for the comment.

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

No branches or pull requests

2 participants