Re: [courier-users] Log verbosity regarding aliases

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 ...


Go Back   Usenet Forums > Mail Servers and Related > Courier-Imap

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-28-2005
Gordon Messmer
 
Posts: n/a
Default Re: [courier-users] Log verbosity regarding aliases

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:21 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0