Email server configuration - help needed
Added by gabriel scolan over 16 years ago
The configuration of the SMTP server is the following in the environment.rb file (Redmine version 0.7.1)
config.action_mailer.smtp_settings = { :address => "127.0.0.1", :port => 25, :domain => "somenet.foo", :authentication => :login, :user_name => "redmine@somenet.foo", :password => "redmine", }
I'm just wondering what are the optional fields and what are the mandatory ones. In particular, do I need to create a specific mailbox redmine@mycompany.com, even if I just expect email to be sent by Redmine without reply possible to this address ?
What's the
:authentication => :login,for ? is there any other possible value than
:login?
many thanks
gabriel
Replies (4)
RE: Email server configuration - help needed - Added by Thomas Lecavelier over 16 years ago
Redmine is using ActionMailer.
All your answer are there: http://api.rubyonrails.org/classes/ActionController/Base.html
But no, you don't need to create a mailbox. Since you're connecting to the loopback interface, there's a lot of chance that you don't even need authentication at all (the three last lines).
RE: Email server configuration - help needed - Added by gabriel scolan over 16 years ago
Thanks, I'll see then with the IT departement to get the address, port and domain of the SMTP server.
gabriel
RE: Email server configuration - help needed - Added by gabriel scolan over 16 years ago
I've configured the 3 fields address, port and domain, letting the last 3 ones authentification,user_name and password with their default values.
When I try and send a test email (via Administration -> Settings -> email notifications, I've got the following error message
An error occurred while sending mail (502 Command "AUTH LOGIN" not implemented )
I suspect it is linked to the value of the authentification field. How can I set it ? Do I need an additional module for email notification (I've only installed Redmine 0.7.1, nothing else as plugins or optional packages)
indeed, the login used in my Redmine installation is not register in the email database as a known login.
thanks
RE: Email server configuration - help needed - Added by gabriel scolan over 16 years ago
I used the same solution than Alejandro Celery on other Help discussion (see http://www.redmine.org/boards/2/topics/show/869), meaning commenting out the last 2 lines, and it works !
My configuration is now :
config.action_mailer.smtp_settings = { :address => "127.0.0.1", :port => 25, :domain => "somenet.foo", :authentication => :login, #:user_name => "redmine@somenet.foo", #:password => "redmine", }
cheers
gabriel