Configuring Redmine SMTP email so notifications leave the server
Redmine sends its notifications through the SMTP settings in configuration.yml, so a new install, a migrated instance or an upgraded server sends no issue updates, assignments or password emails until those settings point at a working mail relay. Teams usually need this setup in three situations: a fresh deployment, a move from a test mail catcher to the corporate relay, or an upgrade where the old configuration.yml was not carried over. Redmine itself is free under the GNU General Public License v2, so the work is not a license purchase. It is the configuration itself, the access your mail administrator grants to a sending account or relay, and the verification that mail actually arrives.
Start by confirming with your mail team which relay Redmine should use, which host and port it listens on, and how it authenticates. Ask whether the relay expects implicit SSL, STARTTLS or no encryption on that port, and whether it requires a username and password, an IP allowlist or both. Those answers decide the delivery_method, port, authentication and enable_starttls_auto values in the production block, and a mismatch between port and encryption mode is the most common cause of a silent failure. Keep the credentials out of the file where possible, and confirm with your administrators how the relay certificate is verified, since a hostname that does not match the certificate will fail the TLS handshake even when the login is correct.
Once the settings are in place, send a test email from the Redmine administration pages rather than waiting for a real issue event, then check the Redmine production log and the relay's own logs for the same message. A successful test shows the connection, authentication and sender address all work, but it does not prove that every notification template or recipient will arrive, so repeat the check with a real user account after any change. Record the final settings and the person who owns the relay account, because a password rotation or a change of sending address later is the most likely reason notifications stop.
Which SMTP options fit your mail environment
This table compares the outgoing mail paths and settings you can put in Redmine's configuration.yml, from direct SMTP to a provider or relay through to certificate checks. Read each row against your mail team's answers, since the right choice depends on who owns the mail platform and what it permits. The main takeaway is that the transport and the authentication model should be decided together with the mail team before any file is edited.
| Option | Trade-off | When it fits | Decision for the mail team |
|---|---|---|---|
| Direct SMTP to a cloud provider | Redmine opens its own authenticated connection to the provider, so credentials live in Redmine's configuration and the provider sets sending limits | Small teams with a provider-issued sending account and no corporate relay | Which sending identity, quota and credential rotation process apply |
| Direct SMTP to a corporate relay | Relay rules may allow only listed server addresses, so Redmine's host must be permitted explicitly | Organizations that route all application mail through a managed relay | Which relay host, whether source IP allowlisting is used, and who approves the rule |
| Local MTA such as sendmail | Redmine hands messages to a mail transfer agent on the same host, which then queues and relays them, adding a component to monitor | Teams that already run a local MTA with a relay to the corporate mail server | Whether the MTA is supported on the host and who owns its queue and relay settings |
| Port 587 with STARTTLS | The connection starts unencrypted and is upgraded to TLS, so the server must advertise STARTTLS and the client must be configured to require it | The common submission port for authenticated mail clients and most providers | Whether the relay requires STARTTLS on this port and which submission port is open between hosts |
| Port 465 with implicit SSL | TLS is negotiated from the first byte, so the client needs an SSL-capable setting rather than a STARTTLS one | Providers or relays that publish implicit TLS on 465 and do not offer STARTTLS on 587 | Which port the provider documents and whether firewall rules allow it outbound |
| Password authentication | Redmine stores or reads a mail password, so secret storage and rotation become part of the deployment | Accounts that accept a username and password or an application-specific password | Whether app passwords are permitted, where the secret is stored and who rotates it |
| No authentication | Mail is accepted without login, which suits only a relay that trusts the sending host by network position | Internal relays that trust the Redmine host by address and do not require login | Whether the relay accepts unauthenticated submission from this host and under which network controls |
| Certificate verification on | The client checks that the server certificate chains to a trusted authority and matches the hostname | Any production setup, and the expected configuration for most relays | Which certificate authority the relay uses and whether an internal CA must be added to the trust store |
| Certificate verification off | Encryption still occurs but the server identity is not checked, which leaves the connection open to interception | Only temporary diagnosis, with a plan to restore verification | Whether a certificate problem should be fixed at the relay rather than bypassed in Redmine |
How to set up and test the SMTP configuration
This sequence takes Redmine from its default, non-delivering email setup to a configured SMTP relay that sends a verified test message from the administration area. Each step ends with a check, so you know the file is read and the message reaches the inbox before notifications go live.
Copy the example configuration file
On the Redmine host, as the account that runs the application, copy
config/configuration.yml.exampletoconfig/configuration.ymlin the Redmine root directory. Keep the original example in place so you can compare future upgrades against it. Confirm the new file exists and that the application user can read it, because Redmine will ignore a file it cannot open. Check the file ownership against the other files inconfig/so the process running Puma or your web server can read it.Set the production email delivery block
Open
config/configuration.ymland locate theproductionsection, which holds theemail_deliverykey. Setdelivery_methodtosmtp, then fill in thesmtp_settingskeys: the relay host, port, domain, and any authentication values your mail provider requires. The keys includeaddress,port,domain,authentication,user_name,password,enable_starttls_autoortlsdepending on the port you use, andopenssl_verify_mode. Ask your mail administrator which host, port and authentication method the relay expects. Keep the file indentation exact, since YAML errors stop the file from loading. Check the result by parsing the file with a YAML linter before you restart.Store the mail credentials securely
If the relay needs a username and password, place them in the configuration file only if your change process allows it, and restrict the file to the application user with read-only permissions. Many teams prefer to inject the password from an environment variable or a secrets store, which requires an environment-aware loader on your side. Confirm the password is not written to logs or to version control, and that the file is excluded from any shared repository. The check is a file listing showing the permissions you set and a search of your repository that returns no match for the password.
Restart the Redmine application
Restart the process that serves Redmine, such as Puma behind your reverse proxy, and restart any background worker that sends mail, such as Sidekiq if you run it. Redmine reads
configuration.ymlat startup, so changes take effect only after a restart. Watch the startup log for YAML or configuration errors and confirm the application responds to a login page request. If the service fails to start, the error usually names the line in the configuration file that caused it.Confirm the configuration file is read
Sign in to Redmine as an administrator and open the Administration area, then review the Email notifications page under Settings. If the settings you wrote appear in the outgoing mail form, the file was read. Open the Rails console or a read-only check on the server to confirm
ActionMailer::Base.delivery_methodreturns:smtpand the expected server address. The check passes when these values match what you entered and no default:sendmailor:testvalue remains.Check the connection to the sender mailbox
Before you send mail through Redmine, test the relay from the Redmine host with a simple connection test, such as
openssl s_clientfor SSL ports oropenssl s_client -starttls smtpfor STARTTLS ports, using the host and port from your configuration. Confirm the certificate chain is trusted and the hostname matches the name you configured. Then confirm the sender account is allowed to send on that relay, since your provider may restrict which addresses can use SMTP. The check is a successful TLS handshake and a server banner, with no certificate or timeout errors.Send a test email from the administration area
In the Administration area, open Settings, then the Email notifications tab, and use the Send a test email link. Enter a mailbox you can read from outside the Redmine host, and send the message from the account that the relay expects. Wait for the outcome message in Redmine, then check the recipient inbox and the spam folder. A successful test shows a confirmation in Redmine and the message arrives within a short time, with the From address set to the sender you configured.
Verify headers and review the application log
Open the test message's full headers and confirm the From address, the envelope sender, and the TLS status if your mail client shows it. Check that the Message-ID and Date headers are present and that the message is not marked with authentication failures for SPF or DKIM. Then review the Redmine production log for any delivery errors. The sequence is complete when the test message arrives with the expected From address and the log contains no SMTP errors for that send. Confirm with your mail administrator whether SPF and DKIM records for the sender domain are in place before you enable notifications for users.
What happens during the SMTP handshake and why certificates matter
Redmine's mail step is a plain SMTP conversation carried out by the Rails mailer on the Redmine host. The client opens a TCP connection to the host and port set in configuration.yml, reads the server's greeting, and then either starts the session with an implicit TLS connection (the SSL port, commonly 465) or sends a command that upgrades a plain connection to TLS (STARTTLS, commonly on 587). Only after that encrypted channel exists does Redmine send the credentials chosen by authentication, and only then does it hand over the message. Each stage can fail separately, so when mail does not leave the server, the first question is which stage stopped: connection, upgrade, login or transfer.
The certificate check is the stage that most often blocks delivery in internal networks. During the TLS upgrade, the client verifies that the certificate chain leads to a trusted authority and that the certificate names the exact host Redmine connected to. A mismatch, such as connecting by an IP address or an alias that the certificate does not list, or a certificate issued by an internal certificate authority that the Redmine host does not trust, makes the handshake fail before any login is attempted. The error usually appears in the Redmine log as a certificate verification failure, and it is easy to misread as an authentication problem.
The tempting fix is to turn verification off, but that removes the protection that stops someone in the path from reading or altering the credentials and the mail. Confirm the correct server name and the internal CA chain with your mail administrator, then test the same host, port and TLS mode from the Redmine host itself with a tool such as openssl s_client, before changing any Redmine setting. If the chain checks out there, the fix is to install the CA certificate on the Redmine host, not to disable verification.
Protecting credentials and mail traffic
Redmine's outgoing mail settings hold a mailbox password and decide which servers Redmine trusts to receive it. The cards below cover the places where that trust is most often lost, from file permissions to certificate checks to delivery monitoring.
Store the SMTP password safely
The SMTP password key in configuration.yml is stored in plain text on the Redmine host. Restrict the file so only the account that runs Redmine can read it, and confirm the same applies to any backup copies and deployment templates. Keep the password out of version control and shared configuration repositories. Ask your security team whether they expect a secrets store to supply it at deploy time instead.
Use a dedicated sending account
Create a mailbox used only for Redmine notifications, not a personal mailbox. A shared sender keeps the password out of individual hands, limits damage if it leaks, and makes sent mail easy to trace in the provider's logs. Confirm with your mail administrator which sending rights the account needs and whether the provider allows application-specific credentials for it.
Keep certificate verification enabled
Redmine's SMTP connection should verify the mail server's certificate and hostname. Disabling verification to clear an error hides the problem and lets anyone on the network path intercept the login and message content. When a connection fails, fix the certificate chain or the address value rather than turning checks off. Confirm the trusted CA bundle on the Redmine host includes your internal mail CA where one is used.
Limit which hosts can relay
Redmine should send only through the mail host you name in configuration.yml. Allow outbound SMTP from the Redmine server to that host and nowhere else, and make sure the provider accepts connections only from approved sources such as fixed outbound addresses. Ask your network team whether direct outbound port 25 traffic is blocked and whether a relay on your own network is the approved route.
Log and monitor delivery failures
Mail that fails silently is often the first sign of a stolen or expired credential. Review the Redmine production log and the mail provider's sending reports for authentication failures, unusual volume or repeated rejections. Set an alert for sustained failures, and agree with your security team who receives it and how long logs are kept. Logs should not record the password itself.
Questions buyers ask about Redmine SMTP setup
How much effort does Redmine SMTP setup take, and what drives it?
The configuration itself is small: a configuration.yml block with the SMTP host, port, authentication type and sender address. The effort comes from the surrounding dependencies. The main drivers are access to a relay that accepts mail from your Redmine server, whether your mail platform requires authenticated sending or IP allow-listing, how the mail server's certificate is issued and whether your Redmine host trusts its issuing authority, and any provider policy on sending limits or app passwords. Each of these can require a request to a different team. Ask your implementer to list which of these apply to your environment before estimating time, since no fixed duration can be given without them.
Can our own team set up Redmine SMTP without a partner?
Usually yes, if your team has Linux administration skills and can get the relay details from your mail administrator. The work is editing the Redmine configuration file, restarting the application and sending a test message. Teams usually need outside help when the relay requires a certificate chain their server does not trust, when the provider enforces modern authentication, or when notifications must pass through a local mail transfer agent. Partners are most useful when a fixed-scope engagement also covers verification, documentation and handover, so the knowledge does not stay with one person.
What do we need from our mail administrator?
Your mail administrator is the person who decides whether the Redmine server may send mail at all. Expect to ask for the relay hostname, the port, the supported encryption mode (STARTTLS or implicit SSL), the authentication method, a dedicated sender mailbox or service account, and confirmation of the sending IP or allowed network. They should also confirm whether the relay requires a specific sender address or domain, and how sending limits apply. Ask them to confirm that the certificate presented by the relay matches the hostname you configure, because mismatches are a common cause of failed connections.
Is SMTP configuration a one-time task or does it recur?
The initial configuration is one-time, but parts of it recur. Service account passwords get rotated, mail providers change authentication rules or deprecate methods, certificates are renewed, and Redmine upgrades can change how mail libraries behave. Each of these can break delivery silently, because Redmine may accept the change in the web interface while messages fail in the background. Plan a periodic check that sends a test email after each rotation, provider notice or Redmine upgrade, and keep the settings documented so the next person can find them.
What does a fixed-scope quote for SMTP setup should include?
A fixed-scope quote should state the mail platform and relay type in use, the Redmine version and host type, the authentication and encryption method to be configured, and who provides the relay access and sender mailbox. It should list the test plan, including the test emails sent and where the results are recorded, and whether the work covers only the configuration or also troubleshooting of certificate trust and background job delivery. Ask for the handover items, such as a configuration record and a rotation checklist, and for the conditions that would change the price, such as a provider that needs an extra relay or a local mail transfer agent.
Why does a test email from Redmine succeed while notifications still fail?
A test email sent from the administration screen and a notification triggered by an issue change can take different paths, and background job processing may not be running correctly in production. Check whether your background job setup is running, and review the Redmine production log for connection or authentication errors when an issue is updated. Certificate verification problems and timeouts often appear only under real traffic. Confirm the relay's timeout settings with your mail administrator and test with a real issue change, not only the built-in test.
Which Redmine versions should the SMTP configuration target?
Target the Redmine release line your organization plans to run, since support differs by line. According to the Redmine download page, 7.0.x is the fully supported line with new features, bug fixes and security updates, 6.1.x receives only bug fixes and security updates, and 6.0.x receives only important security updates. Lines 5.1.x and older are unsupported. Confirm the version you will deploy before writing the configuration, because the upgrade guide requires copying configuration to the new installation, which means your SMTP block must survive that move.
How Redmine mail travels from the application to the recipient
Redmine creates a notification when an issue changes and hands it to its mailer, which reads the SMTP block in configuration.yml and opens a connection to the relay your organization or provider runs. Depending on how the installation is set up, delivery happens inline or through a background job, so the path can include a queue worker as well. The relay negotiates TLS and presents a certificate, and the hostname and trust chain must match what Redmine expects. A test email sent from the Redmine administration area shows whether the whole chain works before users depend on it.
Redmine mail path from issue event through TLS-checked SMTP relay to the recipient.
What a DeployOpen SMTP engagement includes
A fixed-scope SMTP engagement for Redmine starts with a review of the mail relay options before any file is edited. The team works with you to identify which path fits your environment: direct SMTP to a provider, an authenticated relay your organization already runs, or a local MTA that forwards mail onward. The review covers who owns the sending domain, which mailbox or service account will send, whether your network allows outbound connections on the ports you need, and how your security team wants credentials stored. The output is a written decision on the relay path, agreed with you before configuration begins, so the scope and any dependencies on your mail administrators are clear from the start.
Once the path is chosen, the work covers writing the configuration.yml production block for your Redmine instance, including the delivery method, SMTP server, port, authentication type, STARTTLS or SSL setting, and certificate verification. Delivery paths are then tested from the actual Redmine host, not from a workstation, using a test email sent through the application and a check of the mail logs on the relay. Where the relay requires an allow list or a sending restriction, the engagement includes confirming that the host address is permitted. Confirm with your provider or mail team exactly which ports, authentication methods and sender rules apply to your tenant, since these vary and are not settled by the Redmine documentation alone.
The engagement ends with a verification record you can keep with your change documentation. It normally lists the settings applied (with secrets referenced, not printed), the test messages sent, the results observed at the recipient and in the logs, and any open items for your team. Ask in the scoping discussion what the record will contain, who signs off on the relay decision, and what support is included after handover. Pricing and timing follow from the written scope and are not stated here; the quote should itemize the review, configuration, testing and documentation so you can compare it with doing the work in-house.
How DeployOpen works on this
DeployOpen scopes Redmine mail as a defined piece of work: the mail relay your organization already uses, the configuration.yml settings that connect Redmine to it, and proof that test messages arrive. Engagements are fixed-scope, so the written scope sets out what is configured, tested and handed over before work starts.
How we scope
- Confirm which mail relay or provider Redmine will send through and who owns its credentials and sending rules
- Record the SMTP host, port, authentication type and STARTTLS or SSL mode that the relay requires
- Agree which Redmine environments need mail (production, staging) and where the configuration file lives
- Define the test recipients and the delivery evidence you expect before sign-off
How we build
- Write the email section of configuration.yml for your Redmine version, with the production and staging settings kept separate
- Set authentication, TLS mode and certificate verification to match the relay, and document any deviation
- Run a test email from the Redmine host and check the message headers, sender address and TLS handshake
- Check the application log and any background job output so failures appear in a place your team can read
How we hand over
- Provide the final configuration with secrets referenced from the server environment rather than stored in plain text
- Deliver a short runbook covering how to send a test email, rotate credentials and read the mail log
- Record the relay settings, certificate details and the owner of each setting so later changes have a clear trail
- Walk your administrators through the test procedure so they can repeat it after upgrades
How we support
- Retest mail delivery after Redmine upgrades, operating system updates or changes to the mail relay
- Review the setup when a provider changes its authentication or sending requirements
- Ongoing support, upgrades and continuous testing are available as a retainer, sized to the written scope
- Ask for the support terms, response expectations and change process in writing with your quote

