原创

IRedMail启用安全的SSL发信,启用465端口

温馨提示:
本文最后更新于 2021年12月21日,已超过 1,125 天没有更新。若文章内的图片失效(无法正常加载),请留言反馈或直接联系我

 
 

前面的安装文档也说明了,默认iRedMail是没有启用465端口的,

我在使用阿里云就碰到问题了,传统网络下的VPS无法使用25端口,不管是入站还是出站。

 
 

下面就说说在iRedMail中来启用465端口,

ssl证书配置得提前配置好,如没有配置请参考其他另外一篇文章

https://www.qnjslm.com/ITHelp/580.html

 
 

证书配置完成后,我们需要修该postfix配置文件

[root@www postfix]# vim /etc/postfix/master.cf

找到以下相关信息,默认是被注释掉的,我们取消掉注释

 
 

smtps inet n - n - - smtpd

# -o syslog_name=postfix/smtps

-o smtpd_tls_wrappermode=yes

-o smtpd_sasl_auth_enable=yes

-o smtpd_reject_unlisted_recipient=no

-o smtpd_client_restrictions=$mua_client_restrictions

-o smtpd_helo_restrictions=$mua_helo_restrictions

-o smtpd_sender_restrictions=$mua_sender_restrictions

-o smtpd_recipient_restrictions=permit_sasl_authenticated,reject

-o milter_macro_daemon_name=ORIGINATING

 
 

IRedMail启用安全的SSL发信,启用465端口-图片1

 
 

然后确认配置文件中是否启用的tls

[root@www postfix]# vim /etc/postfix/main.cf

smtpd_use_tls = yes

IRedMail启用安全的SSL发信,启用465端口-图片2

 
 

smtpd_tls_security_level = may //设置为may让不支持tls的客户端也能使用

IRedMail启用安全的SSL发信,启用465端口-图片3

 
 

然后重启服务,就可以使用了

[root@www postfix]# systemctl restart postfix.service

正文到此结束
本文目录