Redmine email notification configuration tutorial, redmine email notification
Server-side configuration email notification
Delivery method has four main methods:
Smtp
Sendmail (used in this example)
Async_smtp
Async_sendmail
My project uses the sendmail configuration method, that is, the server uses the sendmail service to send emails.
Delivery_method: Modify the redmine configuration file in sendmail.
Modify the redmine configuration file:
Find the config folder in the redmine directory. in this folder, if you already have configuration. yml file, you can directly configure it. If not, you need to execute the command cp configuration. yml. example configuration. you can copy the sample configuration file as the configuration file for configuration.
Modify the config file:
In this configuration, you only need to find the production at the end of the file and configure it according to the officially recommended redmine method:
production: email_delivery: delivery_method: :sendmail
Configure the server: First modify the mail file of the server:
First, locate the file to be modified:
vi /etc/mail.rc
Add the following configuration at the bottom:
Set smtp = smtp. domain. comset smtp-auth-user = user name set smtp-auth-password = password set smtp-auth = login
The domain in the first line of the Code is the domain of your domain. For example, Apple is smtp.apple.com.
Configure the sendmail service
Locate the file to be modified:
vi /etc/mail/sendmail.mc
Find define ('smart _ host', 'smtp .domain.com ') dnl to uncomment it and change it to its own domain
Configure email address
Restart the redmine service and log on as an administrator.
You can configure and save the host name in Management> Configuration> General. For the configuration, refer to the example given.
Enter the email notification configuration email sender address and save it.
Finally, enter my account to configure the email address and return to the mail Notification sending test mail.
Then, change the email address of my account to the email address used by the project.