Robert Harker Technical Wiki
Thoughts and Ideas About Large Sites

[ Prev ] [ Index ] [ Next ]


Cyrus

TOPIC

edit /etc/cyrus.conf to disable pop

/etc/imapd.conf
allowplaintext: yes
# Disallow shared secret mechanisms:
# sasl_mech_list: plain login gssapi external

/etc/sysconfig # more saslauthd
MECH=pam (default)

First, you have define a "password" for the user admin for the cyrusadm. With root make this:
# saslpasswd2 -c cyrus
and:
# passwd cyrus

You also have to create the mailboxes for the users. User the cyradm utility for that:
cyradm --user cyrus localhost
localhost>cm user.harker

You then have to rebuild the mailbox:
/usr/lib/cyrus-imapd/reconstruct -f -r user.harker

Test that your installation works correctly:
# telnet localhost imap

imap login user password
imap OK User logged in

did you try to login using pop ?
mail:/ # telnet localhost pop3
+OK mailserver Cyrus POP3 v2.1.4 server ready
<1669253611 dot 1021282381 at mailserver>
user cyrus
+OK Name is a valid mailbox
pass mypassword
-ERR [SYS/PERM] Unable to open maildrop
quit

testsaslauthd -u cyrus -p XXXXX

####################################################
To quickly test an imap server using telnet use:
telnet server 143
01 LOGIN username password
02 LIST "" *
03 SELECT mailbox

Line 02 shows you all available mailboxes.

To show the information about a mailbox:
04 STATUS mailbox (MESSAGES)
Between () you can place one or more of the following: MESSAGES, UNSEEN, RECENT UIDNEXT UIDVALIDITY

And one of the following commands to view the a message 1 is the first message * is wildcard for all:
05 FETCH 1 ALL # All IMAP headers
05 FETCH 1 FULL # Full headers and body info
05 FETCH 1 BODY # Body
05 FETCH 1 ENVELOPE # Envelope
05 FETCH * FULL # All email

To fully retrieve a message use:
06 UID fetch 1:1 (UID RFC822.SIZE FLAGS BODY.PEEK[])

To exit:
07 logout


Backlinks: index Start
Created with Zim desktop wiki