[Mimedefang] md_graphdefang_log called outside of message context

ms at interspace.net ms at interspace.net
Wed Dec 28 10:16:29 EST 2005


Quoting Paul Murphy <pjm at ousekjarr.org>:

>
>
>> [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
>
> md_graphdefang_log requires the Subject to be available, so cannot be used in
> filter_sender, filter_recipient, etc, as these are called before the message
> exists - only the envelope is available at this time.

Thanks for the explaination! that clarifies the problem i had.
But how do i enable this type of loggong for the md_graphdefang ??
I want to see these spoofing in the graphs made by graphdefng??

Thanks for your comments.
Meni
>
> Instead, do the same thing manually using md_syslog:
>
> 	md_syslog('info', "MDLOG,$MsgID,SPOOFING,0,$hostip,$sender,?,?");
>
> Paul.
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.371 / Virus Database: 267.14.8/215 - Release Date: 27/12/2005
>
>
> _______________________________________________
> NOTE: If there is a disclaimer or other legal boilerplate in the above
> message, it is NULL AND VOID.  You may ignore it.
>
> Visit http://www.mimedefang.org and http://www.roaringpenguin.com
> MIMEDefang mailing list MIMEDefang at lists.roaringpenguin.com
> http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
>



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




More information about the MIMEDefang mailing list