Subject: The mailing list for listmasters using Sympa
List archive
Re: [sympa-users] Deliver mail from MAILER-DAEMON?
- From: Wolfgang Zeikat <address@concealed>
- To: address@concealed
- Subject: Re: [sympa-users] Deliver mail from MAILER-DAEMON?
- Date: Tue, 12 Mar 2013 01:29:52 +0100
In an older episode, on 2013-03-11 21:54, Isaac Freeman wrote:
In case it helps, this is what I'm seeing in the logs:
Mar 11 16:51:30 mx2 sympa[9404]: main::DoFile() Processing /address@concealed ; sender: address@concealed (Mail Delivery System)#012 ; message-id: <address@concealed>#012
Mar 11 16:51:30 mx2 sympa[9404]: main::DoFile() Ignoring message which would cause a loop
Mar 11 16:51:30 mx2 sympa[9404]: Moving bad file address@concealed to bad/
I can't figure out a way to get it to accept the message and send it to the list...
We have worked around that problem by changing the bounce messages' "From:" header line in our MTA (postfix) before the mail is passed to sympa. We apply this only to certain list addresses where the reception of bounce message is explicitly wanted.
Details:
In postfix' main.cf:
smtpd_restriction_classes =
bounces_allowed
bounces_allowed =
check_recipient_access regexp:/etc/postfix/regexp.recipient_rules
In /etc/postfix/regexp.recipient_rules:
# Recipients with special treatment
/^address@concealed$/ FILTER bounceme:[127.0.0.1]
In postfix' master.cf:
bounceme unix - n n - - pipe
user=sympa argv=/etc/postfix/change-fromheader.sh ${recipient}
In /etc/postfix/change-fromheader.sh:
#!/bin/bash
RECIPIENT="$1"
perl -pe 's/^(From:.*)(mailer-daemon[@]\S*[a-z]+\b)(.*)/${1}something\@ourdoma.in${3}/i' |/opt/products/sympa/5.1.2/bin/queue $RECIPIENT
logger -p mail.info -t bounceme "Processed message for $RECIPIENT"
Hope this helps,
wolfgang
-
[sympa-users] Deliver mail from MAILER-DAEMON?,
Isaac Freeman, 03/09/2013
-
Re: [sympa-users] Deliver mail from MAILER-DAEMON?,
Isaac Freeman, 03/11/2013
- Re: [sympa-users] Deliver mail from MAILER-DAEMON?, Wolfgang Zeikat, 03/12/2013
-
Re: [sympa-users] Deliver mail from MAILER-DAEMON?,
Isaac Freeman, 03/11/2013
Archive powered by MHonArc 2.6.19+.