[Dovecot] lmtp-postlogin ?
We have last-login tracking for imap and pop, and I intend to use this for deciding which users to backup daily. But, it would also be nice to backup users who has only received messages, but not logged in lately.. So is it possible to implement "last-login" tracking for lmtp ?
I naively tried copying the settings from imap, but it didn't work:
service lmtp-postlogin {
executable = script-login /usr/local/sbin/lmtp-postlogin.sh
unix_listener lmtp-postlogin {
}
}
service lmtp {
executable = lmtp lmtp-postlogin
<snip>
-jf
On 30.12.2011, at 11.00, Jan-Frode Myklebust wrote:
We have last-login tracking for imap and pop, and I intend to use this for deciding which users to backup daily. But, it would also be nice to backup users who has only received messages, but not logged in lately.. So is it possible to implement "last-login" tracking for lmtp ?
LMTP supports authentication, but Dovecot doesn't support it. And you most likely didn't mean that anyway. So, when would it be executed? When client connects? After each RCPT TO? After DATA?
Maybe create a new plugin for this using notify plugin.
On Fri, Dec 30, 2011 at 02:03:34PM +0200, Timo Sirainen wrote:
LMTP supports authentication, but Dovecot doesn't support it. And you most likely didn't mean that anyway.
Yes, I know..
So, when would it be executed? When client connects? After each RCPT TO? After DATA?
For my async backup-purposes any time after RCPT TO would be fine. I just want to know which users has received any message the last X hours. But i guess the ideal place would be at the time lmtp logs that it's saved a message to a mailbox. Guess a workaround is to grep for these in the log.
Maybe create a new plugin for this using notify plugin.
Is there any documentation for this plugin? I've tried searching both this list, and the wiki's.
-jf
On Fri, 2011-12-30 at 14:08 +0100, Jan-Frode Myklebust wrote:
Maybe create a new plugin for this using notify plugin.
Is there any documentation for this plugin? I've tried searching both this list, and the wiki's.
Nope. You could look at mail-log and http://dovecot.org/patches/2.0/touch-plugin.c and write something based on them.
participants (2)
-
Jan-Frode Myklebust
-
Timo Sirainen