3 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Log verbosity reg...
FromSent OnAttachments
ScottDec 22, 2005 3:50 pm 
ScottDec 27, 2005 3:45 pm 
Gordon MessmerDec 27, 2005 4:01 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] Log verbosity regarding aliasesActions...
From:Gordon Messmer (yiny@eburg.com)
Date:Dec 27, 2005 4:01:38 pm
List:net.sourceforge.lists.courier-users

Scott wrote:

Is there a way I can increased the verbosity in the maillog to the point where it will tell me when it expands aliases.

Not by default, but it's trivial to write a courier filter that would do exactly that.

If, for instance, you used pythonfilter (http://phantom.dragonsdawn.net/~gordon/courier-patches/courier-pythonfilter/), you could modify the noduplicates.py filter so that instead of removing addresses that had been seen before, it logged entries where the rewritten address doesn't match the original message recipient. I believe the code would look something like this:

rcpts = courier.control.getRecipientsData(controlFileList) for x in rcpts: if x[0] != x[1]: sys.stderr.write('alias log: message was sent to "%s"\n' \ % x[1]) # Return no decision. return ''