Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redmine cant recognize domain/hostname but I can send emails from command line #433

Open
Avskum opened this issue Aug 10, 2020 · 2 comments

Comments

@Avskum
Copy link

Avskum commented Aug 10, 2020

I am using helpdesk plugin, so I can reply on tickets and send them back to the customer via redmine.

But I just ran into problem, which I can't solve for few days. I have postfix relay server on external server which works for most of my projects smtpinternal.domain.tld

I have this in my redmine config like this

# 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

Sadly, when I want in my redmine instance try to send test email I have this error message

getaddrinfo: Name or service not known

weird thing is that, I wanted to send test email with mail utility in the container, to test if I can resolve hostnames, and it worked. I can even ping on my Nameservers .. any idea, why redmine refuse to send emails?

@jcormier
Copy link
Collaborator

Unfortunately, I don't know much about ruby's mail setup or why it would fail DNS when the docker can resolve the namespace.

@0x9394
Copy link

0x9394 commented May 6, 2022

try specify your internal dns server to docker run parameters with --dns flag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants