[Dovecot] selective POP3 user
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.
Barry
On Wed, 2 Mar 2005 22:10:31 +0800 "Barry Kwok" <barrykwok@spymac.com> 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.
I don't know if Dovecot can do this, but you could you block ports 143 and 993 to those users?
Keith
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.
participants (3)
-
Barry Kwok
-
Keith Edmunds
-
Timo Sirainen