Skip to Content.
Sympa Menu

en - [sympa-users] P.S. (Re: Deliver mail from MAILER-DAEMON)

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Wolfgang Zeikat <address@concealed>
  • To: address@concealed
  • Subject: [sympa-users] P.S. (Re: Deliver mail from MAILER-DAEMON)
  • Date: Tue, 12 Mar 2013 01:58:09 +0100

I forgot:

In postfix' main.cf:
smtpd_recipient_restrictions =
check_sender_access regexp:/etc/postfix/regexp.sender_access

In /etc/postfix/regexp.sender_access:
/<>/ bounces_allowed

Cheers,

wolfgang


-------- Original Message --------


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] P.S. (Re: Deliver mail from MAILER-DAEMON), Wolfgang Zeikat, 03/12/2013

Archive powered by MHonArc 2.6.19+.

Top of Page