[Dovecot] Deleting mail account?
This is likely a daft question, but how do I remove a mailbox from a dovecot server? I'd like to simply remove it from the disk as well, deleting any messages, indexes etc etc
Is there a way?
david
!DSPAM:1715,4a1a817434922186719589!
On Seg, 25 Mai 2009, David Reid wrote:
This is likely a daft question, but how do I remove a mailbox from a
dovecot server? I'd like to simply remove it from the disk as well,
deleting any messages, indexes etc etcIs there a way?
There is an IMAP command that does that. I don't remember its name,
but you can lookup in the RFC.
Or you can just remove the file (if using mbox) or directory (if using
Maildir) that holds the mailbox. Then remove the indexes, which can be
in the same directory or somewhere else, depending on how you
configured dovecot.
-- Eduardo M KALINOWSKI eduardo@kalinowski.com.br
Eduardo M KALINOWSKI wrote:
On Seg, 25 Mai 2009, David Reid wrote:
This is likely a daft question, but how do I remove a mailbox from a dovecot server? I'd like to simply remove it from the disk as well, deleting any messages, indexes etc etc
Is there a way?
There is an IMAP command that does that. I don't remember its name, but you can lookup in the RFC.
Or you can just remove the file (if using mbox) or directory (if using Maildir) that holds the mailbox. Then remove the indexes, which can be in the same directory or somewhere else, depending on how you configured dovecot.
I'd like to be able to do it all via a web interface and dovecot to keep the admin to a minimum. I've seen the delete function in IMAP, but it fails when I try and remove the INBOX.
I'm sure there's something simple I'm missing :-)
david
!DSPAM:1715,4a1accd534921801489606!
On Seg, 25 Mai 2009, David Reid wrote:
I'd like to be able to do it all via a web interface and dovecot to
keep the admin to a minimum. I've seen the delete function in IMAP,
but it fails when I try and remove the INBOX.
So you want to remove a whole account?
You'll need to disable (or even remove, but I wouldn't recommend that)
in you authentication database. How it is done depends on which kind
of authentication you are using.
Then, if you want to delete all the mails for that account, just
remove the folders where they are stored. This is specified by the
mail_location setting in dovecot.conf.
-- Eduardo M KALINOWSKI eduardo@kalinowski.com.br
Eduardo M KALINOWSKI wrote:
On Seg, 25 Mai 2009, David Reid wrote:
I'd like to be able to do it all via a web interface and dovecot to keep the admin to a minimum. I've seen the delete function in IMAP, but it fails when I try and remove the INBOX.
So you want to remove a whole account?
You'll need to disable (or even remove, but I wouldn't recommend that) in you authentication database. How it is done depends on which kind of authentication you are using.
I can do this part no problem as it's MySQL.
Then, if you want to delete all the mails for that account, just remove the folders where they are stored. This is specified by the mail_location setting in dovecot.conf.
This part is where I was hoping there was a way to get dovecot to remove the mails for me... Is that possible? If not I guess I need to look at other ways of dealing with it.
Thanks,
david
!DSPAM:1715,4a1ad08c34925691215982!
On Seg, 25 Mai 2009, David Reid wrote:
Eduardo M KALINOWSKI wrote:
Then, if you want to delete all the mails for that account, just
remove the folders where they are stored. This is specified by the
mail_location setting in dovecot.conf.This part is where I was hoping there was a way to get dovecot to
remove the mails for me... Is that possible? If not I guess I need
to look at other ways of dealing with it.
For all folders except the INBOX itself, you can delete them via IMAP.
You can also remove everything from the INBOX, but you cannot delete
the INBOX itself through dovecot.
-- Eduardo M KALINOWSKI eduardo@kalinowski.com.br
Eduardo M KALINOWSKI wrote:
On Seg, 25 Mai 2009, David Reid wrote:
Eduardo M KALINOWSKI wrote:
Then, if you want to delete all the mails for that account, just remove the folders where they are stored. This is specified by the mail_location setting in dovecot.conf.
This part is where I was hoping there was a way to get dovecot to remove the mails for me... Is that possible? If not I guess I need to look at other ways of dealing with it.
For all folders except the INBOX itself, you can delete them via IMAP. You can also remove everything from the INBOX, but you cannot delete the INBOX itself through dovecot.
Thanks :-)
I'll implement Plan B!
david
!DSPAM:1715,4a1ad27934926007034867!
participants (2)
-
David Reid
-
Eduardo M KALINOWSKI