In linuxas5.5, test postfix + cyrus-imap + cyrus-sasl -- Linux Enterprise Application-Linux server application information. For details, see the following. Test environment:
View/etc/inetd. conf or/etc/xinetd. whether the imap, imaps, pop3, pop3s, kpop, lmtp, and sieve contents exist in the d directory. If yes, delete the corresponding content.
Restart the inet or xinet Process
/Etc/rc. d/init. d/inet resart
Or
/Etc/rc. d/init. d/xinet restart
Configure the main process file: there is a reference configuration file under the master/config directory under the original code file. We select the most basic Installation File
Cp master/conf/small. conf/etc/cyrus. conf
If your cyrus imap has added support for openssl during compilation, you can use normal. conf.
Cp master/conf/normal. conf/etc/cyrus. conf
[Root @ mail ~] # Service cyrus-imapd restart
Shutting down cyrus-imapd: [OK]
Export the cyrus-imapd Database: [OK]
Import the cyrus-imapd Database: [OK]
Start cyrus-imapd: [OK]
[[Root @ mail ~] # Telnet to localhost 110
Trying 127.0.0.1...
Connected to localhost. localdomain (127.0.0.1 ).
Escape character is '^]'.
+ OK mail.local.vic-cn.com Cyrus POP3 v2.3.7-Invoca-RPM-2.3.7-7.el5_4.3 server ready
Quit
+ OK
Connection closed by foreign host.
Create mailbox
[Root @ mail ~] # Id cyrus
Uid = 76 (cyrus) gid = 12 (mail) groups = 12 (mail), 76 (saslauth) context = root: system_r: unconfined_t: SystemLow-SystemHigh
[Root @ mail ~] # Su cyrus
Bash-3.2 $ cyradm-u cyrus localhost
IMAP Password:
Localhost. localdomain> help # cyrus-imap Management Interface
Authenticate, login, auth authenticate to server
Chdir, cd change current directory
Createmailbox, create, cm create mailbox
Deleteaclmailbox, deleteacl, dam remove ACLs from mailbox
Deletemailbox, delete, dm delete mailbox
Disconnect, disc disconnect from current server
Exit, quit exit cyradm
Help ,? Show commands
Info display mailbox/server metadata
Listacl, lam, listaclmailbox list ACLs on mailbox
Listmailbox, lm list mailboxes
Listquota, SCSI list quotas on specified root
Listquotaroot, lqr, lqm show quota roots and quotas for mailbox
Mboxcfg, mboxconfig configure mailbox
Reconstruct mailbox (if supported)
Renamemailbox, rename, renm rename (and optionally relocate) mailbox
Server, servername, connect show current server or connect to server
Setaclmailbox, sam, setacl set ACLs on mailbox
Setinfo set server metadata
Setquota, sq set quota on mailbox or resource
Subscribe, sub subscribe to a mailbox
Unsubscribe, unsub unsubscribe from a mailbox
Version, ver display version info of current server
Xfermailbox, xfer transfer (relocate) a mailbox to a different server
Localhost. localdomain> cm user. test
Localhost. localdomain> sq user. test 100000
Quota: 100000
Localhost. localdomain> lm
User. mail (\ HasNoChildren) user. test (\ HasNoChildren)
User. mis (\ HasNoChildren) user. wiz (\ HasNoChildren)
User. postmaste (\ HasNoChildren)
Localhost. localdomain> SCSI user. test
STORAGE 0/100000 (0%)
After user. test is created, only the user has full control over the mailbox. Even the Administrator cyrus has no permission.
To delete the mailbox, you must grant the Administrator full permission (the setacl command). You can use the listacl command to view the user's access permissions to the mailbox.
Localhost. localdomain> listacl user. test
Test lrswipkxtecda
Localhost. localdomain> dm user. test # delete a mailbox
Deletemailbox: Permission denied
Localhost. localdomain> setacl user. test cyrus all
Localhost. localdomain> dm user. test
Localhost. localdomain> cm user. test
Localhost. localdomain> sq user. test 100000
Quota: 100000
Localhost. localdomain> exit
Bash-3.2 $ exit
Exit
[Root @ mail ~] # Ls/var/spool/imap/t/user # the corresponding directory is generated after the mailbox is created.
Test
[Root @ mail ~] # Useradd test-g mail-s/sbin/nologin
[Root @ mail ~] # Id test
Uid = 502 (test) gid = 12 (mail) groups = 12 (mail) context = root: system_r: unconfined_t: SystemLow-SystemHigh
[Root @ mail ~] # Imtest-m login-a test localhost # test imap test user logon
S: * OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL + ID STARTTLS] mail.test.com Cyrus IMAP4 v2.3.7-Invoca-RPM-2.3.7-7.el5_4.3 server ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 specify LITERAL + id starttls acl rights = kxte quota mailbox-specify namespace uidplus specify unselect children multiappend binary sort = modseq thread = orderedsubject thread = REFERENCES specify CATENATE CONDSTORE IDLE LISTEXT LIST- SUBSCRIBED X-NETSCAPE (URLAUTH)
S: C01 OK Completed
Please enter your password:
C: L01 LOGIN test {4}
S: + go ahead
C:
S: l01 OK [CAPABILITY IMAP4 using LITERAL + ID using ACL RIGHTS = kxte QUOTA MAILBOX-Your NAMESPACE UIDPLUS using UNSELECT CHILDREN MULTIAPPEND BINARY SORT = MODSEQ THREAD = ORDEREDSUBJECT THREAD = REFERENCES using CATENATE CONDSTORE IDLE LISTEXT LIST-SUBSCRIBED X-NETSCAPE (URLAUTH] User logged in)
Authenticated.
Security strength factor: 0
. Logout
* Bye logout received
. OK Completed
Connection closed.
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.