Redmine email configuration on Ubuntu 14.04 with gmail

April 26, 2015 7.5k views
Getting Started

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

5 Answers

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" 

hello,

thank you for your answer. Yes, I can send mail from console via SSH. Can you send me an step-by-step tutorial how can i edit the following file? /srv/redmine/config/configuration.yml (via console? :))

Cheers
Daniel

hello,

thank you for your answer. Yes, I can send mail from console via SSH. Can you send me an step-by-step tutorial how can i edit the following file? /srv/redmine/config/configuration.yml (via console? :))

Cheers
Daniel
Reply

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:
emaildelivery:
delivery
method: :asyncsendmail
smtp
settings:
enablestarttlsauto: true
address: "smtp.gmail.com"
port: '587'
domain: "smtp.gmail.com"
authentication: :plain
username: "youremail@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 :)

Have another answer? Share your knowledge.