Restrict pop3 access for a specific mailbox

webquarry

Verified User
Joined
Mar 19, 2004
Messages
171
I have one virtual mailbox user (in a company of about 50 users) that insists on using pop3 to access a 10 gig mailbox from multiple devices all at the same time and it is bringing the server to a crawl. I have informed them over and over again that they need to use imap but they are either too stubborn or too stupid.

Since I don't want to impact the rest of the company (or other accounts on the server), is there any way I can turn off pop3 access for that one virtual mailbox? I know I could easily disable it entirely but i don't want to go there.
 
Hello,

Try this:

passwd-file

You can create a deny passwd-file based on the service:

Code:
passdb {
   driver = passwd-file
   args = /etc/dovecot/deny.%s
   deny = yes
}

This makes Dovecot look for /etc/dovecot/deny.imap and /etc/dovecot/deny.pop3 files. If the user exists in it, the access is denied. The files don't need to have anything else than one username per line.


Note that this deny passdb must be before other passdbs. It also means that it can be used with any other passdb, not just with passwd-file passdbs.


http://wiki2.dovecot.org/Authentication/RestrictAccess
 
Back
Top