[Mailman-Users] [MASSMAIL] Re: restrict subscription, unsubscription and send mails in mailman list

Mark Sapiro mark at msapiro.net
Sun Nov 1 11:31:47 EST 2015


On 11/01/2015 12:28 AM, Amaury Viera Hernández wrote:
> 
> Thanks for your quickly answer. Everything is fine but I have another
> problem now. I have created the mailman alias in MySQL.


I'm not sure what 'mailman' alias you created. This should not be
needed. See below.


> When a user
> request to the list administrator the subscription to the list the
> administrator, the list administrator is not receiving the mail. In the
> postfix logs appear this messages:
> Nov  1 00:26:14 mailserver postfix/smtpd[7055]: connect from
> localhost[127.0.0.1]
> Nov  1 00:26:15 mailserver postfix/smtpd[7055]: 30F2021402:
> client=localhost[127.0.0.1]
> Nov  1 00:26:16 mailserver postfix/cleanup[7111]: 30F2021402:
> message-id=<mailman.0.1446351974.7879.mailman at dominio.pdc.cu>
> Nov  1 00:26:16 mailserver postfix/qmgr[1953]: 30F2021402:
> from=<mailman-bounces at dominio.pdc.cu>, size=1200, nrcpt=2 (queue active)
> Nov  1 00:26:16 mailserver postfix/smtpd[7055]: disconnect from
> localhost[127.0.0.1]


Above is receipt of message-id
<mailman.0.1446351974.7879.mailman at dominio.pdc.cu> (a Mailman generated
ID) apparently from the 'mailman' list with Postfix ID 30F2021402.


> Nov  1 00:26:32 mailserver postfix/smtpd[7107]: connect from
> localhost[127.0.0.1]
> Nov  1 00:26:32 mailserver postfix/smtpd[7107]: D814621432:
> client=localhost[127.0.0.1]
> Nov  1 00:26:32 mailserver postfix/smtpd[7108]: connect from
> localhost[127.0.0.1]
> Nov  1 00:26:32 mailserver postfix/cleanup[7061]: D814621432:
> message-id=<mailman.0.1446351974.7879.mailman at dominio.pdc.cu>
> Nov  1 00:26:32 mailserver postfix/smtpd[7108]: E10EE21459:
> client=localhost[127.0.0.1]
> Nov  1 00:26:32 mailserver postfix/qmgr[1953]: D814621432:
> from=<mailman-bounces at dominio.pdc.cu>, size=2649, nrcpt=1 (queue active)
> Nov  1 00:26:32 mailserver postfix/smtpd[7107]: disconnect from
> localhost[127.0.0.1]
> Nov  1 00:26:32 mailserver postfix/cleanup[7111]: E10EE21459:
> message-id=<mailman.0.1446351974.7879.mailman at dominio.pdc.cu>

And above are two more receipts of the same message with Postfix IDs
D814621432 and E10EE21459.


> Nov  1 00:26:32 mailserver amavis[1665]: (01665-06) Passed CLEAN
> {RelayedInternal}, MYNETS/MYUSERS LOCAL [127.0.0.1]:36203 [127.0.0.1]
> <mailman-bounces at dominio.pdc.cu> ->
> <mailman-owner at listas.dominio.pdc.cu>, Queue-ID: 30F2021402, Message-ID:
> <mailman.0.1446351974.7879.mailman at dominio.pdc.cu>, mail_id:
> d0iNH8sq7q2i, Hits: -0.621, size: 1200, queued_as: D814621432,
> dkim_new=dkim:dominio.pdc.cu, 16692 ms

This is Postfix ID 30F2021402 passing through amavis and being requeued
as D814621432 (out of sequence as D814621432 was received above).


> Nov  1 00:26:32 mailserver postfix/qmgr[1953]: E10EE21459:
> from=<mailman-bounces at dominio.pdc.cu>, size=2623, nrcpt=1 (queue active)
> Nov  1 00:26:32 mailserver postfix/smtpd[7108]: disconnect from
> localhost[127.0.0.1]
> Nov  1 00:26:33 mailserver amavis[1667]: (01667-06) Passed CLEAN
> {RelayedInternal}, MYNETS/MYUSERS LOCAL [127.0.0.1]:36203 [127.0.0.1]
> <mailman-bounces at dominio.pdc.cu> -> <auditor at dominio.pdc.cu>, Queue-ID:
> 30F2021402, Message-ID:
> <mailman.0.1446351974.7879.mailman at dominio.pdc.cu>, mail_id:
> 8RQ7kxJdlJqn, Hits: -0.621, size: 1200, queued_as: E10EE21459,
> dkim_new=dkim:dominio.pdc.cu, 16727 ms

And here 30F2021402 passes through amavis and is requeued as E10EE21459.

It appears there may have been some duplication here for some reason as
the original 30F2021402 was delivered twice to amavis.


> Nov  1 00:26:33 mailserver postfix/smtp[7064]: 30F2021402:
> to=<mailman-owner at listas.dominio.pdc.cu>,
> relay=127.0.0.1[127.0.0.1]:10024, delay=18, delays=1.3/0.01/0.02/17,
> dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250
> 2.0.0 Ok: queued as D814621432)

Here (out of sequence) the original 30F2021402 is received from amavis
and requeued as D814621432 for mailman-owner at listas.dominio.pdc.cu.


> Nov  1 00:26:33 mailserver postfix/smtp[7065]: 30F2021402:
> to=<auditor at dominio.pdc.cu>, relay=127.0.0.1[127.0.0.1]:10024, delay=18,
> delays=1.3/0/0.02/17, dsn=2.0.0, status=sent (250 2.0.0 from
> MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as E10EE21459)

And similarly for 30F2021402 received from amavis and requeued as
E10EE21459 for auditor at dominio.pdc.cu.


> Nov  1 00:26:33 mailserver postfix/qmgr[1953]: 30F2021402: removed
> Nov  1 00:26:33 mailserver postfix/pipe[7112]: E10EE21459:
> to=<auditor at dominio.pdc.cu>, relay=dovecot, delay=0.23,
> delays=0.07/0.04/0/0.12, dsn=2.0.0, status=sent (delivered via dovecot
> service)

And here E10EE21459 for auditor at dominio.pdc.cu is delivered via dovecot.


> Nov  1 00:26:33 mailserver postfix/qmgr[1953]: E10EE21459: removed
> Nov  1 00:26:33 mailserver postfix/pipe[7917]: D814621432:
> to=<mailman-owner at listas.dominio.pdc.cu>, relay=mailman, delay=0.42,
> delays=0.06/0.12/0/0.25, dsn=2.0.0, status=sent (delivered via mailman
> service)

And here, D814621432 for mailman-owner at listas.dominio.pdc.cu is
delivered to Mailman by the 'mailman' transport (presumably
postfix-to-mailman.py, see <http://wiki.list.org/x/15564817>,
particularly the 3rd paragraph).


> Nov  1 00:26:33 mailserver postfix/qmgr[1953]: D814621432: removed
> Nov  1 00:26:34 mailserver postfix/smtpd[7055]: connect from
> localhost[127.0.0.1]
> Nov  1 00:26:34 mailserver postfix/smtpd[7055]: NOQUEUE: reject: RCPT
> from localhost[127.0.0.1]: 550 5.1.0
> <mailman-bounces at listas.dominio.pdc.cu>: Sender address rejected: User
> unknown in virtual mailbox table;
> from=<mailman-bounces at listas.dominio.pdc.cu>
> to=<mailmanadmin at dominio.pdc.cu> proto=ESMTP
> helo=<mailserver.dominio.pdc.cu>


And finally, we get to what I think your problem is. The message to
mailman-owner has passed through mailman and is being resent to the
owner of the list, mailmanadmin at dominio.pdc.cu, but this is rejected by
Postfix. It is rejected because the sender,
mailman-bounces at listas.dominio.pdc.cu is an 'unknown' address (it is
only known via the 'mailman' transport. `postconf -n` output would help,
but presumably this occurs because you have specified something in
Postfix smtpd_sender_restrictions that is incompatible with
postfix-to-mailman.py delivery since the 'listname-bounces' addresses
are not being allowed as senders.

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan


More information about the Mailman-Users mailing list