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

FORMER 03 | Baltasar Cevc baltasar.cevc at former03.de
Mon Aug 6 15:43:24 EEST 2007


Hi Timo,

On Mon, 06 Aug 2007 15:00:05 +0300
Timo Sirainen <tss at iki.fi> wrote:

> 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".
I had that before, but due to the setup I use (Linux Vserver), it would
be a bit nicer to bind it to different ports instead of different IPs
(localhost maps to the IP of the system in the setup, so I need to
setup two IPs).
But any working solution will do...

> > 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'
That's what I've overseen. This will solve the "problem".
Thanx a lot,
Baltasar

-- 

_____ FORMER 03 GmbH
_____ infanteriestra§e 19 haus 6 eg
_____ 80797 muenchen

_____ www.former03.de


More information about the dovecot mailing list