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
- For a default domain account you can only remove any aliases in /etc/mail/aliases
- 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