[Mimedefang] Authentication-Warning
John Von Essen
essenz at essenz.com
Mon Mar 17 17:40:00 EST 2003
Mar 17 16:27:39 host sendmail[29660]: [ID 801593 mail.info]
h2HLRdrk029660: Authentication-Warning: host.domain.com:
defang set sender to postmaster at domain.com using -f
I always get the above in my maillog when a quarantine report goes out. Is
this a problem, or should I disregrad it? Can you supress it?
Also, I modified my mimedefang-filter file to only use spamassassin. My
file is attached below. Does anyone see any problems with it?
Thanks
John
sub filter_begin () {
# ALWAYS drop messages with suspicious chars in headers
if ($SuspiciousCharsInHeaders) {
md_log('suspicious_chars');
action_quarantine_entire_message("Message quarantined because of
suspicious characters in headers");
# Do NOT allow message to reach recipient(s)
return action_discard();
}
}
sub filter ($$$$) {
my($entity, $fname, $ext, $type) = @_;
return if message_rejected(); # Avoid unnecessary work
if ((-s "./INPUTMSG") <= (200 * 1024)) {
my($hits, $req, $names, $report) = spam_assassin_check();
$SAReport = $report;
if ($hits < 8) {
# NON-SPAM
action_add_header("X-Spam-Status", "No, hits=$hits
required=8");
return action_accept();
}
if ($hits >= 8) {
# SPAM - QUARANTINE
action_add_header("X-Spam-Status", "Yes, hits=$hits
required=8");
action_add_header("X-Spam-Report","$report");
action_quarantine_entire_message();
send_quarantine_notifications();
return action_discard();
}
}
}
1;
More information about the MIMEDefang
mailing list