[Mimedefang] mimedefang specific users
B. Tolka
btolka at hsc.wvu.edu
Mon Jun 2 14:48:01 EDT 2003
I used code from another list member David ???. I have a file
/etc/mail/spamin that contains a list of users that do not want spam
filtering. When i send a message to a user thats has spam filter
enabled and a users that does not have spam filtering it does not work.
Here is what the mailog has
Jun 2 10:31:33 xhost mimedefang.pl[27154]: h52EVWFc027262: streamed by
domain or recipient and resent.
Jun 2 10:31:33 xhost mimedefang[27168]: h52EVWFc027262: Discarding
because filter instructed us to
Jun 2 10:31:33 xhost sendmail[27262]: h52EVWFc027262: Milter: data,
discard
Jun 2 10:31:33 xhost sendmail[27262]: h52EVWFc027262: discarded
The function code is:
sub stream_by_receipient () {
my(@on_list, @off_list, $recip);
foreach $recip (@Recipients) {
if (should_check_for_spam($recip)) {
push(@off_list, $recip);
} else {
push(@on_list, $recip);
}
}
if ($#on_list >= 0 && $#off_list >= 0) {
# Some on, some off -- remail
resend_message(@on_list);
resend_message(@off_list);
$TerminateAndDiscard = 1;
return 1;
}
return 0;
}
Any help is appreciated
Bryan Tolka
Network Engineer
---------------------------------------
Robert C. Byrd Health Sciences Center
Morgantown, WV
304-293-4683
btolka at hsc.wvu.edu
More information about the MIMEDefang
mailing list