Alias Domains in postfix_domains wrong way around?
Hi,
we have an "Unusual Postfix configuration" and use "Alias Domains" to work around. However, it looks like "mailman aliases" generates the postfix_domains map the wrong way around, resulting in postfix "Relay access denied" errors for mails received from outside. Didn't notice at first since I tried locally of course.
Is my understanding correct that postfix_domains should have the true (externally visible) domains as keys, and values that basically don't matter, or should it have both the real domains and their alias names as keys? With such a convoluted setup, my brain twists a little.
For now, I'm listing the real domains explicitly, that seems to work for the local and non-local cases.
Cheers, Hans-Martin
On 10/24/20 10:34 AM, Hans-Martin Mosner wrote:
Is my understanding correct that postfix_domains should have the true (externally visible) domains as keys, and values that basically don't matter, or should it have both the real domains and their alias names as keys? With such a convoluted setup, my brain twists a little.
I'm not sure what's going on in your case. I have two separate servers that use alias domains, and for both of them, the postfix_domains file lists the alias domain as the key and the real domain as the value. This works fine with the Postfix settings
transport_maps = hash:/path-to-mailman/var/data/postfix_lmtp
relay_domains = hash:/path-to-mailman/var/data/postfix_domains
virtual_alias_maps = hash:/path-to-mailman/var/data/postfix_vmap
Is this what you have?
Note that the address should be remapped from list@true_domain to
list@alias_domain by virtual_alias_maps prior to checking relay_domains.
Perhaps you have some other unusual thing in your Postfix configuration.
What does postconf -n
report?
This is what I see in the mail log for a typical delivery
Oct 18 13:30:44 example postfix/lmtp[13745]: 108CA1F8A03:
to=<list@x.example.org>, orig_to=<list@example.org>,
relay=127.0.0.1[127.0.0.1]:8024, delay=0.08, delays=0.05/0.01/0/0.02,
dsn=2.0.0, status=sent (250 Ok)
where example.org is the true domain and x.example.org is the alias domain.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Hans-Martin Mosner
-
Mark Sapiro