Skip to Content.
Sympa Menu

en - Bounce doesn't work with Exim as remote MTA and more than one bounce

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Stefan Hornburg <address@concealed>
  • To: address@concealed
  • Cc: address@concealed
  • Subject: Bounce doesn't work with Exim as remote MTA and more than one bounce
  • Date: 15 Aug 2002 20:12:26 +0200

Package: wwsympa
Version: 3.3.3-2

The bounce daemon in sympa has problems with detecting a special case of
bounce. The MTA returning the email is Exim 3.35. If more than one address
is bouncing, Exim writes the following header:

X-Failed-Recipients: address@concealed,
address@concealed

The bounce daemon tries the following code on it and fails to detect
the recipients:

[bounce-lib.pl]
if ($champ{'x-failed-recipients'} =~ /^\s*(\S+)$/) {
$info{$1}{error} = "";
}

The following hack solved the problem:

if ($champ{'x-failed-recipients'} =~ /^\s*(\S+)$/) {
$info{$1}{error} = "";
} elsif ($champ{'x-failed-recipients'} =~ /^\s*(\S+),/) {
for my $xfr (split (/\s*,\s*/,
$champ{'x-failed-recipients'})) {
$info{$xfr}{error} = "";
}
}

Surely, I could've done this more elegant, but as proof of concept it
is IMHO sufficient.

Bye
Racke

--
LinuXia Systems && Cobolt NetServices, eCommerce and more
Shop- und Datenbanklösungen mit MiniVend, Firewalls auf Debian-Basis
http://www.linuxia.de - http://www.cobolt.net


  • Bounce doesn't work with Exim as remote MTA and more than one bounce, Stefan Hornburg, 08/15/2002

Archive powered by MHonArc 2.6.19+.

Top of Page