[Dovecot] selective POP3 user
Timo Sirainen
tss at iki.fi
Thu Mar 3 19:57:53 EET 2005
On Wed, 2005-03-02 at 22:10 +0800, Barry Kwok wrote:
> I want to know if it is possible to limit some users to use POP3 service only in a server running BOTH IMAP and POP3 service. In other words, some users can choose IMAP or POP3 and some users can only use POP3.
With 1.0-tests/1.0-stable and SQL userdb it's possible. Make the SQL
query something like:
select uid, gid, home from users
where user = '%u' and (service is null or service = '%s')
with pop3-only users you'd then set service = 'pop3' and with
imap/pop3-users set it NULL.
pop3-user trying to log in with IMAP would then get a normal "login
failed" error. It's also possible to give a real error message by
returning nologin='Y' and reason='POP3 allowed only', but you'd have to
use some SQL tricks to do that.
-------------- 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/20050303/174907de/attachment.pgp
More information about the dovecot
mailing list