[Mailman-Users] no "pending moderator requests" email warnings anymore

Mark Sapiro mark at msapiro.net
Tue Dec 12 00:25:42 EST 2017

On 12/11/2017 07:27 AM, Charles Stroom wrote:
> Since a couple of weeks (or maybe longer) there is a problem with
> the "attend to pending tasks", for intercepted emails which are
> not going through because of the criteria (non-member email, too
> large, etc.) I used to receive a message of the mailman, but I am
> not getting such messages anymore.  I have been trying to find out
> why, but have so far failed.
> I tested also some email mailman addresses with the following results.
> - if I send to "listname"-admin, I do not receive that email, but
> instead an email from mailman-bounce to "listname"-owner with my
> email attached.

This is because "listname"-admin is a deprecated alias for
"listname"-bounces, however the fact that the unrecognized bounce notice
appears to be To: the "listname"-owner address is misleading because it
is actually sent directly to the list owner(s)

> - if I send to "listname"-owner, I do not receive any email at all,
> as if the email has been delivered to /dev/null.

And this is the issue because the daily pending requests email is sent
to "listname"-owner to be resent to the owners and moderators.

>  And in the
> standard mail log of the server I get:
> ""
> postfix/smtpd[3880]: connect from bsmtpdelivery6.xs4all.net[]
> postfix/smtpd[3880]: 3814C216C: client=bsmtpdelivery6.xs4all.net[]
> postfix/cleanup[3884]: 3814C216C: message-id=<20171211153550.7fb31e1d at fiume5.localnet>
> postfix/qmgr[2642]: 3814C216C: from=<charles at stremen.xs4all.nl>, size=1455, nrcpt=1 (queue active)
> postfix/smtpd[3880]: disconnect from bsmtpdelivery6.xs4all.net[]
> postfix/local[3885]: 3814C216C: to=<dehoutblazers-owner at stremen.xs4all.nl>, relay=local, delay=0.36, delays=0.13/0.01/0/0.22, dsn=2.0.0, status=sent (delivered to command: /usr/lib/mailman/mail/mailman owner dehoutblazers)
> postfix/qmgr[2642]: 3814C216C: removed

So the mail to -owner is delivered properly to Mailman.

> postfix/smtpd[3880]: connect from localhost[::1]
> postfix/smtpd[3880]: warning: Illegal address syntax from localhost[::1] in MAIL command: <mailman-bounces@>
> postfix/smtpd[3880]: disconnect from localhost[::1]
> ""

So the issue here appears to be the smtp MAIL FROM command is from
<mailman-bounces@> instead of from <mailman-bounces at stremen.xs4all.nl>

> There are pending pending moderator requests in the list
> so I tried a manual cron command (as user "mailman"):
> ""
> /usr/bin/python -S /usr/lib/mailman/cron/checkdbs
> ""
> Nothing happened, the offending emails are not removed, and I did
> not receive any email.

You didn't receive mail because mail to "listname"-owner doesnb't work,
and cron/checkdbs never does anything with pending moderator requests
other than report them.

> With the mail log below

Which is the same issue as above.

> Apparently, the is something wrong with the email message sender
> or recipient as formatted by mailman, but to me everything seems OK.
> I am the owner and the moderator.
> Is there a way to see what mailman is actually transferring to
> the postfix program?

See <https://wiki.list.org/x/4030716> for a way to enable vastly
increased SMTP logging.

However, the issue appears to be that
Utils.get_site_email(extra='bounces') is returning 'mailman-bounces@'

This can occur if your settings for DEFAULT_URL_HOST,
DEFAULT_EMAIL_HOST, and add_virtualhost() directives in mm_cfg.py are
broken in some way. In particular, if you have some add_virtualhost()
directive with a null string as the second argument.

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