restrict subscription, unsubscription and send mails in mailman list
Hi everyone: I just arrived to this list and I'm needing your help. I have a mailman list and I need 3 things (I couldn't find this in google and in http://wiki.list.org/DOC/Frequently%20Asked%20Questions): 1- I need that the users couldn't subscribe to the list 2- I need that the subscribed users can't unsubscribe 3- I need that just some users can send mails to the list
Regards and Thanks in advance, Amaury. Noviembre 13-14: Final Caribeña 2015 del Concurso de Programación ACM-ICPC https://icpc.baylor.edu/regionals/finder/cf-2015
On 10/30/2015 01:14 PM, Amaury Viera Hernández wrote:
Hi everyone: I just arrived to this list and I'm needing your help. I have a mailman list and I need 3 things (I couldn't find this in google and in http://wiki.list.org/DOC/Frequently%20Asked%20Questions): 1- I need that the users couldn't subscribe to the list
In the web admin UI for the list set Privacy options... -> Subscription rules -> subscribe_policy to Require approval and then reject or discard any subscription requests.
2- I need that the subscribed users can't unsubscribe
In the web admin UI for the list set Privacy options... -> Subscription rules -> unsubscribe_policy to Yes and then reject or discard any unsubscription requests.
3- I need that just some users can send mails to the list
In the web admin UI for the list set Privacy options... -> Sender filters set default_member_moderation to Yes and member_moderation_action to Reject or Discard as desired, and if Reject, maybe set member_moderation_notice.
Then go to Membership Management... -> Membership List and under Additional Member Tasks set everyone moderated and then uncheck 'mod' for those allowed to post.
Also, see <http://wiki.list.org/x/4030685>, particularly the sections "How to restrict the list so only authorized persons can post:" and "How to post to the announcement list:".
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 31/10/15 11:50, Mark Sapiro wrote:
On 10/30/2015 01:14 PM, Amaury Viera Hernández wrote:
Hi everyone: I just arrived to this list and I'm needing your help. I have a mailman list and I need 3 things (I couldn't find this in google and in http://wiki.list.org/DOC/Frequently%20Asked%20Questions): 1- I need that the users couldn't subscribe to the list
In the web admin UI for the list set Privacy options... -> Subscription rules -> subscribe_policy to Require approval and then reject or discard any subscription requests.
2- I need that the subscribed users can't unsubscribe
In the web admin UI for the list set Privacy options... -> Subscription rules -> unsubscribe_policy to Yes and then reject or discard any unsubscription requests.
3- I need that just some users can send mails to the list
In the web admin UI for the list set Privacy options... -> Sender filters set default_member_moderation to Yes and member_moderation_action to Reject or Discard as desired, and if Reject, maybe set member_moderation_notice.
Then go to Membership Management... -> Membership List and under Additional Member Tasks set everyone moderated and then uncheck 'mod' for those allowed to post.
Also, see <http://wiki.list.org/x/4030685>, particularly the sections "How to restrict the list so only authorized persons can post:" and "How to post to the announcement list:".
Thanks for your quickly answer. Everything is fine but I have another problem now. I have created the mailman alias in MySQL. 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@dominio.pdc.cu> Nov 1 00:26:16 mailserver postfix/qmgr[1953]: 30F2021402: from=<mailman-bounces@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] 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@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@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@dominio.pdc.cu> 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@dominio.pdc.cu> -> <mailman-owner@listas.dominio.pdc.cu>, Queue-ID: 30F2021402, Message-ID: <mailman.0.1446351974.7879.mailman@dominio.pdc.cu>, mail_id: d0iNH8sq7q2i, Hits: -0.621, size: 1200, queued_as: D814621432, dkim_new=dkim:dominio.pdc.cu, 16692 ms Nov 1 00:26:32 mailserver postfix/qmgr[1953]: E10EE21459: from=<mailman-bounces@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@dominio.pdc.cu> -> <auditor@dominio.pdc.cu>, Queue-ID: 30F2021402, Message-ID: <mailman.0.1446351974.7879.mailman@dominio.pdc.cu>, mail_id: 8RQ7kxJdlJqn, Hits: -0.621, size: 1200, queued_as: E10EE21459, dkim_new=dkim:dominio.pdc.cu, 16727 ms Nov 1 00:26:33 mailserver postfix/smtp[7064]: 30F2021402: to=<mailman-owner@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) Nov 1 00:26:33 mailserver postfix/smtp[7065]: 30F2021402: to=<auditor@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) Nov 1 00:26:33 mailserver postfix/qmgr[1953]: 30F2021402: removed Nov 1 00:26:33 mailserver postfix/pipe[7112]: E10EE21459: to=<auditor@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) Nov 1 00:26:33 mailserver postfix/qmgr[1953]: E10EE21459: removed Nov 1 00:26:33 mailserver postfix/pipe[7917]: D814621432: to=<mailman-owner@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) 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@listas.dominio.pdc.cu>: Sender address rejected: User unknown in virtual mailbox table; from=<mailman-bounces@listas.dominio.pdc.cu> to=<mailmanadmin@dominio.pdc.cu> proto=ESMTP helo=<mailserver.dominio.pdc.cu> Nov 1 00:26:34 mailserver postfix/smtpd[7055]: disconnect from localhost[127.0.0.1]
my test domain is: dominio.pdc.cu
my mailman config is:
from Defaults import * MAILMAN_SITE_LIST = 'mailman' DEFAULT_URL_PATTERN = 'http://%s/cgi-bin/mailman/' PRIVATE_ARCHIVE_URL = '/cgi-bin/mailman/private' IMAGE_LOGOS = '/images/mailman/' DEFAULT_EMAIL_HOST = 'dominio.pdc.cu' DEFAULT_URL_HOST = 'listas.dominio.pdc.cu' DEFAULT_SERVER_LANGUAGE = 'es' USE_ENVELOPE_SENDER = 0 DEFAULT_SEND_REMINDERS = 0 MTA='Postfix'
I have my mailman transport in mysql and the alias too
everything is fine, but the message to the list administrator is not sent when a user request a subscription
Thanks in advance, Amaury.
Noviembre 13-14: Final Caribeña 2015 del Concurso de Programación ACM-ICPC https://icpc.baylor.edu/regionals/finder/cf-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@dominio.pdc.cu> Nov 1 00:26:16 mailserver postfix/qmgr[1953]: 30F2021402: from=<mailman-bounces@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@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@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@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@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@dominio.pdc.cu> -> <mailman-owner@listas.dominio.pdc.cu>, Queue-ID: 30F2021402, Message-ID: <mailman.0.1446351974.7879.mailman@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@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@dominio.pdc.cu> -> <auditor@dominio.pdc.cu>, Queue-ID: 30F2021402, Message-ID: <mailman.0.1446351974.7879.mailman@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@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@listas.dominio.pdc.cu.
Nov 1 00:26:33 mailserver postfix/smtp[7065]: 30F2021402: to=<auditor@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@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@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@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@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@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@listas.dominio.pdc.cu>: Sender address rejected: User unknown in virtual mailbox table; from=<mailman-bounces@listas.dominio.pdc.cu> to=<mailmanadmin@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@dominio.pdc.cu, but this is rejected by
Postfix. It is rejected because the sender,
mailman-bounces@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@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Amaury Viera Hernández
-
Mark Sapiro