[Dovecot] Different protocols with different auth-types

Timo Sirainen tss at iki.fi
Sat Feb 21 00:13:27 EET 2009


On Wed, 2009-02-18 at 10:47 -0800, Morton.Trust wrote:
> Hello, 
> 
> I have installed dovecot with MySQL in which the users are stored. Now I
> want to separate IMAP-Users from POP3-Users. So I added two columns to the
> user table (imap / pop3) which indicates, whether the user has access to
> IMAP or not.
> 
> In order to get dovecot recognizing this separation I put the auth-config
> into the two protocol-sections and wrote two different
> dovecot-sql.conf-files. In the dovecot-sql-pop3.conf the query searches for
> pop3=1 and in the dovecot-sql-imap.conf it searches for imap=1. 

That doesn't work. But luckily for you, there's a simple way to
implement this: Replace the imap=1 or pop3=1 with %s=1. %s gets expanded
to imap or pop3.

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


More information about the dovecot mailing list