Skip to content. | Skip to navigation

Navigation

You are here: Home / Support / Guides / Building Software Application Stacks / Managing Mail Users / Deleting Mail Users

Personal tools

Managing Mail Users

Doing the fiddly stuff with Postfix, Cyrus etc.

Deleting Mail Users

Removing mail accounts from Postfix, Cyrus and SASL

Quite obviously, the reverse of Creating Users

Postfix

  1. For a default domain account you can only remove any aliases in /etc/mail/aliases
  2. For a virtual domain you need to remove the entry from vmailbox and any associated aliases from virtual and virtual_pcre

Finally, inform Postfix of the changes:

(cd /etc/postfix; gmake)

Cyrus

Delete the mailbox

Note

You need to give permission to cyrus to delete the mailbox first!

cyradm --user cyrus localhost

sam user.username@domain cyrus all
dm user.username@domain

That should have physically removed the mailbox from the disk.

SASL

/usr/local/cyrus-sasl-*/sbin/saslpasswd2 -d username@domain

Document Actions