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 ''
-------------------------------------------------------
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
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users