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

alex Linux 技术分享1 阅读模式

 
 

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

文章末尾固定信息

 
alex
  • 本文由 alex 发表于 2017年12月21日 20:58:30
  • 转载请务必保留本文链接:https://www.qnjslm.com/ITHelp/598.html
    • aa
      aa 0

      实测这个方法已经不行了

    匿名

    发表评论

    匿名网友
    :?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:
    确定