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

Zhang Huangbin zhbmaillistonly at gmail.com
Mon Aug 3 10:48:04 EEST 2009


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 :)

-- 
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