Zhang Huangbin
2009-Aug-02 02:36 UTC
[Dovecot] Best way to get login protocol (pop3/imap) in post-login script
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 command to get protocol: ---- $(basename ${MAIL_PLUGIN_DIR}) ---- But is it the best way to get it? Thanks very much. :) -- Best Regards. Zhang Huangbin - Open Source Mail Server Solution for Red Hat(R) Enterprise Linux, CentOS, Debian, Ubuntu: + http://code.google.com/p/iredmail/ + http://www.iredmail.org/forum/
Zhang Huangbin
2009-Aug-02 02:51 UTC
[Dovecot] Best way to get login protocol (pop3/imap) in post-login script
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 command to get protocol: ---- $(basename ${MAIL_PLUGIN_DIR}) ---- But is it the best way to get it? Thanks very much. :) -- Best Regards. Zhang Huangbin - Open Source Mail Server Solution for Red Hat(R) Enterprise Linux, CentOS, Debian, Ubuntu: + http://code.google.com/p/iredmail/ + http://www.iredmail.org/forum/