[root@localhost pam_mysql]# cd /etc/pam.d
[root@localhost pam.d]# cp /work/postfix postfix
[root@localhost pam.d]#
postfix的内容如下:
##########/etc/pam.d/postfix##################
echo auth sufficient pam_mysql.so user=postfix passwd=postfix host=localhost db=postfix table=mailbox usercolumn=username passwdcolumn=password crypt=1
echo account required pam_mysql.so user=postfix passwd=postfix host=localhost db=postfix table=mailbox usercolumn=username passwdcolumn=password crypt=1
echo auth sufficient pam_unix_auth.so
echo account sufficient pam_unix_acct.so
[root@localhost pam.d]# [ -f imap ] && mv imap imap.orig
[root@localhost pam.d]# [ -f pop ] && mv pop pop.orig
[root@localhost pam.d]# [ -f smtp ] && mv smtp smtp.orig
[root@localhost pam.d]# n -s postfix imap
bash: n: command not found
[root@localhost pam.d]# ln -s postfix imap
[root@localhost pam.d]# ln -s postfix pop
[root@localhost pam.d]# ln -s postfix smtp
[root@localhost pam.d]# cp postfix sieve
[root@localhost pam.d]# cd ..