Yahoo Groups archive

Milter-greylist

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

Thread

logging message ID with log ACL

logging message ID with log ACL

2016-12-12 by Marcus Schopen

Hi,

how do I log the message ID when using log ACL e.g. like this:

   racl "DEBUG" continue from /.*/ log "write something to logfile"

I can't find FORMAT STRINGS in man greylist.conf.

Ciao
Marcus

Re: [milter-greylist] logging message ID with log ACL

2016-12-12 by Marcus Schopen

On 2016-12-12 16:02, Marcus Schopen lists-yahoogroups@... 
[milter-greylist] wrote:
> Hi,
> 
> how do I log the message ID when using log ACL e.g. like this:
> 
>    racl "DEBUG" continue from /.*/ log "write something to logfile"
> 
> I can't find FORMAT STRINGS in man greylist.conf.

Not the client's Message-ID field from the header, but sendmail's 
Message-ID, like this:

Dec 12 17:15:07 server milter-greylist: uBCGExVq014429: ....

Is the a FORMAT STRINGS to get "uBCGExVq014429" from?

Ciao
Marcus

Re: [milter-greylist] logging message ID with log ACL

2016-12-12 by Marcus Schopen

On 2016-12-12 18:11, Marcus Schopen lists-yahoogroups@... 
[milter-greylist] wrote:
> On 2016-12-12 16:02, Marcus Schopen lists-yahoogroups@...
> [milter-greylist] wrote:
>> Hi,
>> 
>> how do I log the message ID when using log ACL e.g. like this:
>> 
>>    racl "DEBUG" continue from /.*/ log "write something to logfile"
>> 
>> I can't find FORMAT STRINGS in man greylist.conf.
> 
> Not the client's Message-ID field from the header, but sendmail's
> Message-ID, like this:
> 
> Dec 12 17:15:07 server milter-greylist: uBCGExVq014429: ....
> 
> Is the a FORMAT STRINGS to get "uBCGExVq014429" from?

It's the %M{i} macro:

  racl "DEBUG" continue from /.*/ log "%M{i}: write something to logfile"

Ciao!

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.