An error occurred while sending mail (530 5.7.0 No STARTTLS command has been given. )
Added by stroodle noodle about 15 years ago
I'm trying to configure email in Redmine now, getting the following error:
An error occurred while sending mail (530 5.7.0 No STARTTLS command has been given. )
I'm trying to contact an MS Exchange server, using the following email.yml:
production: delivery_method: :smtp smtp_settings: address: smtp-server.domain.com port: 25 domain: domain.com authentication: :login user_name: user password: pass
I have tried adding "tls: true", but it made no difference and I received the exact same error message. What gives?
Replies (3)
RE: An error occurred while sending mail (530 5.7.0 No STARTTLS command has been given. ) - Added by stroodle noodle about 15 years ago
Using 0.8.5 by the way.
RE: An error occurred while sending mail (530 5.7.0 No STARTTLS command has been given. ) - Added by M K about 15 years ago
stroodle noodle wrote:
Using 0.8.5 by the way.
I had the same problem.
Solution:- add to the config/email.yml -- "tls: true" line
- sudo ruby script/plugin install git://github.com/collectiveidea/action_mailer_optional_tls.git
(if no git support install "git-core" or install the plug-in different way.) - rake db:migrate_plugins RAILS_ENV="production"
- and restart ruby/rails server
RE: An error occurred while sending mail (530 5.7.0 No STARTTLS command has been given. ) - Added by M K about 15 years ago
and check on what kind of enviroment you are running production or development.
command ruby script/about