In three Steps you can create/delete mail with cyradm.
Login on IMAP server, in my example it running on local system
1) [root@imap01 tmp]# cyradm -user raman localhost
Password:
lm : listmailbox : Lists the names of all mailboxes that match a given pattern.
No mail apper.
2) Now time to create new mailbox e.g abc
hit this command
localhost> cm user.abc
cm : createmailbox : Creates a new top-level mailbox.
Now run lm command to to list.
localhost> lm
user.abc (\HasNoChildren)
or lm user.abc
3) Time to delete mail box.
localhost> dm user.abc
deletemailbox: Permission denied
dm : deletemailbox : Deletes a mailbox and all mailboxes below it in its hierarchy
Reason :- Admin does not have this permission by default. to fix this give the admin user 'create' permissions on the mailbox.
Now run like this.
localhost> sam user.abc raman c
localhost> dm user.abc
localhost> lm
Done.
P.S :- Keep it Simple.
Login on IMAP server, in my example it running on local system
1) [root@imap01 tmp]# cyradm -user raman localhost
Password:
lm : listmailbox : Lists the names of all mailboxes that match a given pattern.
No mail apper.
2) Now time to create new mailbox e.g abc
hit this command
localhost> cm user.abc
cm : createmailbox : Creates a new top-level mailbox.
Now run lm command to to list.
localhost> lm
user.abc (\HasNoChildren)
or lm user.abc
3) Time to delete mail box.
localhost> dm user.abc
deletemailbox: Permission denied
dm : deletemailbox : Deletes a mailbox and all mailboxes below it in its hierarchy
Reason :- Admin does not have this permission by default. to fix this give the admin user 'create' permissions on the mailbox.
Now run like this.
localhost> sam user.abc raman c
localhost> dm user.abc
localhost> lm
Done.
P.S :- Keep it Simple.
0 comments:
Post a Comment