[Mailman-Users] MailMan won't send list emails

Mark Sapiro mark at msapiro.net
Wed Jul 13 21:47:50 EDT 2016


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 at msapiro.net
>> <mailto:mark at 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 at yugi.us)
> 
> Jul 11 17:06:14 mail postfix/cleanup[7937]: 2737340147:
> message-id=<mailman.0.1468281972.7928.test at yugi.us>
> Jul 11 17:06:14 mail postfix/qmgr[7604]: 2737340147:
> from=<test-bounces at 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 at yugi.us>
> Jul 11 17:06:17 mail postfix/qmgr[7604]: 9634C40148:
> from=<test-bounces at 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 at yugi.us> -> <caesar at samsi.us>, Queue-ID: 2737340147, Message-ID:
> <mailman.0.1468281972.7928.test at 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 at 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 at samsi.us):
> msgid=<mailman.0.1468281972.7928.test at yugi.us>: saved mail to INBOX
> Jul 11 17:06:17 mail postfix/pipe[7945]: 9634C40148: to=<caesar at 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 at samsi.us
which was apparently delivered appropriately.

Are you able to send mail to test at 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 at 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 at yugi.us test-admin
test-bounces at 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 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