Project

General

Profile

Bitnami Redmine in AWS: Cannot Send Test Email

Added by User 392017 almost 7 years ago

Hello,

I have been trying to set up email in Bitnami Redmine in Amazon Web Services (AWS), and I am getting the following error whenever I try to send a test email:

An error occurred while sending mail (getaddrinfo: Name or service not known)

Below is my configuration:

default:
 email_delivery:
  delivery_method: :smtp
  smtp_settings:
       address: "company's address as specified in outlook settings" 
       port: 25

I have tried the exact same configuration using the Bitnami Redmine Stack accessed from localhost, and it works fine, but after launching Redmine in AWS, the configuration no longer works. I have tried using "production" instead of "default" and I still get the same error. I have also tried pinging the company address and using the IP address instead and I still get an error. It works in localhost, but not in AWS.

I think the issue could be VPN related, because Localhost only works when I am connected to VPN.

Is there any way around this for AWS?

Thank you.


Replies (2)

RE: Bitnami Redmine in AWS: Cannot Send Test Email - Added by Jan from Planio www.plan.io almost 7 years ago

I don't think this problem is related to Redmine specifically, but to the way you connect to your mail server via SMTP in general.

Almost no mail servers will accept unauthenticated connections on port 25 from the broader Internet today. If your server address is working without a configured username and password in Outlook, then your mail server is probably only accepting SMTP connections from behind your firewall. Your Redmine however runs on AWS as you're saying, so it won't be able to connect.

A few things you could try:

  • Check your Outlook settings again or ask the person administering your mail server. Is there a username/password for your SMTP server and can it be reached from the Internet? If yes, confirgure Redmine to use your SMTP credentials as explained in EmailConfiguration. Also check if you have the right port and SSL/TLS settings.
  • If your mail server is indeed not reachable from the Internet, I wouldn't bother setting up a VPN tunnel to it. You might have more luck with using Amazon SES since you're on AWS already. Note however, that you will need help from your admin in setting up SPF and DKIM records properly, if you would like to send from your company domain. If the sender domain is irrelevant, you may get away with just using a different one and be done.
  • Or, if you don't want to deal with all this yourself (shameless plug), ask a professional Redmine Hosting company like Planio. We help new clients migrate their existing Redmine (also Bitnami) instances to our secure and high-performance Redmine cloud where outgoing and incoming email are running out of the box without any required setup as well as a lot of other things, like backups, regular updates, email and phone support for all of your users, etc. (Learn how Planio compares to hosting Redmine yourself.)

RE: Bitnami Redmine in AWS: Cannot Send Test Email - Added by User 392017 almost 7 years ago

Thank you for the response.

I contacted my IT administrator, and our mail server is not reachable from the internet.

I will just use Gmail's SMTP server on port 587 for now, and I may consider something like Amazon SES in the future.

    (1-2/2)