Virtual Users And Domains With Postfix, Courier And MySQL (Ubuntu 6.10 Edgy Eft) - Page 3
6 Configure SaslauthdFirst run mkdir -p /var/spool/postfix/var/run/saslauthd Then edit /etc/default/saslauthd. Remove the # in front of START=yes and add the lines PARAMS="-m /var/spool/postfix/var/run/saslauthd -r" and PIDFILE="/var/spool/postfix/var/run/${NAME}/saslauthd.pid". The file should then look like this: vi /etc/default/saslauthd
Then create the file /etc/pam.d/smtp. It should contain only the following two lines (go sure to fill in your correct database details): vi /etc/pam.d/smtp
Next create the file /etc/postfix/sasl/smtpd.conf. It should look like this: vi /etc/postfix/sasl/smtpd.conf
Then restart Postfix and Saslauthd: /etc/init.d/postfix restart
7 Configure CourierNow we have to tell Courier that it should authenticate against our MySQL database. First, edit /etc/courier/authdaemonrc and change the value of authmodulelist so that it reads: vi /etc/courier/authdaemonrc
Then make a backup of /etc/courier/authmysqlrc and empty the old file: cp /etc/courier/authmysqlrc /etc/courier/authmysqlrc_orig Then open /etc/courier/authmysqlrc and put the following lines into it: vi /etc/courier/authmysqlrc
Then restart Courier: /etc/init.d/courier-authdaemon 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:/etc/postfix# telnet localhost pop3
8 Modify /etc/aliasesNow we should modify /etc/aliases and specify an alias for postmaster in it. You can specify one of your existing email addresses so that you can receive notifications to postmaster. Also, change the root line so that mails for root will be forwarded to postmaster as well: vi /etc/aliases
Whenever you modify /etc/aliases, you must run newaliases afterwards and restart Postfix: /etc/init.d/postfix restart
|
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com
Red Hat Virtual Experience - a free virtual event. Dec. 9th




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

print: 
Recent comments
12 hours 8 min ago
17 hours 56 min ago
19 hours 48 min ago
21 hours 32 min ago
1 day 1 hour ago
1 day 7 hours ago
1 day 7 hours ago
1 day 11 hours ago
1 day 17 hours ago
1 day 22 hours ago