Page 1 of 1

Log LMTP/MTA filters events.

Posted: Mon Feb 20, 2012 8:17 am
by 13331stalker
Hello Everybody,


When user has created a "Forward To Address" filter and created some rule. I just want to log such filters into database or somewhere if any email get hit by those kind of filters.
Please help me to find a solution.
Thanks.

Log LMTP/MTA filters events.

Posted: Mon Feb 20, 2012 11:33 pm
by 3244vmahajan
Currently an info message "Redirecting message to xxx@yyy.com" is logged in mailbox.log.

Log LMTP/MTA filters events.

Posted: Tue Feb 21, 2012 2:16 am
by 13331stalker
[quote user="3244vmahajan"]Currently an info message "Redirecting message to xxx@yyy.com" is logged in mailbox.log.[/QUOTE]
I know, but that is not sufficient because it's just says the message has been forwarded to . But doesn't provide any information like message ID etc.
Besides, it is require to parse the logs at some interval. And require to keep track of the the last time the program has checked the logs etc. etc. stuff. Is there any facility which notify me that the filter has been hit and for which account and where the email has been forwarded to?

Log LMTP/MTA filters events.

Posted: Tue Feb 21, 2012 3:34 am
by 3244vmahajan
Feel free to file an enhancement request for this.

Log LMTP/MTA filters events.

Posted: Tue Feb 21, 2012 4:05 am
by 13331stalker
Alright. Thanks.

Log LMTP/MTA filters events.

Posted: Wed Feb 29, 2012 5:54 pm
by 10119metux
Meanwhile we've fixed this issue by using a special milter.
Our mail_history package consists of three parts:

* milter, running on the MTA nodes

* mailboxd extension

* zimlet