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: add support for -o inet_protocols=ipv4 under just the smtp setting #4467

Open
marner2 opened this issue Jan 14, 2025 · 0 comments
Open

Comments

@marner2
Copy link

marner2 commented Jan 14, 2025

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

Is your feature request related to a problem? Please describe.
I get emails rejected from GMail randomly based on how they are feeling about PTR records with ipv6. However, I would like to continue receiving emails on my ipv6 addresses.

Describe the solution you'd like
I would like to be able to specify the smtp protocol from the user interface. Specifically, the solution to the problem described here on the official postfix documentation: https://www.postfix.org/postconf.5.html#smtp_address_preference

The setting "smtp_address_preference = ipv4" is not a solution for remote servers that flag email received over IPv6 as more 'spammy' (the client IPv6 address has a bad or missing PTR or AAAA record, bad network neighbors, etc.). Instead, configure Postfix to receive mail over both IPv4 and IPv6, and to deliver mail over only IPv4.

/etc/postfix/main.cf:
   inet_protocols= all
/etc/postfix/master.cf
    smtp ...other fields... smtp -o inet_protocols=ipv4

Describe alternatives you've considered
I could edit the /usr/local/postfix/master.cf file directly, but that gets overwritten every time I change any other postfix settings. I could also disable ipv6 entirely, but then mail delivered to my ipv6 addresses would get rejected.

I could also use a separate postfix instance to send mail directly rather than relaying through the firewall, but I prefer to keep all of those settings centralized with the incoming server as well.

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

No branches or pull requests

1 participant