[Mimedefang] BUG: @Recipients contains sometimes lowercase versions of emailaddrs without <>

Martin Blapp mb at imp.ch
Fri Sep 17 15:03:40 EDT 2004


Hi David,

I have it happen that @Recipients contains already a lowercase version of
the recipient email-address. This leads to problems on the milter side.
smfi_delrcpt() should always be called on the original case-insensitive
version, else the address does not match and is still there.

It looks for me like it works if the recipient adress contains <> braces. If
they are missing, we fail.

if ($spambox ne "") {
        my $recipient;
        if ($debug) {
                md_syslog('err', "$QueueID: DEBUG: Spambox $spambox has been found, redirect mail");
        }
        foreach $recipient (@Recipients) {
                        delete_recipient($recipient);
                        action_add_header("X-Original-Recipient", "$recipient");
                }
        }
        add_recipient($spambox);
}

The failed mail today was (note that the recipient has no <> braces).

Sep 17 16:33:26 mx1 sm-mta[50931]: i8HEXLs6050931: Milter delete: rcpt user.obfuscated at test.com
Sep 17 16:33:26 mx1 sm-mta[50931]: i8HEXLs6050931: Milter add: header: X-Original-Recipient: user.obfuscated at test.com
Sep 17 16:33:26 mx1 sm-mta[50931]: i8HEXLs6050931: Milter add: rcpt: Spamadmin at test.com
Sep 17 16:33:26 mx1 sm-mta[50931]: i8HEXLs6050931: Milter add: header: X-Scanned-By: MIMEDefang 2.44
Sep 17 16:33:26 mx1 sm-mta[50978]: i8HEXLs6050931: to=Spamadmin at test.com,<Isabelle.Genvresse at test.com>, delay=00:00:05,
xdelay=00:00:00, mailer=relay, pri=31867, relay=mail.test.ch. [XXX.XXX.XXX.XXX], dsn=2.0.0,
stat=Sent ( <B663834DEC7BC946968A5E456B61EDAE010A7B60 at rbamsem1.emea.newtest.com> Queued mail for delivery)


My test worked, (test.TEST at attic.ch is still uppercase and I used <> braces.

Sep 17 20:41:28 mail sm-mta[70162]: i8HIfMW1070162: Milter delete: rcpt <test.TEST at attic.ch>
Sep 17 20:41:28 mail sm-mta[70162]: i8HIfMW1070162: Milter add: header: X-Original-Recipient: <test.TEST at attic.ch>
Sep 17 20:41:28 mail sm-mta[70162]: i8HIfMW1070162: Milter add: rcpt: Spamadmin at test.com
Sep 17 20:41:28 mail sm-mta[70162]: i8HIfMW1070162: Milter add: header: X-Scanned-By: MIMEDefang 2.44
Sep 17 20:41:31 mail sm-mta[70175]: i8HIfMW1070162: to=Spamadmin at test.com, delay=00:00:08, xdelay=00:00:03, mailer=esmtp, pri=30265, relay=xxx.test.ch.
[XXX.XXX.XXX.XXX], dsn=2.0.0, stat=Sent (i8HIfSUM048927 Message accepted for delivery)

Martin



More information about the MIMEDefang mailing list