[Mimedefang] Graphdefang Question on auth_author
John Kirkland
jpk at bl.org
Sat May 17 09:14:00 EDT 2003
Albert,
I just did some digging around in my filter and syslogs, and I've decided
to change my filter similar to the following:
Basically, I'm making the mail_in and mail_out decisions based on whether
the relay address is localhost or the local ip number. If your mail
server is an outgoing server for a subnet, you might want to include the
subnet in your checking.
sub filter_end ($) {
my($entity) = @_;
# No sense doing any extra work
return if message_rejected();
# Spam checks if SpamAssassin is installed
if ($Features{"SpamAssassin"}) {
# If the mail is relayed through my local machine
# don't run spamassassin against it.
if ($RelayAddr eq "127.0.0.1" or
$RelayAddr eq "192.168.0.129") {
md_log('mail_out',,$RelayAddr);
} else {
# Check for spam
# Spamassassin checking here
if (message_is_spam) {
} else {
# If the message is not spam, log it as
# mail_in
md_log('mail_in',,$RelayAddr);
}
}
}
}
Try that, and see if it works for you.
-John
On Fri, 16 May 2003, Albert E. Whale, CISSP wrote:
> John,
>
> I've taken your suggestion and I have implemented the
>
> # If SpamAssassin found SPAM, append report. We do it as a separate
> # attachment of type text/plain
> sub filter_end ($) {
>
> if (defined($SendmailMacros{'auth_author'})) {
> md_log('mail_out',,$RelayAddr);
> } else {
> md_log('mail_in',,$RelayAddr);
> }
>
> my($entity) = @_;
>
>
> While I can see the mail_in entries in the Logfile now, I do not see any
> Mail_Out entries. Is there additional configuration information I
> missed in the FAQ on your Web Site?
>
> TIA.
>
>
>
>
> --
> Albert E. Whale, CISSP
> http://www.abs-comptech.com
> ----------------------------------------------------------------------
> ABS Computer Technology, Inc. - ESM, Computer & Networking Specialists
> Sr. Security, Network, and Systems Consultant
> Founding Board of Directors of Pittsburgh FBI - InfraGard
>
>
>
>
>
> --__--__--
>
More information about the MIMEDefang
mailing list