[Mailman-Users] Mailman list mail for server loops back to myself

Mark Sapiro mark at msapiro.net
Sat Jul 11 18:12:01 CEST 2015


On 7/10/15 9:12 AM, Robert Susmilch wrote:
> 
> I have updated the binary file locations of postmap and postalias,
> however genalias does not create virtual-mailman.db, though it does
> populate the virtual-mailman table. Postfix complains it does not find
> the users until I manually run postmap on that file to create the
> database.


Because you apparently have at least partially followed
<http://wiki.list.org/x/10715238> which alters POSTFIX_MAP_CMD to point
to a script which doesn't do postmap on virtual-mailman.


> Additionally I cannot get the web admin pages to work, as I get a 500
> error. However I've read many comments that I need to disable suexec
> and other options. I am running Wordpress as well as many other odds
> and ends and would prefer to not screw those up. My main concern is
> just to get the list working, webpage admin would just be icing.


What's in the web server (Apache) error log?


> Here is the maillog for a "loop"
> 
...
> Jul 10 10:55:16 server1 postfix/submission/smtpd[4534]: connect from
> unknown[96.2.151.202]
> Jul 10 10:55:16 server1 postfix/submission/smtpd[4534]: Anonymous TLS
> connection established from unknown[96.2.151.202]: TLSv1.2 with cipher
> ECDHE-RSA-AES256-SHA (256/256 bits)
> Jul 10 10:55:16 server1 postfix/submission/smtpd[4534]: NOQUEUE:
> filter: RCPT from unknown[96.2.151.202]: <robert at rootunlimited.com>:
> Sender address triggers FILTER amavis:[127.0.0.1]:10026;
> from=<robert at rootunlimited.com> to=<test1 at susmilch.com> proto=ESMTP
> helo=<archer.susmilch.com>
> Jul 10 10:55:16 server1 postfix/submission/smtpd[4534]: CE95B10269ED:
> client=unknown[96.2.151.202], sasl_method=PLAIN,
> sasl_username=robert at rootunlimited.com
> Jul 10 10:55:17 server1 postfix/cleanup[4553]: CE95B10269ED:
> message-id=<559FEAEF.8000202 at rootunlimited.com>
> Jul 10 10:55:17 server1 postfix/qmgr[4279]: CE95B10269ED:
> from=<robert at rootunlimited.com>, sizef7, nrcpt=1 (queue active)

Your message got submitted.


> Jul 10 10:55:17 server1 postfix/smtpd[4557]: connect from
> unknown[127.0.0.1]
> Jul 10 10:55:17 server1 postfix/smtpd[4557]: 246D610269EF:
> client=unknown[127.0.0.1]
> Jul 10 10:55:17 server1 postfix/cleanup[4553]: 246D610269EF:
> message-id=<559FEAEF.8000202 at rootunlimited.com>
> Jul 10 10:55:17 server1 postfix/smtpd[4557]: disconnect from
> unknown[127.0.0.1]

And came back from amavis


> Jul 10 10:55:17 server1 postfix/qmgr[4279]: 246D610269EF:
> from=<robert at rootunlimited.com>, size90, nrcpt=1 (queue active)
> Jul 10 10:55:17 server1 amavis[23237]: (23237-16) Passed CLEAN
> {RelayedInternal}, ORIGINATING LOCAL [96.2.151.202]:46678
> [96.2.151.202] <robert at rootunlimited.com> ->
> <test1 at server1.susmilch.com>, Queue-ID: CE95B10269ED, Message-ID:
> <559FEAEF.8000202 at rootunlimited.com>, mail_id: biCr3Qlg5n88, Hits: -,
> size: 667, queued_as: 246D610269EF, dkim_new=mail:rootunlimited.com,
> 105 ms
> Jul 10 10:55:17 server1 postfix/smtp[4556]: CE95B10269ED:
> to=<test1 at server1.susmilch.com>, orig_to=<test1 at susmilch.com>,
> relay7.0.0.1[127.0.0.1]:10026, delay=0.43, delays=0.31/0.01/0/0.11,
> 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 246D610269EF)
> Jul 10 10:55:17 server1 postfix/qmgr[4279]: CE95B10269ED: removed

Relayed to localhost, why?


> Jul 10 10:55:17 server1 postfix/smtp[4558]: 246D610269EF:
> to=<test1 at server1.susmilch.com>, relay=none, delay=0.03,
> delays=0.01/0.02/0/0, dsn=5.4.6, status=bounced (mail for
> server1.susmilch.com loops back to myself)

and bounces. It should have been delivered above instead of relayed to
itself.


...
> mm_cfg.py
> 
> 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 = 'server1.rootunlimited.com'
> DEFAULT_URL_HOST   = 'server1.rootunlimited.com'
> add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
> DEFAULT_SERVER_LANGUAGE = 'en'
> DEFAULT_SEND_REMINDERS = 0
> MTA='Postfix'
> POSTFIX_STYLE_VIRTUAL_DOMAINS = ['susmilch.com']

You probably want

add_virtualhost('???.susmilch.com', 'susmilch.com')

and likewise other virtual domains.


> POSTFIX_MAP_CMD = '/etc/mailman/virtual_to_transport.sh'

Presumably you are doing this because Dovecot is the default LDA in your
postfix. It should work if properly configured. It doesn't create
virtual-mailman.db because it doesn't use it. it uses transport_maps to
map list addresses to Postfix's local transport and that in turn uses
aliases to deliver to Mailman.


> Output of postconf -d


This says nothing about YOUR Postfix config. -d says output the
defaults. 'postconf -n' is what we want to see.


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/mailman-users/attachments/20150711/dd56ac9f/attachment-0001.sig>


More information about the Mailman-Users mailing list