Question

Redmine email configuration on Ubuntu 14.04 with gmail

Dear Community!

Need some help, I am very new in Ubuntu. I have an pre-installed Redmine, but the email for the application was not setup yet.

I would like an step-by-step tutorial how can I configure the email with gmail smtp setting in Redmine.

Thanks for everybody.

Cheers Daniel


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Email should be set up on the Redmine 1-click image by default. Are you able to send emails from your droplet at all? Try logging in via SSH and sending a test email to your email address:

echo test | mail you@gmail.com

If you want to send emails via SMTP through your Gmail account, add the following lines to /srv/redmine/config/configuration.yml:

production:
  email_delivery:
    delivery_method: :async_sendmail
    smtp_settings:
      enable_starttls_auto: true
      address: "smtp.gmail.com" 
      port: '587'
      domain: "smtp.gmail.com" 
      authentication: :plain
      user_name: "your_email@gmail.com" 
      password: "your_password" 

This comment has been deleted

Okay, so I have found the solution.

Log in your droplet via ssh from Putty (or other ssh tool). 1a. ) install sendmail: sudo apt-get install sendmail cd the following directory: /srv/redmine/config/ create an you file and called it configuration.yml: configuration.yml

nano -w configuration.yml

paste the following config:

production: email_delivery: delivery_method: :async_sendmail smtp_settings: enable_starttls_auto: true address: “smtp.gmail.com” port: ‘587’ domain: “smtp.gmail.com” authentication: :plain user_name: “your_email@gmail.com” password: “your_password”

save this file: CTRL + X + S + Y cd the following directory: /srv/redmine/tmp create an new blank file an named it: restart.txt restart the application: touch /srv/redmine/tmp/restart.txt and voila, you can send notification mail from redmine :)