- 论坛徽章:
- 0
|
环境:rhel5.0
编译环境:GCC 4.1.2
mysql version:5.0.45
按照CNGNU Postfix邮件系统系列指南之一
Postfix + Cyrus-IMAP + Cyrus-SASL + MySQL + IMP
完全指南我打算安装基于postfix的邮件系统,但是在安装应用cyrus-sasl时遇到了问题:
按照http://man.chinaunix.net/tech/Postfix_I.html我安装了mysql、pam_mysql,一开始采用系统默认的sasl具体版本忘记了,但是安装好postfix后,发现使用telnet localhost 25进行测试时在:
Trying 127.0.0.1 ...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
后就没反应了,但是我在vi /etc/postfix/main.cf 里把基于sasl的smtpd_sasl_auth_enable改成no后telnet就正常了,然后一通google后有高手说是需要手动编译的。于是下载了cyrus-sasl-2.1.22.tar.tar,编译后(加了一些参数--enable-login --enable-plain)运行了saslauthd -a pam 后,(在/etc/sysconfig/saslauthd这个文件没有,我是手动建立的,其他我修改了/usr/lib/sasl
[root@mail root]# echo pwcheck_method: saslauthd > /usr/lib/sasl2/smtpd.conf
[root@mail root]# echo mech_list: plain login >> /usr/lib/sasl2/smtpd.conf
)下没有发现用ps -ef |grep saslauthd发现正在运行见下面:
root 14964 1 0 12:44 ? 00:00:00 /usr/local/sbin/saslauthd -a pam
root 14965 14964 0 12:44 ? 00:00:00 /usr/local/sbin/saslauthd -a pam
root 14966 14964 0 12:44 ? 00:00:00 /usr/local/sbin/saslauthd -a pam
root 14967 14964 0 12:44 ? 00:00:00 /usr/local/sbin/saslauthd -a pam
root 14968 14964 0 12:44 ? 00:00:00 /usr/local/sbin/saslauthd -a pam
root 15033 3025 0 12:57 tty1 00:00:00 grep saslauthd
unix 2 [ ACC ] STREAM LISTENING 46788 /var/run/saslauthd/mux
于是重新运行postfix,但是还是出现上面出现的问题,请高手帮我分析分析。 |
|