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

  • A+
所属分类:Linux 技术分享

 
 

前面的安装文档也说明了,默认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

 
 

 
 

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

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

smtpd_use_tls = yes

 
 

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

 
 

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

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

头像

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: