Sending Redmine email through Microsoft 365

Redmine can send notifications through Exchange Online SMTP, but the sender mailbox, Send As rights, connection limits and upcoming authentication changes decide whether mail arrives. This page sets out the choices and what to confirm before you commit.

On this page

When Redmine should send mail through Microsoft 365

Exchange Online SMTP can act as Redmine's outgoing mail relay. Redmine sends notifications through the SMTP server named in its configuration.yml, so if your organization already runs Exchange Online, a mailbox in your own Microsoft 365 tenant can send issue notifications without new mail servers. Redmine is open source under the GNU General Public License v2 and has no paid edition, so no vendor supplies a mail service for it. Delivery therefore depends entirely on your tenant: its license tier, the sender mailbox, that mailbox's permissions and the authentication rules Microsoft applies to SMTP. This section helps you decide whether that route fits before you change any configuration.

Microsoft 365 is a good fit when the tenant already exists, IT can create a dedicated sender mailbox for Redmine, and the team accepts that mail follows the tenant's policies, retention and audit settings. Confirm your tenant's plan first. Business plans are limited to 300 users per tenant, while Enterprise plans such as E3 and E5 have no user limit, and the Microsoft 365 plan options page lists what each plan includes. Ask whether SMTP sending is enabled for the tenant and who owns the mailbox after staff changes, because a Redmine instance that loses its sender account stops sending mail without any visible error in the application.

A local mail relay or another route is the better choice when the Redmine server cannot reach Microsoft's SMTP endpoints from its network, when security policy keeps outbound mail inside your own data center, or when notification volume and mail handling need controls your tenant cannot provide. A local MTA that relays to the corporate mail system is covered in a sibling topic. If your organization is evaluating Microsoft's on-premises options, the Microsoft sovereign solutions announcement describes Microsoft 365 Local, but confirm with Microsoft whether it fits your environment and licensing before you plan around it.

Choosing the Microsoft 365 SMTP path and its settings

This table compares four ways to send Redmine mail through Exchange Online, covering when each fits and what it costs in sender identity, connection handling and upkeep. The smtp_settings keys in configuration.yml (address, port, domain, authentication, user_name, password and enable_starttls_auto) stay the same across options, so the sender account and its permissions drive most of the long-term effort. Use the last column as the list of questions for your tenant administrator before you choose.

OptionWhen it fitsTrade-offConfirm with the tenant administrator
Direct SMTP with a dedicated mailboxRedmine sends from one service mailbox that only the application uses.Simple sender identity, but one mailbox and one credential to protect and rotate.Whether SMTP authentication is enabled for that mailbox and whether the tenant allows it for application use.
Shared mailbox with Send AsNotifications should appear to come from a team address, such as a project support mailbox.Replies reach a shared inbox, but the sending right must be granted and kept in step with membership changes.How the shared mailbox authenticates over SMTP, that Send As is granted on it, and that the sender address appears in the From header.
Per-user mailboxOnly a named service account tied to one person, which suits very few deployments.Sending stops when that person leaves, changes password or loses the license, so it is a weak fit for a shared system.Account lifecycle rules, the license status of the mailbox and whether the password policy forces periodic changes.
Local MTA relaying to ExchangeSeveral applications send mail, or the host must queue and retry during short Exchange outages.Adds a mail component to run and monitor, but Redmine talks only to a local host and the relay manages Exchange connections.Which relay hosts the tenant accepts, whether the relay address needs an allowed connector, and the TLS requirements for the connection.

How Redmine hands notifications to Exchange Online

Redmine does not send mail itself at the moment an event happens in the interface, but it hands each notification to its mailer, which opens an SMTP session to the Exchange Online submission endpoint and authenticates with the sender account in configuration.yml. Issue creation, status changes, comments and journal updates are queued as mail deliveries. In production, these deliveries are normally handled by the background job layer (Sidekiq, if you have configured it), so a failed connection shows up as a job failure in the Redmine log rather than as an error on the user's screen. Scheduled work such as due date reminders runs through a separate scheduled task that produces the same kind of delivery, so both paths depend on the same SMTP settings and the same authenticated session. Confirm which path your deployment uses before you test, because a fault in the queue can look like a mail fault.

The emission_address in Redmine's email settings becomes the visible From address, and Exchange Online accepts a submission only when the authenticated account has permission to send as that address. Plan this as an access decision, not a formatting detail. Identify the mailbox that will appear as the sender, decide whether it is a shared mailbox or a dedicated user, and confirm with your Microsoft 365 administrator that the relay account holds Send As rights on it. A mismatch between the authenticated account and the From address is a common reason notifications are rejected even when the login itself succeeds. Ask your administrator to confirm this in the tenant before you change any Redmine setting.

Reminders and issue-by-email replies use the same outbound path, which has two consequences. First, a reply a user sends to a Redmine notification is handled by the mailbox that receives it, so the reply address and the sender mailbox need to be planned together. Second, a change to the sending account, its password or its authentication method affects every kind of Redmine mail at once, including reminders that nobody is watching in real time. Record which mailbox receives replies, which account sends, and who owns both, so that a later change to one does not silently break the other.

Setting up Exchange Online SMTP for Redmine

This sequence takes Redmine from a licensed Exchange Online tenant to a sender that passes SPF, DKIM and DMARC checks. Each step ends with a check you can run, so a failure can be traced to one setting when it appears.

  1. Confirm the tenant plan and licensing

    The Microsoft 365 administrator checks which plan the tenant holds and whether an Exchange Online license covers the sender mailbox. Business plans are limited to 300 users per tenant, while Enterprise plans such as E3 and E5 have no user limit, so the plan decides how far the mailbox setup can grow. Confirm the details in Microsoft 365 plan options and record the tenant name and primary domain. Done when the admin center shows an active subscription that includes Exchange Online for the mailbox you plan to use.

  2. Create or choose the sender mailbox

    Create a dedicated mailbox for Redmine notifications, owned by a role group or a named administrator who will manage its sign-in. Personal inboxes should stay out of this path, because replies, out-of-office messages and mailbox cleanup will then affect delivery. Confirm with Microsoft whether the mailbox type you pick accepts SMTP sign-in, since shared mailboxes often do not. Record the mailbox address, its owner and where the password will be stored. Done when you can sign in to the mailbox in Outlook on the web and send a message manually from it.

  3. Grant Send As rights only to that mailbox

    Grant the Send As permission on the sender mailbox to the single account Redmine will use, and to no other principal. Do not grant tenant-wide or group-wide Send As rights for convenience, because any compromised account in that scope could then send mail as the Redmine sender. Use the Exchange admin center or PowerShell to make the change and keep a record of who approved it. Check it with Get-RecipientPermission -Identity <sender mailbox> and confirm the output lists only the expected trustee. Done when the trustee list matches the approved record.

  4. Confirm SMTP client submission for the account

    SMTP client submission can be controlled at the tenant level and per mailbox, so check both before Redmine tries to connect. Enable it only for the Redmine sender mailbox, and confirm the current requirements for SMTP authentication in your tenant, since Microsoft has been changing how basic authentication is handled. Note the per-account connection limits Microsoft documents and keep Redmine's connection use modest. Check the mailbox with Get-CASMailbox -Identity <sender mailbox> | Format-List SmtpClientAuthenticationDisabled. Done when the value shows the setting you approved and no other mailbox in the tenant has it enabled without a reason on record.

  5. Set TLS and delivery settings in configuration.yml

    The Redmine administrator edits configuration.yml in the production section, setting delivery_method to SMTP and filling smtp_settings with the tenant's submission host, port, domain, authentication type, sender account and password. Enable STARTTLS and keep certificate verification on, so the connection cannot quietly fall back to plain text. Compare every key against the configuration.yml.example shipped with your Redmine version, and restrict the file's permissions to the service account. Restart the application server after the change. Done when Redmine starts without errors and the email settings page loads.

  6. Send a test message from Redmine

    In Redmine, open Administration, then Settings, then Email notifications, and use the test email function. Send one message to a recipient inside the tenant and one to an external mailbox, because internal delivery can succeed while external delivery fails. Open the received messages and inspect the headers for the sender address you configured and the Microsoft sending hosts. Done when both messages arrive and the From address matches the approved sender mailbox.

  7. Verify SPF, DKIM and DMARC alignment

    Confirm the sending domain's SPF record includes the Microsoft 365 sending hosts, that DKIM signing is enabled for the domain in the Microsoft 365 admin center, and that the DKIM selector records are published. Confirm a DMARC record exists and that the domain in the From header aligns with the signing domain. If Redmine uses a From address on a different domain, alignment fails even when SPF and DKIM pass. Check the received headers for the Authentication-Results entries showing spf, dkim and dmarc. Done when all three report pass for the test message.

  8. Read the Redmine log for delivery errors

    Open the production log in Redmine's log directory and find the entries written during the test send. Look for authentication failures, certificate verification errors, timeouts and any message that reports a missing recipient. Repeat the check with a notification triggered by a real issue update, since background delivery can fail even when the test email works. Keep the log entries with the change record so the configuration can be reviewed later. Done when the test and the issue update both leave no error entries and both recipients receive the notification.

Working within the three-connection limit

Exchange Online limits how many SMTP submission connections a single mailbox can hold open at once, and Redmine can open several at the same time when notifications fire in bursts. The cards below cover how to size that concurrency, where to queue mail, and which options keep the sender mailbox within the limit.

Understand the per-mailbox connection cap

Exchange Online SMTP submission allows a limited number of simultaneous authenticated connections per mailbox, and the documented figure is the one to plan against. Each Redmine process or thread that opens its own SMTP session counts toward that cap, so a busy instance can exhaust it without any single process doing much work. Ask your Microsoft 365 administrator to confirm the current limit for your plan in Microsoft's documentation before you size the setup.

Plan options

Serialize delivery through Sidekiq

Redmine can hand outgoing mail to background jobs instead of sending inline, and Sidekiq is the usual queue for production. Limiting the Sidekiq queue that carries mail to a single worker or a small fixed concurrency keeps Redmine from opening more SMTP sessions than the mailbox allows. Check the worker configuration after each deployment change, because adding worker processes or threads quietly raises the number of open connections.

Hold upstream connections in a local relay

A local MTA such as Postfix can accept mail from Redmine on the internal network and keep a small, fixed pool of authenticated connections to Exchange Online. Redmine then sends many messages quickly without changing the upstream session count, and the relay retries deferred messages on its own schedule. This design also gives you one place to inspect the queue and logs when mail stalls, which makes it easier to tell a Redmine fault from a Microsoft 365 throttling event.

Split volume across mailboxes only with approval

Sending from several mailboxes spreads the connection load, but each extra mailbox is a separate identity that needs its own license, Send As rights and audit trail. Many organizations treat additional sender accounts as a policy decision rather than a technical fix, so confirm with the security and messaging owners before creating them. Document which mailbox sends which notification type so that replies and bounces can be traced.

Test concurrency under a notification burst

Before go-live, trigger a burst of issue updates that notifies many watchers at once and watch the SMTP session count on the relay or Redmine host. Confirm that no authentication or throttling errors appear in the Redmine logs and that the queue drains within an acceptable time. Repeat the test after any change to worker counts, relay settings or the Redmine version, since each of these can change the concurrency profile.

Authentication changes to plan for in Exchange Online

Plan for Microsoft moving Exchange Online SMTP authentication away from basic authentication, the username and password model that many Redmine setups still use today. Redmine's configuration.yml stores the mailbox credential under smtp_settings as user_name and password, and that stored value is a dependency you do not control. If your tenant or the sender mailbox depends on a password or app password for SMTP AUTH, a change on Microsoft's side can stop all Redmine notifications at once, with no change on the Redmine server.

Decide early how Redmine will authenticate in the long run. Redmine's standard SMTP settings take a static password, so moving to OAuth2 usually means putting a component between Redmine and Exchange Online that obtains and refreshes access tokens, such as a local relay or mail gateway that holds the credential. Confirm with your Redmine version and its mail delivery path which options are supported, who owns the registered application or relay credential, how it is rotated, and where it is stored with restricted file permissions or a secrets manager. Record the owner and the rotation schedule in your runbook.

Check the current Microsoft announcements instead of relying on memory. Review the Exchange Online SMTP authentication documentation on Microsoft Learn, and the Message center in your tenant's admin center, which shows changes that apply to your organization. Confirm which protocols and authentication methods are affected, the dates Microsoft has published, and whether your sender mailbox is in scope. Then test the chosen approach with a non-production mailbox and send a test notification from Redmine before the change takes effect, so the cutover is a verified switch and not a surprise.

Securing the sender account and mail content

The sender mailbox is a privileged credential that sends mail on behalf of your organization, and the messages it carries can hold issue text and personal data. The cards below cover how the account is stored, scoped, owned and retained, and what the mail content means for evidence and data location.

Store the sender password outside version control

The SMTP password sits in the password key of configuration.yml, so the file must be readable only by the account that runs Redmine and must stay out of backups shared with wider teams. Prefer a secrets store or environment injection where your deployment supports it, and keep the file permissions under review. Rotate the password on any staff change, because a copied value grants send access to the mailbox until it is replaced.

Limit Send As to the notification address

Grant the sender account Send As rights only on the address Redmine uses in its From header, not on every shared mailbox in the tenant. Ask your Exchange administrator to confirm the scope in writing and to check it after any mailbox or group change. A narrow grant limits what a leaked credential can impersonate, and it keeps the audit trail readable when someone reviews who sent what.

Assign a named owner for the mailbox

Notification mail should not depend on one employee's personal mailbox. Name a team owner, a shared mailbox or a service account, and record who can reset its password and approve changes to its permissions. Plan the handover before the owner leaves, because disabling an account that Redmine still uses stops all notifications without an obvious error in the application.

Plan retention against the subscription lifecycle

Mailbox content and the tenant itself follow the subscription lifecycle, which moves from Active to Expired, then Disabled, then Deleted. Confirm with your Microsoft partner or tenant administrator how long sent items and the sender mailbox are kept, and what happens if the subscription is not renewed. Notification history in Exchange should not be your only record of issue activity, since Redmine's own journal is the system of record.

Disabled state length
90 days

Treat notification content as data

Redmine notifications can quote issue descriptions, comments, attachment names and the names and email addresses of watchers. Decide which projects send mail at all, which fields appear in notifications, and how long mail copies remain in staff mailboxes. Ask your data protection lead to record this flow in the processing inventory, since mail leaves Redmine's database and lands in systems you may not control.

Export evidence before packages expire

Microsoft Purview eDiscovery can export Exchange items as PST or .msg files, and it can export SharePoint and OneDrive content as native documents with version history. Export packages expire 14 days after creation, and exporting requires an E3 or E5 license. Confirm with your administrator that the license is in place before an incident, and download and store the package within that window.

eDiscovery export docs

Confirm EU Data Boundary scope for EU tenants

The EU Data Boundary applies to Microsoft 365 for customers whose sign-up location is in the EU or EFTA, but customers who bought Multi-Geo Capabilities fall outside it even when the tenant is listed in an EU or EFTA country. Ask Microsoft or your reseller to confirm your tenant's status in writing, since your data processing record should state where notification mail is processed and stored.

EU Data Boundary docs

Mail flow from Redmine to Exchange Online and recipients

Notifications start in the Redmine web app or the background job worker, which read the SMTP settings in configuration.yml. Mail then either goes directly to Exchange Online over authenticated, TLS-protected SMTP submission, or passes through a local MTA inside your network that relays it. Once Exchange Online accepts the message, it is delivered to recipient mail servers outside your boundary. Check the sender mailbox permissions, the TLS and authentication hops, and the job worker, since a job that cannot connect fails silently from the user's point of view.

Redmine mail leaves the organization network through Exchange Online submission or a local relay.

Questions teams ask before sending Redmine mail through Microsoft 365

How much does it cost to send Redmine email through Microsoft 365?

Redmine itself is free under GPL v2, so the cost is the work to configure the relay and the Microsoft 365 licensing you already pay for or plan to buy. The configuration work is usually a one-time cost, while mailbox licensing, tenant administration time and any later changes to tenant policy recur. No supplied figure gives a price for the configuration work, so ask any partner for a quote built from a written scope that names the tenant, the sender mailbox, the number of Redmine instances and the DNS changes. Confirm your current plan with Microsoft, because the Business and Enterprise plan options differ in what they include.

How long does a Microsoft 365 SMTP setup for Redmine take?

The duration depends on how quickly your tenant administrator can approve the sender mailbox, grant Send As rights and confirm that SMTP client submission is permitted for that mailbox. Tenant policy review and DNS changes often take longer than the Redmine edit itself. No supplied fact gives a duration, so ask for a timeline in the written scope and confirm the approval steps with your Microsoft 365 administrator before work starts.

What do we need from our tenant admin, mailbox owner and Redmine administrator?

Each role supplies a different piece of the setup:

  • The Microsoft 365 tenant administrator confirms the plan, enables SMTP authentication for the sender mailbox where policy allows it, and grants Send As rights.
  • The mailbox owner or a shared mailbox owner confirms which address Redmine will send from and who receives replies.
  • The Redmine administrator edits the SMTP settings in configuration.yml, sends a test email and checks the logs.

Agree these responsibilities in writing so that no step waits on a role nobody has assigned.

Can our internal team set up Redmine SMTP with Microsoft 365 on its own?

Yes, a team with administrator access to both Microsoft 365 and the Redmine host can usually complete the basic setup alone, provided the tenant allows SMTP authentication for the chosen mailbox. The risk lies in policy and DNS work that the team may not control, such as conditional access, mailbox authentication settings and sender records. Review the settings against Microsoft's current documentation before you start, and consider outside help if the tenant owner is not in your team.

What makes the effort grow for a Microsoft 365 Redmine relay?

Effort rises when tenant policy is strict, when the relay has to serve several Redmine instances or other applications, and when DNS records must be changed for sender authentication. Each additional instance needs its own review of sending volume and sender identity, and the three-connection limit on Exchange Online SMTP submission must be planned for across all of them. Ask any partner to price each instance and each policy exception separately in the quote.

What DNS records and authentication checks should we plan for?

Plan to confirm the sender domain's SPF and DKIM records and, where your policy requires it, DMARC, so that mail from Redmine is aligned with the domain it claims to come from. Changes to these records are made by whoever controls DNS for the domain and should be tested with a real message to an external mailbox. Confirm the exact record values with Microsoft 365 documentation and your mail security team rather than copying them from older guides.

When is a local mail relay a better choice than Microsoft 365 SMTP?

A local relay is usually the better choice when several applications need outgoing mail, when the tenant policy blocks direct SMTP submission, or when you want queueing and retries on your own network. The Redmine side is then configured to hand mail to a local MTA, which relays to the corporate mail server. This moves more responsibility to your operations team, so weigh the ongoing patching and monitoring against the policy friction of the direct approach. See the sibling guide on Redmine with sendmail or a local mail relay for the configuration steps.

How DeployOpen scopes Redmine email on Microsoft 365

DeployOpen starts every Redmine email engagement on Microsoft 365 with a written scope agreed before any configuration changes. The scope names the Redmine version and host, the Exchange Online tenant, the sender mailbox, the notification types Redmine must send and the test recipients. It also records who owns each decision, including whether Redmine authenticates as a dedicated mailbox or through another method, and which items sit outside the work, such as mailbox design, mail flow rules or conditional access policies. Because most of these decisions belong to the tenant administrator, the scope is reviewed with that person before the work starts, not after.

Implementation runs in the client's own environment, with the tenant administrator making or approving changes in Microsoft 365 and DeployOpen making the matching changes to the Redmine configuration. Coordination covers the configuration.yml settings, the sending account and its permissions to send as the sender address, and the connection limits the tenant enforces. Before go-live, the team confirms the mailbox can send through SMTP from the Redmine host, then sends real notifications to test accounts in several mail clients and checks the message headers, sender identity and TLS negotiation. The results are written up so the client can repeat the checks after changes.

After go-live, ongoing support is optional and can be arranged as a retainer. It typically covers reviewing the mail setup when Microsoft changes authentication or licensing, retesting after Redmine upgrades, and investigating delivery failures. Ask any partner, DeployOpen included, to confirm which of these tasks are in the fixed scope and which are billed separately, and to state how changes to the tenant or Redmine will be handled. Confirm with your own Microsoft 365 administrator which authentication methods your tenant supports today, since that determines the scope.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.