Re: [Mailman-Users] MailMan won't send list emails
[Adding information]
Postfix /etc/postfix/main.cf configuration:
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf, mysql:/etc/postfix/mysql_virtual_alias_domainaliases_maps.cf, hash:/var/lib/mailman/data/virtual-mailman
alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases relay_domains = mail.samsi.us mailman_destination_recipient_limit = 1 transport_maps = hash:/etc/postfix/transport smtpd_reject_unlisted_sender = no
/var/lib/mailman/data/virtual-mailman:
test@yugi.us test
/etc/aliases:
# /etc/aliases mailer-daemon: postmaster postmaster: root nobody: root hostmaster: root usenet: root news: root webmaster: root www: root ftp: root abuse: root noc: root security: root clamav: root monit: root
/var/lib/mailman/data/aliases:
# This file is generated by Mailman, and is kept in sync with the # binary hash file aliases.db. YOU SHOULD NOT MANUALLY EDIT THIS FILE # unless you know what you're doing, and can keep the two files properly # in sync. If you screw it up, you're on your own.
# The ultimate loop stopper address mailman-loop: /var/lib/mailman/data/owner-bounces.mbox
# STANZA START: mailman # CREATED: Tue Jul 12 12:31:00 2016 mailman: "|/var/lib/mailman/mail/mailman post mailman" mailman-admin: "|/var/lib/mailman/mail/mailman admin mailman" mailman-bounces: "|/var/lib/mailman/mail/mailman bounces mailman" mailman-confirm: "|/var/lib/mailman/mail/mailman confirm mailman" mailman-join: "|/var/lib/mailman/mail/mailman join mailman" mailman-leave: "|/var/lib/mailman/mail/mailman leave mailman" mailman-owner: "|/var/lib/mailman/mail/mailman owner mailman" mailman-request: "|/var/lib/mailman/mail/mailman request mailman" mailman-subscribe: "|/var/lib/mailman/mail/mailman subscribe mailman" mailman-unsubscribe: "|/var/lib/mailman/mail/mailman unsubscribe mailman" # STANZA END: mailman
# STANZA START: test # CREATED: Tue Jul 12 12:31:00 2016 test: "|/var/lib/mailman/mail/mailman post test" test-admin: "|/var/lib/mailman/mail/mailman admin test" test-bounces: "|/var/lib/mailman/mail/mailman bounces test" test-confirm: "|/var/lib/mailman/mail/mailman confirm test" test-join: "|/var/lib/mailman/mail/mailman join test" test-leave: "|/var/lib/mailman/mail/mailman leave test" test-owner: "|/var/lib/mailman/mail/mailman owner test" test-request: "|/var/lib/mailman/mail/mailman request test" test-subscribe: "|/var/lib/mailman/mail/mailman subscribe test" test-unsubscribe: "|/var/lib/mailman/mail/mailman unsubscribe test" # STANZA END: test
/etc/postfix/transport:
mail.samsi.us mailman:
/etc/postfix/master.cf
mailman unix - n n - - pipe flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user}
On Jul 12, 2016, at 1:10 PM, Caesar Samsi <mailinglist@samsi.us> wrote:
[resending, sent it before confirmation was completed earlier]
Hi there,
I’ve been working on this for 1 day and getting frustrated.
Everything appears to be setup correctly (lists can be created, list emails are received, I can see emails received in the list mailbox.
MailMan sends out notification emails to owners and subscribers. Confirmation email is sent out and processed via web page.
The only thing left is sending out received emails.
I don’t know where to begin troubleshooting this.
Thanks, Caesar.
On 07/12/2016 03:55 PM, Caesar Samsi wrote:
[Adding information]
Postfix /etc/postfix/main.cf configuration:
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf, mysql:/etc/postfix/mysql_virtual_alias_domainaliases_maps.cf, hash:/var/lib/mailman/data/virtual-mailman
alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases relay_domains = mail.samsi.us mailman_destination_recipient_limit = 1 transport_maps = hash:/etc/postfix/transport smtpd_reject_unlisted_sender = no
/var/lib/mailman/data/virtual-mailman:
test@yugi.us test
I don't know where this comes from.
/etc/aliases: ... /var/lib/mailman/data/aliases: ...
aliases look OK, but...
/etc/postfix/transport:
mail.samsi.us mailman:
/etc/postfix/master.cf
mailman unix - n n - - pipe flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user}
You are using postfix-to-mailman.py for all mail to the mail.samsi.us domain.
See <https://wiki.list.org/x/15564817> and decide whether you want to use postfix-to-mailman.py or Postfix-Mailman integration.
Once you have decided that, if you are still having problems, please provide the contents of mm_cfg.py and the Postfix log entries for a message sent to a mailman list.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Hi Mark,
Thank you for rendering aid.
Caesar.
On Jul 13, 2016, at 12:28 PM, Mark Sapiro <mark@msapiro.net> wrote:
I don't know where this comes from.
/etc/aliases: - Caesar: I’ve removed it from the configuration ... /var/lib/mailman/data/aliases: Caesar: This is generated by bin/genaliases, what should I do with this? ...
aliases look OK, but...
/etc/postfix/transport:
mail.samsi.us mailman:
/etc/postfix/master.cf
mailman unix - n n - - pipe flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user}
You are using postfix-to-mailman.py for all mail to the mail.samsi.us domain.
See <https://wiki.list.org/x/15564817> and decide whether you want to use postfix-to-mailman.py or Postfix-Mailman integration. Caesar: I’d like to use the official Postfix-Mailman integration
Once you have decided that, if you are still having problems, please provide the contents of mm_cfg.py and the Postfix log entries for a message sent to a mailman list.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mailman-Users mailing list Mailman-Users@python.org https://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-users/mailinglist%40samsi.us
mm_cfg.py attached.
Log entries for list message (list address: test@yugi.us)
Jul 11 17:06:14 mail postfix/cleanup[7937]: 2737340147: message-id=<mailman.0.1468281972.7928.test@yugi.us> Jul 11 17:06:14 mail postfix/qmgr[7604]: 2737340147: from=<test-bounces@yugi.us>, size=2232, nrcpt=1 (queue active) Jul 11 17:06:14 mail postfix/smtpd[7933]: disconnect from localhost[::1] Jul 11 17:06:17 mail postfix/smtpd[7944]: connect from localhost[127.0.0.1] Jul 11 17:06:17 mail postfix/smtpd[7944]: 9634C40148: client=localhost[127.0.0.1] Jul 11 17:06:17 mail postfix/cleanup[7937]: 9634C40148: message-id=<mailman.0.1468281972.7928.test@yugi.us> Jul 11 17:06:17 mail postfix/qmgr[7604]: 9634C40148: from=<test-bounces@yugi.us>, size=2873, nrcpt=1 (queue active) Jul 11 17:06:17 mail amavis[7745]: (07745-03) Passed CLEAN {RelayedInternal}, LOCAL [::1]:55664 <test-bounces@yugi.us> -> <caesar@samsi.us>, Queue-ID: 2737340147, Message-ID: <mailman.0.1468281972.7928.test@yugi.us>, mail_id: 5M0RPAagfqDZ, Hits: 0.274, size: 2232, queued_as: 9634C40148, 3472 ms Jul 11 17:06:17 mail postfix/smtp[7939]: 2737340147: to=<caesar@samsi.us>, relay=127.0.0.1[127.0.0.1]:10024, delay=3.6, delays=0.1/0.04/0.02/3.5, 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 9634C40148) Jul 11 17:06:17 mail postfix/qmgr[7604]: 2737340147: removed Jul 11 17:06:17 mail dovecot: lda(caesar@samsi.us): msgid=<mailman.0.1468281972.7928.test@yugi.us>: saved mail to INBOX Jul 11 17:06:17 mail postfix/pipe[7945]: 9634C40148: to=<caesar@samsi.us>, relay=dovecot, delay=0.18, delays=0.03/0.03/0/0.13, dsn=2.0.0, status=sent (delivered via dovecot service) Jul 11 17:06:17 mail postfix/qmgr[7604]: 9634C40148: removed
On 07/13/2016 05:35 PM, Caesar Samsi wrote:
Hi Mark,
Thank you for rendering aid.
Caesar.
On Jul 13, 2016, at 12:28 PM, Mark Sapiro <mark@msapiro.net <mailto:mark@msapiro.net>> wrote:
I don't know where this comes from.
/etc/aliases: - *Caesar*: I’ve removed it from the configuration
My remark was about the contents of /var/lib/mailman/data/virtual-mailman, not /etc/aliases. You probably do want /etc/aliases in your Postfix config.
/var/lib/mailman/data/aliases: *Caesar*: This is generated by bin/genaliases, what should I do with this?
See below.
/etc/postfix/transport:
mail.samsi.us <http://mail.samsi.us> mailman:
You will want to remove /etc/postfix/transport from transport_maps in main.cf.
/etc/postfix/master.cf
mailman unix - n n - - pipe flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user}
The above in master.cf will be unnecessary, but leaving it won't matter if you don't reference the mailman transport in transport_maps.
You are using postfix-to-mailman.py for all mail to the mail.samsi.us <http://mail.samsi.us> domain.
See <https://wiki.list.org/x/15564817> and decide whether you want to use postfix-to-mailman.py or Postfix-Mailman integration. *Caesar*: I’d like to use the official Postfix-Mailman integration
OK. ...
mm_cfg.py attached.
Log entries for list message (list address: test@yugi.us)
Jul 11 17:06:14 mail postfix/cleanup[7937]: 2737340147: message-id=<mailman.0.1468281972.7928.test@yugi.us> Jul 11 17:06:14 mail postfix/qmgr[7604]: 2737340147: from=<test-bounces@yugi.us>, size=2232, nrcpt=1 (queue active) Jul 11 17:06:14 mail postfix/smtpd[7933]: disconnect from localhost[::1] Jul 11 17:06:17 mail postfix/smtpd[7944]: connect from localhost[127.0.0.1] Jul 11 17:06:17 mail postfix/smtpd[7944]: 9634C40148: client=localhost[127.0.0.1] Jul 11 17:06:17 mail postfix/cleanup[7937]: 9634C40148: message-id=<mailman.0.1468281972.7928.test@yugi.us> Jul 11 17:06:17 mail postfix/qmgr[7604]: 9634C40148: from=<test-bounces@yugi.us>, size=2873, nrcpt=1 (queue active) Jul 11 17:06:17 mail amavis[7745]: (07745-03) Passed CLEAN {RelayedInternal}, LOCAL [::1]:55664 <test-bounces@yugi.us> -> <caesar@samsi.us>, Queue-ID: 2737340147, Message-ID: <mailman.0.1468281972.7928.test@yugi.us>, mail_id: 5M0RPAagfqDZ, Hits: 0.274, size: 2232, queued_as: 9634C40148, 3472 ms Jul 11 17:06:17 mail postfix/smtp[7939]: 2737340147: to=<caesar@samsi.us>, relay=127.0.0.1[127.0.0.1]:10024, delay=3.6, delays=0.1/0.04/0.02/3.5, 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 9634C40148) Jul 11 17:06:17 mail postfix/qmgr[7604]: 2737340147: removed Jul 11 17:06:17 mail dovecot: lda(caesar@samsi.us): msgid=<mailman.0.1468281972.7928.test@yugi.us>: saved mail to INBOX Jul 11 17:06:17 mail postfix/pipe[7945]: 9634C40148: to=<caesar@samsi.us>, relay=dovecot, delay=0.18, delays=0.03/0.03/0/0.13, dsn=2.0.0, status=sent (delivered via dovecot service) Jul 11 17:06:17 mail postfix/qmgr[7604]: 9634C40148: removed
All these messages are from a message from Mailman to caesar@samsi.us which was apparently delivered appropriately.
Are you able to send mail to test@yugi.us and have it delivered to Mailman? If not, what are the log messages related to that?
Re: mm_cfg.py It all looks OK. I'm only quoting what I'm commenting about.
#------------------------------------------------------------- # Default domain for email addresses of newly created MLs DEFAULT_EMAIL_HOST = 'yugi.us' #------------------------------------------------------------- # Default host for web interface of newly created MLs DEFAULT_URL_HOST = 'mail.samsi.us' #------------------------------------------------------------- # Required when setting any of its arguments. #add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST) add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
The above is good.
MTA='Postfix' SMTPHOST = 'localhost' SMTPPORT = 25
The above are good although only MTA='Postfix' is not a default.
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['yugi.us']
This is good if yugi.us is a Postfix virtual alias domain. It also explains the
test@yugi.us test
entry in /var/lib/mailman/data/virtual-mailman but it doesn't explain why there aren't 9 more entries like
test-admin@yugi.us test-admin test-bounces@yugi.us test-bounces ...
See the manual at <http://www.list.org/mailman-install/node12.html>, <http://www.list.org/mailman-install/postfix-integration.html> and <http://www.list.org/mailman-install/postfix-virtual.html> for information on configuring Postfix, and if you continue to have trouble, post the output of 'postconf -n' and the relevant Postfix log entries.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Caesar Samsi
-
Mark Sapiro