原文:http://www.redmine.org/projects/redmine/wiki/EmailConfiguration
Configuration Directives
This page is a work in progress, the following configuration directives are only a partial list.
authentication
The type of authentication method expected by your service provider.
Valid settings:- :login
- :none
(note: if you set this to :none
, you must not include the user_name
and password
settings)
delivery_method
The mail transport method to be used.
Valid settings:- :smtp
- :async_smtp - valid in trunk/0.9+ only
- :sendmail
- :async_sendmail - valid in trunk/0.9+ only
Asynchronous delivery_methods
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. SeeAsynchronous Email Delivery for more details.
Example configuration.yml Configurations
Simple Login Authentication (default settings)
If you want to use GMail/Google Apps and other TLS-requiring SMTP servers, you'll have to add some TLS-related settings :
However, this will only work with "recent" enough ruby and rails versions (1.8.7 patchset 2xx and 2.3.5).
(See #5814 )
No Authentication
Example for an SMTP service provider with no authentication. Note the colon before none.
Using sendmail command
Example for a unix system that uses the /usr/sbin/sendmail
command.