Postfix email service configuration and application 5

Source: Internet
Author: User
Tags imap
Postfix email service configuration and application 5-Linux Enterprise Application-Linux server application information. The following is a detailed description. User email management
One thing about cyrus-imap is that it can create a mailbox for each user. By default, the mailbox of cyrus-imap is located in the/var/spool/imap directory. When creating a mailbox, the format of each email name is:
Letter Type. name [. Folder name [. Folder name ]]...
How to create and manage users' email addresses:
1. Set a password for cyrus-imap Administrator Account
Passwd curus
The cyrus-imap Administrator account is automatically created when the cyrus-imap service is installed. Before creating a mailbox for a user for the first time, you must set a password for the Account to authenticate the user identity when managing the user mailbox in the future.
2. Use the cyradm management tool to create email addresses for users
The cyradm management tool is located in the/usr/lib/cyrus-imapd directory. Run the following command to run the management tool. /Usr/lib/cyrus-imapd/cyradm-u cyrus localhost
In the command, you must use the parameter-u to specify the user account that runs the management tool, which is usually the Administrator account cyrus. When the command is executed, the system prompts you to enter the password. When you confirm that the password is correct, you can enter the management command line status.
Localhost. localdomain>
Use the following command to create a mail box for the user lbt.
Localhost. localdomain> createmailbox user. lbt
Use the listmailbox command to list the existing user email boxes in the cyrus-imap system.
3. Add other folders in the user's mailbox
Localhost. localdomain> createmailbox user. lbt. send (sender)
Localhost. localdomain> createmailbox user. lbt. trash (garbage bin)
Localhost. localdomain> createmailbox user. lbt. drafts (draft box)
4. Set a quota for the user's email box
Localhost. localdomain> setquota user. lbt 5210 sets a 5 MB quota for the user.
Localhost. localdomain> listquota user. lbt
You can also run the su-l cyrus-c/usr/lib/cyrus-imap/quota command on another linux prompt to view the user's mailbox usage.
5. Set permissions for the user's email address
By default, when the cyrus-imap administrator creates a mailbox for a user, only the user has full control over the mailbox.
[Table = 98%] [tr] [td] Permission restriction write [/td] [td] Description [/td] [/tr] [tr] [td] none [/td] [td] has no permission [/td] [/tr] [tr] [td] read [/td] [td] allows reading contents in the mailbox [/td] [/tr] [tr] [td] post [/td] [td] Allow reading and posting (email) to the mailbox) [/td] [/tr] [tr] [td] append [/td] [td] Allow reading and posting and inserting information to the mailbox [/td] [/tr] [tr] [td] write [/td] [td] Except for permission to append, you can also delete emails in the email box, however, it does not have the permission to change the mailbox [/td] [/tr] [tr] [td] all [/td] [td] It has all permissions [/td] [/tr] [/table]

Set permissions Note: The deletemailbox command is to delete the mailbox
Localhost. localdomain> setacl user. lbt cyrus all
In fact, the mailbox access permission is composed of nine permissions: l r s w I p c d.
Common cyradm management commands and their abbreviations are as follows:
Listmailbox lm
Createmailbox cm
Deleatemailbox dm
Renamemailbox renm
Setaclmailbox sam
Deleteaclmailbox dam
Listaclmailbox lam
Setquota sq
Listquota SCSI
Now the configuration of the email server is complete, and the rest is the configuration of the client. Here is a little bit.

[ This post was last edited by jackiesr at, September 22 ,.]
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.