[Mimedefang] md_graphdefang_log called outside of message context

ms at interspace.net ms at interspace.net
Sun Dec 25 10:27:29 EST 2005


Hi plp,


Sorry to bother you again...
I tried to look the answer in the archives but couldn't find it...(maybe i
wasn't looking hard enough)...
and i'm quite sure it was discussed before.
details:
debian sarge 3.1 + mimedefang 2.54 + sendmail 8.13
My problem is:
I added a filter_sender (and RESTARTED mimedefang with -s (!!) option)
the filter is a basic anti-spoofing rule that works good.
i keep a seperate log for the mimedefang called mimedefang.log
here is the code:
[quote]
sub filter_sender {
    my ($sender, $ip, $hostname, $helo) = @_;
if ($sender....)
[snip]
        md_syslog("warning", "SPOOFING : IP: $ip, Sender: $sender");
        md_graphdefang_log('SPOOFING', $sender, $RelayAddr);
        return ('REJECT', 'Sorry, but address spoofing is blocked.');
    }
    return ('CONTINUE', "ok");
}
[end-quote]
The problem is that only the mail.log is updated and not the mimedefang.log!
and the next line in mail.log is:
md_graphdefang_log called outside of message context

Where did i go wrong????


Thanks,
Meni

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



More information about the MIMEDefang mailing list