Postfix + Cyrus Imap - A Quick & Easy Setup for Suse 10.1 and The *non-MySQL* Case
In the past (Suse < 9) I've always had to build postfix and cyrus from scratch to get them to work together (could be my problem, I admit). In Suse 10.1 I've finally gotten them to work from the distro, with a few bits of config hacking, for local passwd users (no mysql based accounts in this config.)
- Install a Suse 10.1 system, and be sure following packages are installed via yast:
cyrus-imapd, cyrus-sasl, cyrus-saslauthd, postfix
- Check /etc/postfix/master.cf, make sure the following lines are in the file and uncommented
cyrus unix - n n - - pipe
user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -r ${sender}
-m ${extension} ${user} - Open /etc/postfix/main.cf and edit (or add) a line with mailbox_transport to read
mailbox_transport = cyrus
- Start or restart daemons (of course, make them boot time starts for fulltime installation):
/etc/init.d/postfix start
/etc/init.d/cyrus start
/etc/init.d/saslauthd start - Set user cyrus passwords for mailbox admin (assuming you're root already)
# saslpasswd2 -c cyrus
Password: mypw
Again (for verification): mypw
# passwd cyrus
Changing password for cyrus.
New Password: mypw
Reenter New Password: mypw - Add a test user and mailbox
# useradd testy
# passwd testy
Changing password for testy.
New Password: testy
Bad password: too simple
Reenter New Password: testy
Password changed.
# cyradm --user cyrus --server localhost --auth plain
IMAP Password: mypw
localhost> cm user.testy
localhost> quit - Send an email and check it out!
# mail testy
Subject: test1
test1
^D
# tail /var/log/mail - You should be able to add an imap or pop account on your favorite mail client pointed at this server, user: testy, pw: testy.
- If you have problems try bumping up smtp loggin, i.e., adding a "-v" to the smtpd command. That is
# vi /etc/postfix/master.cf
/^smtp.*inet
:s/smtpd/smtpd -v/
:wq
# postfix reload
# (send some mail)
# tail /var/log/mail


