This is a discussion on Re: [courier-users] Log verbosity regarding aliases within the Courier-Imap forums, part of the Mail Servers and Related category; Scott wrote: > Is there a way I can increased the verbosity in the maillog to the point > where ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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/~gord...-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 '' ------------------------------------------------------- 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://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users |