In order to deliver emails to users of Redmine, we need to complete the email configuration.
Email configuration of Redmine is contained in the configuration.yml
file.
|
|
Let’s see a example email configuration first.
|
|
Because Redmine is developed with Ruby on Rails, so it’s email configuration is based on Action Mailer Configuration of Ruby on Rails.
delivery_method
The mail transport method to be used.
Valid settings:
- :smtp
- :sendmail
- :async_smtp
- :async_sendmail
The :async_smtp
and :async_sendmail
use asynchronous sends, which means Redmine does not wait for the email to be sent to display the next page. See Asynchronous Email Delivery for more details. Some SMTP servers have delay period before processing takes place as anti-spam feature, during which time synchronous method will block Redmine (10 seconds could be default value).
address
The SMTP server address to be used.
port
The SMTP server port to be used.
domain
You can specify your HELO domain in this setting.
authentication
The type of authentication method expected by your service provider.
Valid settings:
- nil (or omit the key) for no authentication
- :plain
- :login
- :cram_md5
(note: if you set this tonil
or omit it, you must not include theuser_name
andpassword
settings)
user_name
If your mail server requires authentication, set the username in this setting.
password
If your mail server requires authentication, set the password in this setting.
And if you are using a TLS-requiring mail server, you’ll have to add this setting:
enable_starttls_auto
Valid Settings:
- true
- false
Set this totrue
if you are using a TLS-requiring mail server.
Take GMail for example:
|
|
More examples
No Authentication
|
|
Using sendmail command
For unix system command: /usr/sbin/sendmail
|
|