[Dovecot] How to disable imap of some user
邓卫华
dengwh at bestcheer.com
Sat Feb 19 15:20:24 EET 2011
Dear Pascal,
thanks for your reply ASAP. can i only add pop3 and
imap column in the password table, and not to add sieve and smtp column?
can password not verified if there have not existing smtp and sieve
column?
Regards,
Deng
On Sat, 19 Feb 2011 09:17:16 +0100, Pascal
Volk wrote:
> On 02/19/2011 08:55 AM 邓卫华 wrote:
>> Hi, in our company,
i want to disable imap of some users, they can access them mailbox by
pop3 only, and another user can allow access them mailbox by imap or
pop3. how can i do ?
> Its really simple - since you are using a SQL
backend for your passdb. Didn't you? Create your table* like: user |
password | etc ... | smtp | pop3 | imap | sieve
------------------+----------+---------+------+------+------+-------
user at example.com [1] | XXX | | t | t | t | t And a password_query like:
SELECT user, password FROM tbl WHERE user = %s and %s * = the columns
smtp, pop3, imap and sieve have the type boolean. Rename sieve to
managesieve if you are using Dovecot < 1.2.beta2 Regards, Pascal
--
Best Cheer (XiaMen) Stone Works CO.,LTP.
Phone: 0592-7221600
Links:
------
[1] mailto:user at example.com
More information about the dovecot
mailing list