Linux配置sendmail

配置参考: https://zhuanlan.zhihu.com/p/109084397

问题排查: https://blog.csdn.net/c__chao/article/details/95314428

修改端口:

vi /etc/mail/sendmail.cf

定位

#O DaemonPortOptions=Port=s,Name=MTA

修改为

O DaemonPortOptions=Port=smtp,Name=MTA  O DaemonPortOptions=Port=587,Name=MTA

重启服务: systemctl restart sendmail

服务器封25端口:https://help.aliyun.com/document_detail/56130.html