EmailConfiguration
Version 17 (Mischa The Evil, 2011-11-29 21:25)
| 1 | 1 | Cyber Sprocket | h1. Email Configuration |
|---|---|---|---|
| 2 | 1 | Cyber Sprocket | |
| 3 | 7 | Mischa The Evil | {{>toc}} |
| 4 | 7 | Mischa The Evil | |
| 5 | 1 | Cyber Sprocket | h2. Configuration Directives |
| 6 | 1 | Cyber Sprocket | |
| 7 | 10 | Graham King | This page is a work in progress, the following configuration directives are only a partial list. |
| 8 | 1 | Cyber Sprocket | |
| 9 | 1 | Cyber Sprocket | h3. authentication |
| 10 | 1 | Cyber Sprocket | |
| 11 | 1 | Cyber Sprocket | The type of authentication method expected by your service provider. |
| 12 | 1 | Cyber Sprocket | |
| 13 | 1 | Cyber Sprocket | Valid settings: |
| 14 | 1 | Cyber Sprocket | * :login |
| 15 | 1 | Cyber Sprocket | * :none |
| 16 | 1 | Cyber Sprocket | |
| 17 | 4 | Anthony Cartmell | (note: if you set this to @:none@, you must not include the @user_name@ and @password@ settings) |
| 18 | 4 | Anthony Cartmell | |
| 19 | 1 | Cyber Sprocket | h3. delivery_method |
| 20 | 1 | Cyber Sprocket | |
| 21 | 6 | Eric Davis | The mail transport method to be used. |
| 22 | 1 | Cyber Sprocket | |
| 23 | 1 | Cyber Sprocket | Valid settings: |
| 24 | 1 | Cyber Sprocket | * :smtp |
| 25 | 16 | Mischa The Evil | * :async_smtp |
| 26 | 1 | Cyber Sprocket | * :sendmail |
| 27 | 16 | Mischa The Evil | * :async_sendmail |
| 28 | 1 | Cyber Sprocket | |
| 29 | 6 | Eric Davis | h4. Asynchronous delivery_methods |
| 30 | 6 | Eric Davis | |
| 31 | 10 | Graham King | 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":http://redmineblog.com/articles/asynchronous-email-delivery/ for more details. |
| 32 | 17 | Mischa The Evil | These two delivery_methods currently stops [[RedmineReminderEmails|reminder emails]] from being sent whenever the @redmine:send_reminders@ rake task is executed, see #5058. |
| 33 | 1 | Cyber Sprocket | |
| 34 | 11 | Etienne Massip | h2. Example configuration.yml Configurations |
| 35 | 1 | Cyber Sprocket | |
| 36 | 1 | Cyber Sprocket | h3. Simple Login Authentication (default settings) |
| 37 | 1 | Cyber Sprocket | |
| 38 | 1 | Cyber Sprocket | <pre> |
| 39 | 1 | Cyber Sprocket | # Outgoing email settings |
| 40 | 1 | Cyber Sprocket | |
| 41 | 1 | Cyber Sprocket | production: |
| 42 | 12 | Ross Wilson | email_delivery: |
| 43 | 12 | Ross Wilson | delivery_method: :smtp |
| 44 | 12 | Ross Wilson | smtp_settings: |
| 45 | 12 | Ross Wilson | address: smtp.example.net |
| 46 | 12 | Ross Wilson | port: 25 |
| 47 | 12 | Ross Wilson | domain: example.net |
| 48 | 12 | Ross Wilson | authentication: :login |
| 49 | 12 | Ross Wilson | user_name: redmine@example.net |
| 50 | 12 | Ross Wilson | password: redmine |
| 51 | 1 | Cyber Sprocket | |
| 52 | 1 | Cyber Sprocket | development: |
| 53 | 12 | Ross Wilson | email_delivery: |
| 54 | 12 | Ross Wilson | delivery_method: :smtp |
| 55 | 12 | Ross Wilson | smtp_settings: |
| 56 | 12 | Ross Wilson | address: 127.0.0.1 |
| 57 | 12 | Ross Wilson | port: 25 |
| 58 | 12 | Ross Wilson | domain: example.net |
| 59 | 12 | Ross Wilson | authentication: :login |
| 60 | 12 | Ross Wilson | user_name: redmine@example.net |
| 61 | 12 | Ross Wilson | password: redmine |
| 62 | 1 | Cyber Sprocket | </pre> |
| 63 | 1 | Cyber Sprocket | |
| 64 | 1 | Cyber Sprocket | |
| 65 | 1 | Cyber Sprocket | *If you want to use GMail/Google Apps and other TLS-requiring SMTP servers*, you'll have to add some TLS-related settings : |
| 66 | 8 | Joël Lamotte | |
| 67 | 8 | Joël Lamotte | <pre> |
| 68 | 8 | Joël Lamotte | production: |
| 69 | 12 | Ross Wilson | email_delivery: |
| 70 | 12 | Ross Wilson | delivery_method: :smtp |
| 71 | 12 | Ross Wilson | smtp_settings: |
| 72 | 12 | Ross Wilson | tls: true |
| 73 | 12 | Ross Wilson | enable_starttls_auto: true |
| 74 | 12 | Ross Wilson | address: "smtp.gmail.com" |
| 75 | 12 | Ross Wilson | port: '587' |
| 76 | 12 | Ross Wilson | domain: "smtp.gmail.com" |
| 77 | 12 | Ross Wilson | authentication: :plain |
| 78 | 12 | Ross Wilson | user_name: "your_email@gmail.com" |
| 79 | 12 | Ross Wilson | password: "your_password" |
| 80 | 8 | Joël Lamotte | |
| 81 | 8 | Joël Lamotte | </pre> |
| 82 | 8 | Joël Lamotte | |
| 83 | 8 | Joël Lamotte | However, this will only work with "recent" enough ruby and rails versions (1.8.7 patchset 2xx and 2.3.5). |
| 84 | 8 | Joël Lamotte | (See #5814 ) |
| 85 | 8 | Joël Lamotte | |
| 86 | 8 | Joël Lamotte | |
| 87 | 1 | Cyber Sprocket | h3. No Authentication |
| 88 | 1 | Cyber Sprocket | |
| 89 | 1 | Cyber Sprocket | Example for an SMTP service provider with no authentication. Note the colon before none. |
| 90 | 1 | Cyber Sprocket | |
| 91 | 1 | Cyber Sprocket | <pre> |
| 92 | 1 | Cyber Sprocket | production: |
| 93 | 13 | Ross Wilson | email_delivery: |
| 94 | 13 | Ross Wilson | delivery_method: :smtp |
| 95 | 13 | Ross Wilson | smtp_settings: |
| 96 | 13 | Ross Wilson | address: smtp.knology.net |
| 97 | 13 | Ross Wilson | port: 25 |
| 98 | 13 | Ross Wilson | domain: cybersprocket.com |
| 99 | 13 | Ross Wilson | authentication: :none |
| 100 | 1 | Cyber Sprocket | </pre> |
| 101 | 1 | Cyber Sprocket | |
| 102 | 1 | Cyber Sprocket | h3. Using sendmail command |
| 103 | 5 | Eric Davis | |
| 104 | 5 | Eric Davis | Example for a unix system that uses the @/usr/sbin/sendmail@ command. |
| 105 | 5 | Eric Davis | |
| 106 | 5 | Eric Davis | <pre> |
| 107 | 5 | Eric Davis | production: |
| 108 | 13 | Ross Wilson | email_delivery: |
| 109 | 13 | Ross Wilson | delivery_method: :sendmail |
| 110 | 5 | Eric Davis | </pre> |
| 111 | 1 | Cyber Sprocket | |
| 112 | 7 | Mischa The Evil | h2. More information |
| 113 | 5 | Eric Davis | |
| 114 | 5 | Eric Davis | * "Configuring Action Mailer":http://wiki.rubyonrails.org/howtos/mailers#configuring_action_mailer |
| 115 | 5 | Eric Davis | * "Action Mailer Configuration":http://guides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration |