[Dovecot] Disable IMAP for certain users, but not Webmailer

Timo Sirainen tss at iki.fi
Mon Aug 6 15:00:05 EEST 2007


On Sun, 2007-08-05 at 22:20 +0200, FORMER 03 | Baltasar Cevc wrote:
> password_query = SELECT username AS user, password_enc AS password FROM
> mail_users WHERE username = '%u' AND ( (IF('%a'='143', `imap`,'0'))='Y'
> OR (IF('%a '='110', `pop3`, '0') = 'Y') OR 1 )

Instead of ports it would be better to use %Ls which expands to "imap"
or "pop3".

> But I'd need some possibility to have two different IMAP listeners
> (e.g. one on port 144 for webmail) or something similar, as I currently
> disallow webmail (which connects to localhost via IMAP), too.

or '%r' = '127.0.0.1'

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20070806/acd7c691/attachment.bin 


More information about the dovecot mailing list