四、修改pam
[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 .. |
五、cyrus-sasl的安装配置
我本不想重新编译cyrus-sasl的,可是fedora自带的在我测试的时候出问题,还是重编译吧,虽然fedora带的也是2.1.15版本。
[root@localhost etc]# cd /ruanjian [root@localhost ruanjian]# cd cyrus-sasl-2.1.15 [root@localhost cyrus-sasl-2.1.15]# ./configure --disable-sample \ > --disable-pwcheck --disable-gssapi --disable-cram \ > --disable-digest --disable-krb4 --disable-anon \ > --with-saslauthd=/var/run/saslauthd \ > --enable-plain --enable-login [root@localhost cyrus-sasl-2.1.15]# [ -d /usr/lib/sasl2 ] && mv /usr/lib/sasl2 /usr/lib/sasl2.orig [root@localhost cyrus-sasl-2.1.15]# ln -s /usr/local/lib/sasl2 /usr/lib/sasl2 [root@localhost cyrus-sasl-2.1.15]# echo /usr/local/lib >> /etc/ld.so.conf [root@localhost cyrus-sasl-2.1.15]# echo /usr/local/lib/sasl2 >> /etc/ld.so.conf [root@localhost cyrus-sasl-2.1.15]# ldconfig [root@localhost cyrus-sasl-2.1.15]# [root@localhost cyrus-sasl-2.1.15]# echo pwcheck_method: saslauthd > /usr/lib/sasl2/smtpd.conf [root@localhost cyrus-sasl-2.1.15]# /usr/local/sbin/saslauthd -a pam [root@localhost cyrus-sasl-2.1.15]# |
六、postfix的安装和配置
A.先停止sendmail.fedora已默认安装了sendmail,去掉他。 [root@localhost ruanjian]# /etc/init.d/sendmail stop 关闭 sendmail: [失败] [root@localhost ruanjian]# mv /usr/bin/newaliases /usr/bin/newaliases.orig
[root@mail ruanjian]# cd postfix-2.0.16 |
文章整理:西部数码--专业提供域名注册、虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!




