[Dovecot] disabling mail delivery for a user
Timo Sirainen
tss at iki.fi
Tue Feb 2 13:29:24 EET 2010
On 2.2.2010, at 7.51, Frank Cusack wrote:
> How can I disable mail delivery for a user yet still allow access to
> their mailbox from another account which their mail is shared to?
>
> If I put them in a userdb which has "deny = yes" that just disables
> their ability to login, yes? And they would still have mail delivered.
Logins would fail with "internal login failure". userdb lookup must succeed for imap/pop3 logins too. You could make the deny=yes happen only if %s != 'lda'.
> I want to disable their ability to login AND bounce all mail delivered
> to them, preferably solely through dovecot configuration. I am using
> lda, obviously, for mail delivery. (I could configure the MTA to reject
> mail for them if there is no other option.)
But like Steffen said, you should do this in MTA side to avoid backscatter.
More information about the dovecot
mailing list