[Mimedefang] delete_recipient does not work for mixed case recipients
Justin Michael
jmichael at msn.fullfeed.com
Fri Feb 13 15:23:19 EST 2004
Hi,
I'm still having a problem with mimedefang's delete_recipient
not working with a mixed case recipient.
sendmail 8.12.10
mimedefang 2.38
Here's my sample spam delivered via telneting to my host:
helo myserver
mail from: jmichael at msn.fullfeed.com
rcpt to: <MIkE at alPHamgmt.com>
data
Date: February 13, 2004
From: J M <jmichael at msn.fullfeed.com>
To: MIkE at alpHAmgmt.com <MIKE at ALPHAMGMT.COM>
Subject: Test of spam analysis 4848
THIS SHOULD LOOK LIKE SPAM SPAM SPAM.
YOU WILL STILL GET IT PER YOUR REQUEST
IT HAS UNDISCLOSED RECIPIENTS
CALL TOLL FREE TO REMOVE
YOU HAVE REQUESTED THIS SPAM
BUY THIS NOW AT 1-800-232-3323 for $10,000,000.00
VIAGRA
CLICK HERE TO REMOVE <a href="mailto: remove at spam.com"> HERE </a>
<a href="http://www.msn.fullfeed.com">click here</a>
.
quit
Here's the code from mimedefang-filter:
if ($MOVESPAM && $hits >= $SAMoveScore) {
action_add_header("X-Spam-Rec", "@Recipients");
my ($neworig);
my ($ok2add);
$ok2add=0;
foreach $neworig (@Recipients) {
delete_recipient(lc($neworig));
delete_recipient(uc($neworig));
delete_recipient($neworig);
$neworig="\<".$neworig."\>";
delete_recipient(lc($neworig));
delete_recipient(uc($neworig));
delete_recipient($neworig);
} # end of recipient loop
add_recipient("spamdrop\@mydomain.net");
} # end of movespam conditional
Here's the log:
Feb 13 14:46:53 mail3 sendmail[32375]: i1DJkfpe032375: from=jmichael at msn.fullfeed.com, size=488, class=0, nrcpts=1, msgid=<200402131946.i1DJkfpe032375 at mta.mydomain.net>, proto=SMTP, daemon=MTA, relay=myserver.mydomain.com [MY.IP.ADR.HRE]
Feb 13 14:46:53 mail3 mimedefang.pl[27999]: i1DJkfpe032375: Moved SPAM: 20.829 jmichael at msn.fullfeed.com mike at alphamgmt.com
Feb 13 14:46:53 mail3 sendmail[32381]: i1DJkfpe032375: to=spamdrop at mydomain.net, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=30488, relay=mta.mydomain.net. [IP.ADR.HRE.XX], dsn=2.0.0, stat=Sent (i1DJkrku029201 Message accepted for delivery)
Feb 13 14:46:53 mail3 sendmail[32381]: i1DJkfpe032375: to=<MIkE at alPHamgmt.com>, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=30488, relay=myserver.mydomain.com. [IP.NO.WAS.HRE], dsn=2.0.0, stat=Sent (Message accepted for delivery)
More information about the MIMEDefang
mailing list