mailman + postfix = strange behaviour
:-) I have Gentoo, Postfix and Mailman I've configured according to http://www.gnu.org/software/mailman/mailman-install/node13.html The bahaviour is very strange:
mail do my mailing list goes to ML archive -- OK
if there are wrong adddressess (cause I have deleted some users) I got the error in logs: " User unknown in local recipient table; from=<somelist-bounces@mydomain> to=<someuser@mydomain> " -- OK
I can see in logs: " myserver postfix/local[7449]: 2DC4B2A2052: to=<somelist@mydomain>, relay=local, delay=0.2, delays=0.08/0/0/0.12, dsn=2.0.0, status=sent (delivered to command: /usr/lib64/mailman/mail/mailman post somelist)" -- OK
Everything seems OK but no mail sent to mailing list is delivered to no user's mailbox. What's wrong??
BEst regards, MArek
- Marek Kozlowski <kozlowsm@mini.pw.edu.pl>:
:-) I have Gentoo, Postfix and Mailman I've configured according to
http://www.gnu.org/software/mailman/mailman-install/node13.html The bahaviour is very strange:
mail do my mailing list goes to ML archive -- OK
if there are wrong adddressess (cause I have deleted some users) I got
the error in logs: " User unknown in local recipient table;
from=<somelist-bounces@mydomain> to=<someuser@mydomain> " -- OKI can see in logs: " myserver postfix/local[7449]: 2DC4B2A2052: to=<somelist@mydomain>,
relay=local, delay=0.2, delays=0.08/0/0/0.12, dsn=2.0.0, status=sent
(delivered to command: /usr/lib64/mailman/mail/mailman post somelist)" -- OKEverything seems OK but no mail sent to mailing list is delivered to no
user's mailbox. What's wrong??
There is a wiki entry for this at http://wiki.list.org/x/A4E9 which describes various strategies to troubleshoot this problem.
In my personal experience, this is a very helpful ressource, and checking everything that is mentioned there has helped me often in the past.
Cheers Stefan
Stefan Förster wrote:
- Marek Kozlowski <kozlowsm@mini.pw.edu.pl>:
:-) I have Gentoo, Postfix and Mailman I've configured according to
http://www.gnu.org/software/mailman/mailman-install/node13.html The bahaviour is very strange:
mail do my mailing list goes to ML archive -- OK
if there are wrong adddressess (cause I have deleted some users) I got
the error in logs: " User unknown in local recipient table;
from=<somelist-bounces@mydomain> to=<someuser@mydomain> " -- OKI can see in logs: " myserver postfix/local[7449]: 2DC4B2A2052: to=<somelist@mydomain>,
relay=local, delay=0.2, delays=0.08/0/0/0.12, dsn=2.0.0, status=sent
(delivered to command: /usr/lib64/mailman/mail/mailman post somelist)" -- OKEverything seems OK but no mail sent to mailing list is delivered to no
user's mailbox. What's wrong??There is a wiki entry for this at http://wiki.list.org/x/A4E9 which describes various strategies to troubleshoot this problem.
In my personal experience, this is a very helpful ressource, and checking everything that is mentioned there has helped me often in the past.
Didn't help.
This is a part of /var/log/mail.log . Seems *everything* is OK... but I got NO mail...
Best regards, Marek
Aug 20 12:49:12 alpha amavis[11953]: (11953-14) FWD via SMTP: <mailman-bounces@mini.pw.edu.pl> -> <M.Kozlowski@alpha.mini.pw.edu.pl>,BODY=7BIT 250 2.0.0 Ok, id=11953-14, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 127EB2A203E
Aug 20 12:49:12 alpha amavis[11953]: (11953-14) Passed CLEAN, LOCAL [127.0.0.1] [127.0.0.1] <mailman-bounces@mini.pw.edu.pl> -> <M.Kozlowski@alpha.mini.pw.edu.pl>, Message-ID: <mailman.4.1250765346.7432.mailman@alpha.mini.pw.edu.pl>, mail_id: EHJX2SsrO7XP, Hits: -4.399, size: 4287, queued_as: 127EB2A203E, 162 ms
Aug 20 12:49:12 alpha postfix/smtp[12264]: E0A852A2021: to=<M.Kozlowski@alpha.mini.pw.edu.pl>, orig_to=<kozlowsm@mini.pw.edu.pl>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.24, delays=0.07/0/0.01/0.16, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=11953-14, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 127EB2A203E)
Aug 20 12:49:12 alpha postfix/qmgr[7368]: E0A852A2021: removed
Aug 20 12:49:12 alpha amavis[11953]: (11953-14) TIMING [total 166 ms] - SMTP greeting: 1 (1%)1, SMTP EHLO: 0 (0%)1, SMTP pre-MAIL: 0 (0%)1, SMTP pre-DATA-flush: 1 (1%)2, SMTP DATA: 39 (23%)25, check_init: 0 (0%)26, digest_hdr: 0 (0%)26, digest_body: 0 (0%)26, gen_mail_id: 1 (0%)26, mime_decode: 9 (5%)32, get-file-type3: 12 (7%)39, decompose_part: 1 (0%)39, decompose_part: 0 (0%)39, parts_decode: 0 (0%)40, check_header: 1 (1%)40, spam-wb-list: 2 (1%)42, update_cache: 1 (0%)42, decide_mail_destiny: 0 (0%)42, fwd-connect: 10 (6%)48, fwd-mail-pip: 1 (1%)49, fwd-rcpt-pip: 0 (0%)49, fwd-data-chkpnt: 0 (0%)49, write-header: 1 (0%)50, fwd-data-contents: 0 (0%)50, fwd-end-chkpnt: 73 (44%)94, prepare-dsn: 1 (0%)94, main_log_entry: 7 (4%)99, update_snmp: 1 (1%)99, SMTP pre-response: 0 (0%)99, SMTP response: 0 (0%)100, unlink-3-files: 0 (0%)100, rundown: 1 (0%)100
Aug 20 12:49:12 alpha postfix/local[12267]: 127EB2A203E: to=<kozlowsm@alpha.mini.pw.edu.pl>, orig_to=<M.Kozlowski@alpha.mini.pw.edu.pl>, relay=local, delay=0.15, delays=0.07/0/0/0.07, dsn=2.0.0, status=sent (delivered to maildir)
Aug 20 12:49:12 alpha postfix/qmgr[7368]: 127EB2A203E: removed
- Marek Kozlowski <kozlowsm@mini.pw.edu.pl>:
Stefan Förster wrote:
There is a wiki entry for this at http://wiki.list.org/x/A4E9 which describes various strategies to troubleshoot this problem.
In my personal experience, this is a very helpful ressource, and checking everything that is mentioned there has helped me often in the past.
Didn't help.
This is a part of /var/log/mail.log . Seems *everything* is OK... but I
got NO mail...Aug 20 12:49:12 alpha amavis[11953]: (11953-14) FWD via SMTP:
<mailman-bounces@mini.pw.edu.pl> ->
<M.Kozlowski@alpha.mini.pw.edu.pl>,BODY=7BIT 250 2.0.0 Ok, id=11953-14,
from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 127EB2A203E
The lsit messages is reinjected to Postfix, the queue ID is 127EB2A203E.
Aug 20 12:49:12 alpha postfix/local[12267]: 127EB2A203E:
to=<kozlowsm@alpha.mini.pw.edu.pl>,
orig_to=<M.Kozlowski@alpha.mini.pw.edu.pl>, relay=local, delay=0.15,
delays=0.07/0/0/0.07, dsn=2.0.0, status=sent (delivered to maildir)
The message is delivered to a maildir store. I guess this is not a Mailman problem, but a Postfix one. Perhaps you got address rewriting wrong - is the mail really supposed to be delivered to kozlowsm@alpha.mini.pw.edu.pl with the local(8) delivery agent? After all, your mail address seems to be kozlowsm@mini.pw.edu.pl, without the "alpha" part - but I don't know your mail setup.
When using a content_filter, you should make sure that you only do virtual address rewriting once, i.e. either the main smtpd (or the one you use for injecting messages generated by Mailman) _or_ the smtpd used for reinjection from amavisd-new should have set "receive_override_options=no_address_mappings" - only one, not both of them, preferarbly the one used for reinjection from amavisd-new.
Anyways, this is getting off-topic.
Cheers Stefan
:-)
The message is delivered to a maildir store. I guess this is not a Mailman problem, but a Postfix one. Perhaps you got address rewriting wrong - is the mail really supposed to be delivered to kozlowsm@alpha.mini.pw.edu.pl with the local(8) delivery agent? After all, your mail address seems to be kozlowsm@mini.pw.edu.pl, without the "alpha" part - but I don't know your mail setup.
Normal mail sent to any of the followings:
kozlowsm@alpha.mini.pw.edu.pl M.Kozlowski@alpha.mini.pw.edu.pl kozlowsm@mini.pw.edu.pl M.Kozlowski@mini.pw.edu.pl
is delivered OK!
When using a content_filter, you should make sure that you only do virtual address rewriting once, i.e. either the main smtpd (or the one you use for injecting messages generated by Mailman) _or_ the smtpd used for reinjection from amavisd-new should have set "receive_override_options=no_address_mappings" - only one, not both of them, preferarbly the one used for reinjection from amavisd-new.
Could you explain more in detail?
Best reards, /M
- Marek Kozlowski <kozlowsm@mini.pw.edu.pl>:
The message is delivered to a maildir store. I guess this is not a Mailman problem, but a Postfix one. Perhaps you got address rewriting wrong - is the mail really supposed to be delivered to kozlowsm@alpha.mini.pw.edu.pl with the local(8) delivery agent? After all, your mail address seems to be kozlowsm@mini.pw.edu.pl, without the "alpha" part - but I don't know your mail setup.
Normal mail sent to any of the followings:
kozlowsm@alpha.mini.pw.edu.pl M.Kozlowski@alpha.mini.pw.edu.pl kozlowsm@mini.pw.edu.pl M.Kozlowski@mini.pw.edu.pl
is delivered OK!
I couldn't possibly know that ;-)
Well, so this is now really a Postfix problem. I suggest adding "-v" to the "local" stanza in master.cf, execute "postfix reload", send another mail, capture the log data and ask on postfix-users.
Cheers Stefan
:-) Oups, I have revised the configuration and browsed the logs. Those mails (mentioned in logs) are mails sent to the list moderator (that's me) with information that there are new posts require moderation. Then I moderate them (accept) and then... /var/log/mail.log shows NO mailman activity. Any tips? Best regards, Marek
Marek Kozlowski wrote:
:-) Oups, I have revised the configuration and browsed the logs. Those mails (mentioned in logs) are mails sent to the list moderator (that's me) with information that there are new posts require moderation. Then I moderate them (accept) and then... /var/log/mail.log shows NO mailman activity. Any tips?
How do you approve the post? Web or email? If email are you including the Approved: password header in your approval message?
Do the approved posts get to the archive?
Check all of Mailman's logs? Does the vette log show the approvals?
It could be that content filtering is removing the entire post after approval and handling it according to filter_action.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
:-)
How do you approve the post? Web or email? If email are you including the Approved: password header in your approval message?
Via web interface.
Do the approved posts get to the archive?
Check all of Mailman's logs? Does the vette log show the approvals?
It could be that content filtering is removing the entire post after approval and handling it according to filter_action.
Oups! Sorry! Didn't notice that mailman logs are in /var/lib/... :-(
error: no error messages post: only "post to ... <nr_of_group_members> failures" qrunner: no error messages smtp: no error messages smtp-failure: that's it! Lots of errors like:
"Aug 20 18:50:10 2009 (15479) delivery to someuser@mini.pw.edu.pl failed with code -1: Server not connected"
WTH?!?!?!
Best regards, Marek
BTW: vette is OK.
:-)
smtp-failure: that's it! Lots of errors like:
"Aug 20 18:50:10 2009 (15479) delivery to someuser@mini.pw.edu.pl failed with code -1: Server not connected"
WTH?!?!?!
I've found some suggestion to set SMTPPORT to 25 (it is... 0 ?) in mm_cfg.py. Now I have:
"Aug 20 19:11:13 2009 (21289) delivery to someuser@mini.pw.edu.pl failed with code -1: (104, 'Connection reset by peer')"
:-(
Best regards, /M
Marek Kozlowski wrote:
:-)
smtp-failure: that's it! Lots of errors like:
"Aug 20 18:50:10 2009 (15479) delivery to someuser@mini.pw.edu.pl failed with code -1: Server not connected"
WTH?!?!?!
I've found some suggestion to set SMTPPORT to 25 (it is... 0 ?) in mm_cfg.py. Now I have:
"Aug 20 19:11:13 2009 (21289) delivery to someuser@mini.pw.edu.pl failed with code -1: (104, 'Connection reset by peer')"
SMTP_MAX_RCPTS = 1 (http://www.mailinglistarchive.com/mailman-users@python.org/msg08741.html -- thanks Mark!) helped. Still I'mnot sure why :-(
Best regards, Marek
Marek Kozlowski wrote:
error: no error messages post: only "post to ... <nr_of_group_members> failures" qrunner: no error messages smtp: no error messages smtp-failure: that's it! Lots of errors like:
"Aug 20 18:50:10 2009 (15479) delivery to someuser@mini.pw.edu.pl failed with code -1: Server not connected"
See below:
And Marek Kozlowski wrote:
I've found some suggestion to set SMTPPORT to 25 (it is... 0 ?) in mm_cfg.py. Now I have:
"Aug 20 19:11:13 2009 (21289) delivery to someuser@mini.pw.edu.pl failed with code -1: (104, 'Connection reset by peer')"
The fact that the error changed when you set SMTPPORT = 25 rather than the Defaults.py setting of 0 is a coincidence. There is no difference between the two. SMTPPORT = 25 tells the python smtplib module to use port 25 and SMTPPORT = 0 tells it to use the SMTP default port which is 25.
And Marek Kozlowski wrote:
SMTP_MAX_RCPTS = 1 (http://www.mailinglistarchive.com/mailman-users@python.org/msg08741.html -- thanks Mark!) helped. Still I'mnot sure why :-(
It helps because of a bug in the underlying Python smtplib. See <http://bugs.python.org/issue5713>
Your real problem is you have addresses on your list that Postfix thinks are undeliverable. The bug report linked above describes the scenario.
After 20 invalid local recipients in one SMTP transaction, Postfix disconnects with a 421 Too many errors reply, but the Python smtplib module doesn't expect a disconnect after a 421 and gets out of sync with Postfix.
Setting SMTP_MAX_RCPTS to any number less than 20 will avoid this problem.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
:-)
SMTP_MAX_RCPTS = 1 (http://www.mailinglistarchive.com/mailman-users@python.org/msg08741.html -- thanks Mark!) helped. Still I'mnot sure why :-(
It helps because of a bug in the underlying Python smtplib. See <http://bugs.python.org/issue5713>
Your real problem is you have addresses on your list that Postfix thinks are undeliverable. The bug report linked above describes the scenario.
After 20 invalid local recipients in one SMTP transaction, Postfix disconnects with a 421 Too many errors reply, but the Python smtplib module doesn't expect a disconnect after a 421 and gets out of sync with Postfix.
Setting SMTP_MAX_RCPTS to any number less than 20 will avoid this problem.
THANKS A LOT!!! Now it works and I do know why! Wonderful!
Best tregards, Marek Kozłowski
participants (3)
-
Marek Kozlowski -
Mark Sapiro -
Stefan Förster