This forum is no longer active. Please post your questions to our new community site

Forums General

problem with Redmine and Gmail

Subscribe to problem with Redmine and Gmail 15 post(s), 7 voice(s)

 
Avatar chiaretta 12 post(s)

Hy,
I try to setup Redmine to send email using GMail, following this link:
http://redmineblog.com/articles/setup-redmine-t…

but i have always yhe same error:
530 5.7.0 Must issue a STARTTLS command first.

Can someone help me?
Thanks
Chiara

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

The yml files should have an exact number of spaces and not tabs. Have you take into account this?

 
Avatar chiaretta 12 post(s)

Hy,
this is my email.yml :

production: <- 0 space
delivery_method: :smtp <- 2 spaces
smtp_settings: <- 4 spaces
tls: true
address: smtp.gmail.com
port: 587
domain: s3srl.com
authentication: :login
user_name: info
password: pwd

Is it correct? I still have the same error…

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

Why the domain name is “s3srl.com”? Is should not be “smtp.gmail.com” ? and authentication should not be “plain” ?

 
Avatar chiaretta 12 post(s)

Hy,
i change the authentication to “plain” ,
s3srl.com is the domain name (i’m using gmail with a personal domain name )

 
Avatar chiaretta 12 post(s)

Hy,
the readme file there are the following lines:
Add the following to your environment.rb file:

ActionMailer::Base.smtp_settings = { :tls => true, :address => “smtp.gmail.com”, :port => “587”, :domain => “YOURDOMAIN”, :authentication => :plain, :user_name => “GOOGLEUSERNAME”, :password => “GOOGLEPASSWORD” }

which is the environment.rb,( i have 9 file called envirnoment.rb in the redmine directory) ?
Thanks

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

The environment.rb file is in the installdir/apps/redmine/config/ folder.

 
Avatar maleki 1 post

This is no Kosher in so many ways but where’s what I did to send email through GMail. YMMV, IANAL, GLS etc…

I’m assuming a default install on a windows machine.

1. Open or Create email.yml in : C:\Program Files\BitNami Redmine Stack\apps\redmine\config

2. Make it look like the following:

production:
  delivery_method: :smtp
  smtp_settings:
    tls: true
    address: smtp.gmail.com
    port: 587
    domain: gmail.com  
    authentication: :plain
    user_name: your_google_email<at>gmail.com
    password: your_google_email_password
  
development:
  delivery_method: :smtp
  smtp_settings:
    tls: true
    address: smtp.gmail.com
    port: 587
    domain: gmail.com 
    authentication: :plain
    user_name: your_google_email<at>gmail.com
    password: your_google_email_password

2. go to this site: http://github.com/collectiveidea/action_mailer_…

3. download the file collectiveidea-action_mailer_optional_tls-.zip where is a random string of some sort.

4. extract it to a folder on your machine.

5. create the folder action_mailer_optional_tls in C:\Program Files\BitNami Redmine Stack\apps\redmine\vendor\plugins\

6. copy the contents of what you extracted to the folder you created

7. reboot mongrel using the following commands

net stop redmineMongrel1
net start redmineMongrel1
net stop redmineMongrel2
net start redmineMongrel2

That’s how I got it to work. I tried using the plugin update from the git source and it did nothing for me. Maybe I needed a more explicit example. If someone knows of a way to make that plugin install/update work let me know.

Maleki

 
Avatar carlos Administrator 144 post(s)

We are glad you find the solution. Thanks for sharing with other bitnami users!

 
Avatar izazam 8 post(s)

i’ve followed the instruction but still having error

An error occurred while sending mail (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. – connect(2))

my email.yml looks like below. do i need to add require ‘smtp_tls’ in my production.rb?
production:
delivery_method: :smtp
smtp_settings:
tls: true
address: smtp.gmail.com
port: 587
domain: gmail.com
authentication: :plain
user_name: redmine.ecomm@gmail.com
password: xxx

development:
delivery_method: :smtp
smtp_settings:
tls: true
address: smtp.gmail.com
port: 587
domain: gmail.com
authentication: :plain
user_name: redmine.ecomm@gmail.com
password: xxx

 
Avatar izazam 8 post(s)

it works now..it’s due to LAN restriction

 
Avatar izazam 8 post(s)

anyway…anyone could help me on how can i bypass my LAN proxy

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Sorry this depends on your LAN configuration or policy. Please contact with your network administrator.

 
Avatar gmarquez 2 post(s)

Maleki´s solution works

 
Avatar etech 1 post

To anyone having trouble setting up email in the Bitnami Redmine stack:

Use maleki’s solution above. It WORKS.

I did this on the Ubuntu stack.

Thanks.

EDIT: Nevermind, Redmine says “email sent successfully” but I never receive an email…..

x2EDIT: OK, it IS in fact working. Issue update emails send just fine, but the test email just doesn’t arrive. Good enough!

Forums General