Redmine 无法识别 domain/hostname 但我可以从命令行发送电子邮件
Redmine cant recognize domain/hostname but I can send emails from command line
我正在使用这个项目来对接 redmine https://hub.docker.com/r/sameersbn/redmine/,但我也在使用 helpdesk plugin
,所以我可以回复工单并通过 redmine 将它们发回给客户。
但我只是 运行 遇到了问题,几天都解决不了。我在外部服务器上有 postfix 中继服务器,它适用于我的大部分项目 smtpinternal.domain.tld
我的 redmine 配置中有这样的
# default configuration options for all environments
default:
# Outgoing emails configuration
# See the examples below and the Rails guide for more configuration options:
# http://guides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration
email_delivery:
delivery_method: :smtp
smtp_settings:
enable_starttls_auto: false
address: 'smtp.smtpinternal.domain.tld'
port: 25
domain: 'smtpinternal.domain.tld'
tls: false
遗憾的是,当我想在我的 redmine 实例中尝试发送测试电子邮件时,我收到了这条错误消息
getaddrinfo: Name or service not known
奇怪的是,我想在容器中发送带有 mail utility
的测试电子邮件,以测试我是否可以解析主机名,并且成功了。我什至可以 ping 我的 Nameservers
.. 知道吗,为什么 redmine 拒绝发送电子邮件?
我重建了整个 docker 项目并且成功了。
我正在使用这个项目来对接 redmine https://hub.docker.com/r/sameersbn/redmine/,但我也在使用 helpdesk plugin
,所以我可以回复工单并通过 redmine 将它们发回给客户。
但我只是 运行 遇到了问题,几天都解决不了。我在外部服务器上有 postfix 中继服务器,它适用于我的大部分项目 smtpinternal.domain.tld
我的 redmine 配置中有这样的
# default configuration options for all environments
default:
# Outgoing emails configuration
# See the examples below and the Rails guide for more configuration options:
# http://guides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration
email_delivery:
delivery_method: :smtp
smtp_settings:
enable_starttls_auto: false
address: 'smtp.smtpinternal.domain.tld'
port: 25
domain: 'smtpinternal.domain.tld'
tls: false
遗憾的是,当我想在我的 redmine 实例中尝试发送测试电子邮件时,我收到了这条错误消息
getaddrinfo: Name or service not known
奇怪的是,我想在容器中发送带有 mail utility
的测试电子邮件,以测试我是否可以解析主机名,并且成功了。我什至可以 ping 我的 Nameservers
.. 知道吗,为什么 redmine 拒绝发送电子邮件?
我重建了整个 docker 项目并且成功了。