[Mimedefang] Mimedefang/logwatch interaction

PF kernel at pkts.ca
Tue Feb 20 00:09:45 EST 2007


On Mon, 2007-02-19 at 21:55 -0700, Philip Prindeville wrote:
> I was wondering...  In the case of programs that run locally and
> then generate mail like "cron" and "logwatch", what test can one
> do within filter_begin() to decide to skip any processing on the
> rest of the message?
> 
> Should ${daemon_flags} be part of Milter.macros.connect?
> 
> I was thinking that this would also be useful to avoid recursion
> from resend_message*().
> 
> -Philip

One solution is to test the source ip address near the end of
filter_multipart():

 if ($RelayAddr eq "127.0.0.1") {
 return action_accept();   # Or other stuff
 }    


-- 
PF <kernel at pkts.ca>




More information about the MIMEDefang mailing list