On 4/6/21 3:37 PM, David Nicol wrote:
Thanks for your help. This is the postfix log around the time of the email from my account david.nicol@xxxxx.co.uk, which is not a member of testmail.
Apr 5 22:12:02 ip-172-26-1-182 postfix/qmgr[1716]: 562AD3EB8F: from=<david.nicol@xxxxx.co.uk>, size=11241, nrcpt=1 (queue active) Apr 5 22:12:02 ip-172-26-1-182 postfix/local[9468]: 562AD3EB8F: to=<testmail@localhost>, relay=local, delay=0.13, delays=0.04/0.01/0/0.09, dsn=2.0.0, status=sent (delivered to command: /usr/lib/mailman/mail/mailman post testmail)
This is your post to testmail@localhost being delivered to Mailman.
Apr 5 22:12:05 ip-172-26-1-182 postfix/smtp[9473]: 6D0973EB91: to=<testmail-owner@lists.xxx.org.uk>, relay=email-smtp.eu-west-2.amazonaws.com[x.x.x.x]:587, delay=0.25, delays=0/0.03/0.11/0.1, dsn=2.0.0, status=sent (250 Ok 010b0178a417c95d-aabe4f9d-9d5d-4508-849e-8902dc08c9b7-000000)
This is the message from Mailman to testmail-owner@lists.xxx.org.uk, but Postfix is not delivering it to Mailman but is realying it to email-smtp.eu-west-2.amazonaws.com.
In the postfix main.cf file, i have alias_maps = hash:/etc/aliases, hash:/usr/lib/mailman/data/aliases alias_database = hash:/etc/aliases
Good.
postfix main.cf already had recipient_delimiter = +
- Ran the bin/genaliases script - checking file ownershp and edited main.cf to add in the map to the aliases
alias_maps = hash:/etc/aliases, hash:/usr/lib/mailman/data/aliases
part of /usr/lib/mailman/data/aliases is:
# STANZA START: testmail # CREATED: Fri Feb 5 20:25:21 2021 testmail: "|/usr/lib/mailman/mail/mailman post testmail" testmail-admin: "|/usr/lib/mailman/mail/mailman admin testmail" testmail-bounces: "|/usr/lib/mailman/mail/mailman bounces testmail" testmail-confirm: "|/usr/lib/mailman/mail/mailman confirm testmail" testmail-join: "|/usr/lib/mailman/mail/mailman join testmail" testmail-leave: "|/usr/lib/mailman/mail/mailman leave testmail"
The directory listing for: ls -l /usr/lib/mailman/data/alias* is -rw-rw-r-- 1 mailman mailman 3595 Feb 5 20:50 aliases -rw-rw-r-- 1 mailman mailman 12288 Feb 5 20:50 aliases.db
The above lines seem misplaced. Assuming that the following are also in /usr/lib/mailman/data/aliases, that is correct.
testmail-owner: "|/usr/lib/mailman/mail/mailman owner testmail" testmail-request: "|/usr/lib/mailman/mail/mailman request testmail" testmail-subscribe: "|/usr/lib/mailman/mail/mailman subscribe testmail" testmail-unsubscribe: "|/usr/lib/mailman/mail/mailman unsubscribe testmail" # STANZA END: testmail
with similar entries for the other mailing lists.
- Also configured amazon SES in postfix for outgoing email sending
- set up systemctl to autorun mailman on reboot.
So what is the output from postconf -n
and are there any mailman
aliases in /etc/aliases. And what is the content of Postfix transport maps
Something in Postfix is relaying mail for testmail-owner to email-smtp.eu-west-2.amazonaws.com but delivering mail for testmail to Mailman.
It seems that either there is another alias for testmail that trumps the AWS relay but doesn't include the other list addresses or there is something that exempts the testmail address from the AWS relay but doesn't exempt the other addresses.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan