Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Sending ACL id string to syslog, instead of ACL line number

2009-04-15 by John Thiltges

Hi all,

I recently upgraded to milter-greylist 4.2.2. I was looking forward to 
using the feature of adding an id string to ACL entries and easily 
gathering detailed stats on which rules were matching.

However, it appears that the default syslog output includes the 
configuration line number only, and not the id. The 'stat' keyword could 
be used to create an additional logfile. But, I'd prefer to have that 
information in the existing maillog.

Attached is a patch to replace the logging of ACL line number with ACL 
id string (if an id is specified). It uses fstring_expand(..., "%a") to 
build the string.

I'd be happy to hear other suggestions of how to collect ACL statistics.

Regards,
John

Example syslog output where an id of 'CBL' is defined:
Apr 15 15:18:20 server milter-greylist: n3FKIIpx012305: addr 
[127.0.0.1][127.0.0.1] from <nobody@...> to <nobody@...> 
delayed for 01:00:00 (ACL CBL)

Example syslog output where no id is defined:
Apr 15 15:18:20 server milter-greylist: n3FKIIpy012305: skipping 
greylist because this is the default action, (from=<nobody@...>, 
rcpt=<nobody@...>, addr=example.com[127.0.0.1]) ACL 212(none)

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.