Testing the new account

Sendmail

Try sending the new user a test message, if you do not get a user unknown error, and the sendmail log files have a line containing the user's email address and a Status=Sent then you should be OK in that area. If not then check the mail box with cyradm, most likely cyrus is not connecting to the LDAP server or the mailbox was not created.

IMAP

Use the imtest utility in the imtest directory of the cyrus-imap-<version> source code directory, or /usr/bin/imtest, if you used the RPM. For example, testing <New User> with a uid of nuser

    [root@localhost bin]# imtest -a nuser -m login -p imap -v localhost
    S: * OK mail.mydomain.com Cyrus IMAP4 v1.6.13 server ready
    C: C01 CAPABILITY
    S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS X-NON-HIERARCHICAL-RENAME NO_ATOMIC_RENAME AUTH=PLAIN AUTH=CRAM-MD5 UNSELECT X-NETSCAPE
    S: C01 OK Completed
    

When prompted enter the password in the LDAP database for the <New User> entry

    Password: 
    + go ahead
    L01 OK User logged in
    Authenticated.
    Security strength factor: 0
    To logout simply type .logout
    . logout
    * BYE LOGOUT received
    . OK Completed
    Connection closed.
    [root@localhost bin]# 
    

If you receive errors, look in the cyrus logfiles and the ldap logfiles. Most likely the problem is with the cyrus mailbox or the LDAP entry. If you are using a version of cyrus before 1.6.22 imtest may use the -u <user> argument rather than -a <user>.

POP3

If you set up a POP3 directory for <New User> you can test it by typing the following:

Example 5-3. Test New POP3 User

    [root@localhost root]# telnet localhost 110
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    +OK mail.mydomain.com Cyrus POP3 v1.6.13 server ready

Type the following line, assuming that <New User> has a uid of nuser in the LDAP database and a cyrus mailbox and directory were created using that uid.

Example 5-4. Testing New POP3 User (cont.)

    USER nuser
    +OK Name is a valid mailbox

Type the following line, assuming that the password in the LDAP database for <New User> is imnew

Example 5-5. Testing New POP3 User (cont.)

    PASS imnew
    +OK Maildrop locked and ready

Type the following to quit:

Example 5-6. Testing New POP3 User (cont.)

    QUIT
    +OK
    Connection closed by foreign host.
    [root@localhost root]#