[Mimedefang] question about adding and removing recipients for spam
Alton Yu
alton at shocknetwork.com
Tue May 13 20:18:00 EDT 2003
For all incoming mail, I want to copy it to another domain so I do it like
this:
foreach $recip (@Recipients) {
$recip =~ s/\@k2architects\.com/\@beijing.k2architects\.com/gi;
$beijingrecip = $recip;
action_add_header("X-Original-Recipient", $recip);
add_recipient("$beijingrecip");
}
Then, for all spam, I delete the recipients and forward it to another
address like this:
if ($hits >= 5.5) {
foreach $recip (@Recipients) {
action_add_header("X-Original-Recipient", $recip);
delete_recipient($recip);
}
add_recipient('spam at beijing.k2architects.com');
}
Unfortunately, I don't get the results I want as I have the log at the
bottom that shows that one of the recipients did not get removed.
TIA
Alton
May 13 15:09:24 wuhan sendmail[27961]: [ID 801593 mail.info]
h4DM9Otw027961: from=<bounce-BRD_12381483-3348401- at bender.fltn.net>,
size=5549, class=0, nrcpts=1, msgid=<2076247986 at 1450354384>, proto=SMTP,
daemon=MTA, relay=fl4.fltn.net [207.134.171.21]
May 13 15:09:26 wuhan mimedefang.pl[27832]: [ID 702911 mail.info]
MDLOG,h4DM9Otw027961,spam,9,207.134.171.21,<bounce-brd_12381483-3348401- at bender.fltn.net>,<hkwong at beijing.k2architects.com>,Need
a NEW Computer? No Credit - No Problem
May 13 15:09:26 wuhan sendmail[27961]: [ID 801593 mail.info]
h4DM9Otw027961: Milter add: header: X-Original-Recipient:
<HKWONG at KKARCHITECTS.COM>
May 13 15:09:26 wuhan sendmail[27961]: [ID 801593 mail.info]
h4DM9Otw027961: Milter add: rcpt: <HKWONG at KKARCHITECTS.COM>
May 13 15:09:26 wuhan sendmail[27961]: [ID 801593 mail.info]
h4DM9Otw027961: Milter add: rcpt: <HKWONG at beijing.k2architects.com>
May 13 15:09:26 wuhan sendmail[27961]: [ID 801593 mail.info]
h4DM9Otw027961: Milter add: header: X-Original-Recipient:
<HKWONG at beijing.k2architects.com>
May 13 15:09:26 wuhan sendmail[27961]: [ID 801593 mail.info]
h4DM9Otw027961: Milter delete: rcpt <HKWONG at beijing.k2architects.com>
May 13 15:09:26 wuhan sendmail[27961]: [ID 801593 mail.info]
h4DM9Otw027961: Milter add: rcpt: spam at beijing.k2architects.com
May 13 15:09:26 wuhan sendmail[27961]: [ID 801593 mail.info]
h4DM9Otw027961: Milter change: header Content-Type: from
multipart/alternative;\n
boundary="Boundary-=_b3eb8fe054276d1c8de3314c7e9a9df89" to
multipart/mixed; boundary="----------=_1052863766-27832-16"
May 13 15:09:26 wuhan sendmail[27961]: [ID 801593 mail.info]
h4DM9Otw027961: Milter change: header MIME-Version: from 1.0 to 1.0
May 13 15:09:26 wuhan sendmail[27961]: [ID 801593 mail.info]
h4DM9Otw027961: Milter message: body replaced
May 13 15:09:26 wuhan sendmail[27963]: [ID 801593 mail.info]
h4DM9Otw027961: to=<HKWONG at KKARCHITECTS.COM>, delay=00:00:02,
xdelay=00:00:00, mailer=esmtp, pri=120581, relay=[192.168.1.13]
[192.168.1.13], dsn=2.0.0, stat=Sent ( <2076247986 at 1450354384> Queued mail
for delivery)
May 13 15:09:42 wuhan sendmail[27963]: [ID 801593 mail.info]
h4DM9Otw027961: to=spam at beijing.k2architects.com, delay=00:00:18,
xdelay=00:00:16, mailer=esmtp, pri=120581, relay=[192.168.1.2]
[192.168.1.2], dsn=2.0.0, stat=Sent (h4D6xg2b023840
Message accepted for delivery)
More information about the MIMEDefang
mailing list