Dec 27 2007

sendmail 关闭 587 端口

Category: 技术ssmax @ 18:19:14

在德国买了一个VPS,不限流量的,又恢复更新了,唉。。。

这个vps的debian上面什么都没有,自己动手装咯。。。

apt-get install sendmail 。。

debian就是apt好用,比rpm和yum爽多了

 装完sendmail发现开了验证用户的587端口,好像没啥用处的,关掉

编辑 /etc/mail/sendmail.mc

注释掉 DAEMON_OPTIONS(`Family=inet,  Name=MSP-v4, Port=submission, Addr=127.0.0.1′)dnl

m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

接下来还有一个东东,一开始没发现,试了半天才找到

编辑/etc/mail/submit.mc

FEATURE(`msp’, `[127.0.0.1]’, `MSA’)dnl

把后面的 ‘MSA’去掉,或者改成’MTA’,

FEATURE(`msp’, `[127.0.0.1]’)dnl

然后 m4 /etc/mail/submit.mc > /etc/mail/submit.cf

/etc/init.d/sendmail restart

或者 sendmailconfig 就自动帮你m4和restart了

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.