On 28/06/24 19:01, Curtis J Blank via Postfix-users wrote:
What I am looking for is pretty simple. How to get it to work with
"inet_protocols = all" like my existing server is currently set up to do
and not be limited to ipv4 only.
And it is already set to use 127.0.0.1
No it is not, it is set to use localhost which is very different from
[127.0.0.1]. If you look at your /etc/hosts file you will find
localhost entries for both 127.0.0.1 and ::1, so in this case Postfix is
choosing ::1 over 127.0.0.1
so why it is using [::1] instead
when the old server uses 127.0.01, that is part of the mystery. The
configs are exactly the same yet they operate differently.
Either you have an old (2.8 or older) version of postfix,
smtp_address_preference is set to ipv6, you do not have
compatibility_level set (or it is set to 0), or your /etc/hosts file
only has an ipv6 (::1) entry for localhost. At an educated guess I
would say that you don't have compatibility_level set and so postfix is
falling back to the pre-2.8 default for smtp_address_preference which is
ipv6.
I want to know why. If you don't know and understand the root cause of
something that is not a good position to be in going forward. Good
enough is not good enough...
Please re-read what Ralph told you, changing the postfix setting from
localhost to [127.0.0.1] is a perfectly valid way to resolve the issue
and that was the suggestion he gave.
Other ways that you can likely resolve the issue:
* Set compatibility_level to 2 or higher (do note that this will affect
other settings as well).
* Explicitly set smtp_address_preference to ipv4.
Another thing of note, judging from your log entries SpamAssassin is
listening on both 127.0.0.1 and ::1 but for some reason is rejecting the
message sent to ::1, but not the one sent to 127.0.0.1. That is
something you should check in your SpamAssassin settings. It is likely
that you have SA explicitly configured to accept mail from 127.0.0.1 but
not from ::1, changing that to localhost or to allow both 127.0.0.1 and
::1 would likely be another way to resolve the issue.
Peter
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org