Re: [Dovecot] Best way to get login protocol (pop3/imap) in post-login script

2009-08-03 Thread Zhang Huangbin
On Aug 3, 2009, at 9:47 AM, Timo Sirainen wrote: How about giving the imap or pop3 as parameter? You're already modifying mail_executable, so: protocol imap { mail_executable = script.sh imap } protocol pop3 { mail_executable = script.sh pop3 } It works with above setting. Thanks Timo

Re: [Dovecot] Best way to get login protocol (pop3/imap) in post-login script

2009-08-02 Thread Timo Sirainen
On Sun, 2009-08-02 at 10:51 +0800, Zhang Huangbin wrote: > Hi, all. > > I found doc here: http://wiki.dovecot.org/PostLoginScripting > and use ${USER}, ${IP} to track last-login username and remote ip > address, but how can i track the mail protocol it used? like pop3, > pop3s, imap, imaps? H

[Dovecot] Best way to get login protocol (pop3/imap) in post-login script

2009-08-01 Thread Zhang Huangbin
Hi, all. I found doc here: http://wiki.dovecot.org/PostLoginScripting and use ${USER}, ${IP} to track last-login username and remote ip address, but how can i track the mail protocol it used? like pop3, pop3s, imap, imaps? Currently, i wrote shell script as post-login script, and use below

[Dovecot] Best way to get login protocol (pop3/imap) in post-login script

2009-08-01 Thread Zhang Huangbin
Hi, all. I found doc here: http://wiki.dovecot.org/PostLoginScripting and use ${USER}, ${IP} to track last-login username and remote ip address, but how can i track the mail protocol it used? like pop3, pop3s, imap, imaps? Currently, i wrote shell script as post-login script, and use below