On Wednesday 18 January 2006 14:02, David Somers wrote: > On Wednesday 18 January 2006 03:06, Sam Varshavchik wrote: > > David Somers writes: > > > Hi, > > > > > > Jan 18 02:10:18 caslon courierlocal: > > > id=002291B3.43CD953C.00005D1F,from=<[EMAIL PROTECTED]>,addr=<dsomers > > >@t revezel.com>: *** SPAM threshold exceeded; dropping > > > > > > Jan 18 02:10:18 caslon courierlocal: > > > id=002291B3.43CD953C.00005D1F,from=<[EMAIL PROTECTED]>,addr=<dsomers > > >@t revezel.com>,size=2904,success: Message delivered. > > > > > > I get that "Message delivered" showing up... when I really want > > > courierlocal to say that its been dropped. Is setting EXITCODE = 0 the > > > right thing to do? > > > > Yes. The message delivery process completed successfully. The end > > result is that the message was discarded. > > Sure... but is there a way to get courier to log that the message was > "discarded" rather than "message delivered"? I find that status message a > bit misleading. Plus, I'm trying to generate some stats on the mail usage > I'm seeing and need to differentiate between delivered and discarded > messages (at the moment I haveto infer the right figure by counting > "message delivered" and subtracting away the number of " *** SPAM threshold > exceeded" message that I echo - I just find it a bit inelegant). >
You could try to put 'echo' statement into your maildrop recipe. While it seems to be not the recommended way, it Works For Me(TM) - I am getting somewhat longer line logged for courierlocal, with last part beeing the argument of 'echo' statement. Regards, Milan ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
