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

Zhang Huangbin michaelbibby at gmail.com
Sun Aug 2 05:36:19 EEST 2009


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/



More information about the dovecot mailing list