美文网首页
阿里云配置redmine邮件发送

阿里云配置redmine邮件发送

作者: gimp | 来源:发表于2017-05-04 16:51 被阅读647次

    这里是redmine的邮件配置页面。
    我之前用的是25端口,一切都很正常。
    但最近,阿里云的服务器禁用了25端口。
    阿里云平台的安全规则在这里
    简单地说,别用25端口了,直接用465端口吧。

    不能只是把25改成465,而要参考redmine那个页面的最下面的例子

    default:
      # Outgoing emails configuration (see examples above)
      email_delivery:
        delivery_method: :smtp
      smtp_settings:
        address: smtp.domain.com
        port: 465
        ssl: true
        enable_starttls_auto: true
        domain: domain.com
        authentication: :login
        user_name: redmine@domain.com
        password: xxxx
    

    增加了两个配置参数sslenable_starttls_auto

    一个便利的设置,最好把邮件发送设置成异步的,替换两行就可以

    default:
      # Outgoing emails configuration (see examples above)
      email_delivery:
        delivery_method: :async_smtp       # 这一行
      async_smtp_settings:                 #还有这一行
        address: smtp.domain.com
        port: 465
        ssl: true
        enable_starttls_auto: true
        domain: domain.com
        authentication: :login
        user_name: redmine@domain.com
        password: xxxx
    

    相关文章

      网友评论

          本文标题:阿里云配置redmine邮件发送

          本文链接:https://www.haomeiwen.com/subject/atkdtxtx.html