简体   繁体   English

如何将Redmine与AWS SES一起用于电子邮件通知?

[英]How to use Redmine with AWS SES for email notifications?

I have installed Redmine 2.2.2 stable from Bitnami AWS EC2 instance. 我已经从Bitnami AWS EC2实例安装了Redmine 2.2.2稳定版。 It work nice but i don't know how to make Redmine emails notifications use my AWS SES SMTP sender. 它工作正常,但我不知道如何使用我的AWS SES SMTP发送器使Redmine电子邮件通知。

My FQDN (my_fqdn.com) is verified by AWS SES as a Verified Sender. 我的FQDN(my_fqdn.com)已由AWS SES验证为“已验证发件人”。

I've configured my Redmine config/configuration.yml file like : 我已经将Redmine config / configuration.yml文件配置为:

# ==== SMTP server over AWS SES
production:
  email_delivery:
    delivery_method: :smtp
    smtp_settings:
      enable_starttls_auto: true
      address: email-smtp.us-east-1.amazonaws.com
      port: 25
      domain: my_fqdn.com
      authentication: :login
      user_name: smtp_access_key
      password: smtp_secret_key
      openssl_verify_mode: 0

NB : Doesn't work even if i remove : openssl_verify_mode: 0 注意:即使我删除也无法正常工作:openssl_verify_mode:0

But when i try to send a "test email" from "Email notification", i have an error : 但是,当我尝试从“电子邮件通知”发送“测试电子邮件”时,出现错误:

An error occurred while sending mail (hostname does not match the server certificate)

What "sever certificat" mean here ? “ sever certificat”在这里是什么意思?

My Redmine instance never send any email... 我的Redmine实例从不发送任何电子邮件...

Is it necessary to install and configure postfix that relay to AWS SES on my server ? 是否需要在服务器上安装和配置中继到AWS SES的后缀?

Any idea ? 任何想法 ?

Thanks. 谢谢。

In fact, you need to configure the prod and dev environnement in bottom of the config/configuration.yml file : 实际上,您需要在config / configuration.yml文件的底部配置prod和dev环境:

production:
   ...

development:
   ... (same config as prod for me)

and copy paste my config. 并复制粘贴我的配置。

On my AWS SES account i need to verify my domain. 在我的AWS SES帐户上,我需要验证我的域。

And now it's work ! 现在工作了! :-) :-)

I hope this will help someone. 我希望这会对某人有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM