Morton.Trust
2009-Feb-18 18:47 UTC
[Dovecot] Different protocols with different auth-types
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. Done that, I expected POP3-Only-Users getting an error while trying to connect to the IMAP-service. But dovecot first tries to authenticate for IMAP and then uses the POP3-auth as fallback. How can I do this separation? Thanks a lot, Morton -- View this message in context: http://www.nabble.com/Different-protocols-with-different-auth-types-tp22085555p22085555.html Sent from the Dovecot mailing list archive at Nabble.com.
Timo Sirainen
2009-Feb-20 22:13 UTC
[Dovecot] Different protocols with different auth-types
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: signature.asc 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-0002.bin>
Seemingly Similar Threads
- [vhost:vhost 32/52] include/linux/typecheck.h:12:18: warning: comparison of distinct pointer types lacks a cast
- Different LDAP filters for different protocols
- Require different setting for mail_location for each of POP3S and IMAPS protocols
- Specify auth service for protocols
- Different settings for SSL/non-SSL protocols