postfix-users

Re: syslog line for milter reject .. does not list recipient

Subject: Re: syslog line for milter reject .. does not list recipient
From: wietse AT porcupine DOT org (Wietse Venema)
To: ram <ram AT netcore.co DOT in>
Date: Sat, 4 Aug 2007 11:08:54 -0400 (EDT)
ram:
> I have written a custom milter to reject mails at SMTP level based on
> some policies. ( basically user level blacklisting etc ) 
> 
> Now my milter seems to work fine( at least in the test
> environment :-) ) 
> 
> 
> But My reports are not working because the syslog line does not contain
> recipient-id 
> 
> -----
> Aug  4 18:42:04 ms6build postfix/smtpd[20765]: NOQUEUE: milter-reject:
> RCPT from unknown[192.168.2.105]: 503 5.0.0 Sender not allowed for this
> recipient; from=<ram AT microsoft DOT com> proto=ESMTP helo=<netcore.co.in>
> Aug  4 18:42:04 ms6build postfix/smtpd[20765]: lost connection after
> RCPT from unknown[192.168.2.105]
> -----
> 
> But a mail rejected by other filters ( eg rbl with zen.spamhaus ) come
> with both sender and recipient.  Can I configure postfix to list both
> sender and recipient in the syslog 

This requires a source code fix.

        Wietse

<Prev in Thread] Current Thread [Next in Thread>