VMware Images:
|
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Fedora 13 x86_64) - Page 3
9 Configure SaslauthdEdit /usr/lib64/sasl2/smtpd.conf (/usr/lib/sasl2/smtpd.conf if you are on an i386 system). It should look like this: vi /usr/lib64/sasl2/smtpd.conf
Then turn off Sendmail and start Postfix, saslauthd, and courier-authlib: chmod 755 /var/spool/authdaemon chkconfig --levels 235 sendmail off
10 Configure CourierNow we have to tell Courier that it should authenticate against our MySQL database. First, edit /etc/authlib/authdaemonrc and change the value of authmodulelist so that it reads vi /etc/authlib/authdaemonrc
Then edit /etc/authlib/authmysqlrc. It should look exactly like this (again, make sure to fill in the correct database details): cp /etc/authlib/authmysqlrc /etc/authlib/authmysqlrc_orig
Then restart Courier: chkconfig --levels 235 courier-imap on When courier-imap is started for the first time, it automatically creates the certificate files /usr/lib/courier-imap/share/imapd.pem and /usr/lib/courier-imap/share/pop3d.pem from the /usr/lib/courier-imap/etc/imapd.cnf and /usr/lib/courier-imap/etc/pop3d.cnf files. Because the .cnf files contain the line CN=localhost, but our server is named server1.example.com, the certificates might cause problems when you use TLS connections. To solve this, we delete both certificates... cd /usr/lib/courier-imap/share ... and replace the CN=localhost lines in /usr/lib/courier-imap/etc/imapd.cnf and /usr/lib/courier-imap/etc/pop3d.cnf with CN=server1.example.com: vi /usr/lib/courier-imap/etc/imapd.cnf
vi /usr/lib/courier-imap/etc/pop3d.cnf
Then we recreate both certificates... ./mkimapdcert ... and restart courier-authlib and courier-imap: /etc/init.d/courier-authlib restart By running telnet localhost pop3 you can see if your POP3 server is working correctly. It should give back +OK Hello there. (type quit to get back to the Linux shell): [root@server1 share]# telnet localhost pop3
11 Modify /etc/aliasesNow we should open /etc/aliases. Make sure that postmaster points to root and root to your own username or your email address, e.g. like this: vi /etc/aliases
or like this (if administrator is your own username):
Whenever you modify /etc/aliases, you must run newaliases afterwards and restart Postfix: /etc/init.d/postfix restart
|

![Creative Commons Attribution License [Creative Commons Attribution License]](http://creativecommons.org/images/public/somerights20.gif)


Recent comments
1 day 21 hours ago
2 days 6 hours ago
2 days 9 hours ago
2 days 10 hours ago
2 days 12 hours ago
2 days 13 hours ago
2 days 15 hours ago
2 days 16 hours ago
3 days 8 hours ago
3 days 9 hours ago