how to manage user_deny.db

Dan White dwhite at olp.net
Fri Jun 11 10:12:20 EDT 2010


On 11/06/10 14:44 +0200, Michael Menge wrote:
> Hi,
>
> is there a tool to add/remove a user to/from the user_deny.db?

You can use cyr_dbtool:

touch /var/lib/imap/user_deny.db
chown cyrus:mail /var/lib/imap/user_deny.db
su - cyrus
cyr_dbtool /var/lib/imap/user_deny.db flat set dwhite "2     pop3    Can't
use pop."

For the format of the database value, see:

http://cyrusimap.web.cmu.edu/imapd/internal/database-formats.html

When using the shell, you will need to escape your tabs. In bash, I
typed:

"2<ctrl-v><tab>pop3<ctrl-v><tab>Can't use pop."

And then I get:

telnet localhost 110
Trying 127.0.0.1...
Connected to zek.olp.net.
Escape character is '^]'.
+OK zek Cyrus POP3 v2.3.16 server ready
<17564574347538583243.1276265278 at zek>
user dwhite
+OK Name is a valid mailbox
-ERR [SYS/TEMP] Can't use pop.
Connection closed by foreign host.

-- 
Dan White


More information about the Info-cyrus mailing list