- 论坛徽章:
- 0
|
不能停止不前,继续往下做
安装postfix:版本号:2.9.1
获取:wget ftp://ftp.cuhk.edu.hk/pub/packag ... ostfix-2.9.1.tar.gz
编译:make tidy
make makefiles CCARGS="-DUSE_SASL_AUTH -DUSE_CYRUS_SASL \
-I/usr/include/sasl" AUXLIBS="-L/usr /lib -lsasl2"
make / make install
一路回车,安装完毕。
Newaliaese
Postfix start
检查netstat,看看25端口是否开启。
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 2757/master
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 2757/master
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 2746/master
开启正常,开始修改main.cf
myhostname=mail.test.com
mydomain=test.com
myorigin=$mydomain
mydestination=$myhostname,localhost,localhost.$mydomain,$mydomain
smtpd_sasl_path=smtpd
smtpd_sasl_auth_enable=yes
smtpd_sasl_security_options=noanonymous
smtpd_recipient_restrictions=permit_sasl_authenticated,permit_mynetworks(这个参数我觉得有待验证),reject_unauth_destination
mailbox_transport = lmtp:unix:/var/imap/socket/lmtp
添加stmpd.conf
Vi /usr/lib/sasl2/smtpd.conf
pwcheck_method:saslauthd
mech_list: PLAIN LOGIN
保存,退出
Postfix reload
现在测试
|
|