Configuring Open edX email delivery over SMTP

Set SMTP host, port, credentials and TLS in Tutor so Open edX sends account, course and digest emails from infrastructure you control, then verify delivery before launch.

On this page

Configuring Open edX email delivery over SMTP: when your platform needs its own mail path

Open edX sends account activation, enrollment and digest emails through an SMTP relay that you configure, and the choice of relay is your responsibility. If a learner or course team cannot receive an activation message or a digest, the platform itself may be healthy while the mail path is broken. Treat the relay as a service you own: someone must decide which mail provider or internal relay accepts messages from your platform, who holds the credentials, and who gets alerted when delivery fails. Open edX does not run a mail service for you, so a platform that works in a test browser can still fail every real learner on launch day if the relay rejects its sender domain or its connections are not encrypted.

In Tutor, the SMTP host, port, credentials and TLS behavior are set in the project configuration, and the same values must match what your relay expects. Ask your relay operator which port and TLS mode they support, whether they require an authenticated sender, and which sending domain and SPF or DKIM records must exist before the first message goes out. Confirm the exact configuration keys against the Tutor version you run, because the names and defaults can change between releases. The Tutor documentation is the place to check them before you copy values from an older guide.

Before launch, plan the mail path as its own piece of work: pick the relay, record who owns its credentials and quotas, and send test messages for each email type your release actually uses. Confirm the template list and any digest schedule against the Open edX release you run rather than assuming them from this page. A failed relay login or a bounced sender address should be visible in your logs before a learner reports it, so decide where those logs are collected and who reviews them.

SMTP options and which one fits your environment

This table compares the three common ways to source an SMTP relay for Open edX: a managed transactional mail service, your organization's internal relay, and a self-run mail server. Read each row against your own constraints on sender domain, deliverability and who is on call when mail stops, then confirm the port and TLS settings with whichever relay you choose.

Decision factorManaged transactional mail serviceInternal organization relay or self-run server
Sender domain controlUsually requires you to verify your sending domain with DNS records the provider supplies; confirm the exact records with the providerSender domain is set by your mail team; confirm which From domains the relay will accept for Open edX
Deliverability ownershipShared with the provider, which manages sending IP reputation; you still own SPF, DKIM and DMARC for your domainOwned by your mail team, including IP reputation, bounce handling and blocklist response
TLS and port supportAsk the provider which ports accept implicit TLS and which accept STARTTLS, and whether they require authenticationConfirm with your mail administrators which ports are open from the Open edX host and which TLS mode the relay enforces
Who operates the relayProvider operates it; you operate the credentials and the Tutor configurationYour internal team operates it; a self-run server adds patching, queue monitoring and log retention to your duties
Credential handlingAPI key or SMTP user issued by the provider; store it as a secret and rotate it on the provider's scheduleOften a service account tied to a network address allow list; confirm how it is issued and revoked
Fit for course and digest mailSuits high-volume account and notification mail if the provider permits your content and sending pattern; confirm limitsSuits mail that stays inside the organization; external learners may need outbound routing that your relay allows
Audit and logsDelivery events are available in the provider console; confirm retention and whether you can export themLogs live on your mail infrastructure; confirm you can correlate Open edX send events with relay logs

Setting SMTP in Tutor step by step

This sequence takes an Open edX installation from no outgoing mail to confirmed delivery of account and course emails. Each step ends with a check, so the team knows whether the relay, the Tutor configuration and the sending domain are working before learners depend on them.

  1. Collect relay details from the mail provider

    The platform owner or the person who manages the mail account requests the SMTP host, port, username and password from the provider. Confirm which port and encryption mode the provider expects, whether the sending address or domain must be verified first, and whether the provider limits sending volume for new accounts. Store the password in your secrets store, not in a shared document. The step is done when all four values are recorded and a mail client set up with them can authenticate to the relay.

  2. Set the SMTP keys in Tutor configuration

    Open the Tutor project's configuration file and add the SMTP settings for host, port, credentials and TLS. Confirm the exact configuration key names against the Tutor documentation for your release before editing, because names can change between releases. Keep the password out of any repository that others can read. The step is done when the configuration file contains every SMTP value and the file is saved in the Tutor project root.

  3. Apply the change and restart services

    Run Tutor's configuration save command so the settings are rendered into the deployment, then restart the containers that send mail, which include the LMS and Studio. Use the Tutor local commands to confirm that the containers came back up without errors. The Tutor documentation lists the services that read these settings, so confirm that list for your release. The step is done when the containers report as running and the logs show no startup errors related to mail.

  4. Test the network path to the relay

    From inside the LMS container, open a connection to the relay host on the configured port and confirm that the TLS handshake completes if the provider requires encryption. This separates network problems, such as firewall rules or outbound port blocks in your hosting environment, from application problems. Ask your network team to confirm egress rules for the relay before you test. The step is done when the connection opens and the TLS negotiation succeeds with the provider's expected settings.

  5. Send a test message from the LMS

    Create a dedicated test learner account that uses a mailbox you control, then trigger an account activation or password reset email from the LMS. Watch the LMS logs during the send, using Tutor's log commands, for authentication or connection errors. A message that appears in the mailbox confirms that the application can reach the relay and that credentials are accepted. The step is done when the test message arrives and the logs show a successful send with no errors.

  6. Verify SPF, DKIM and DMARC records

    Ask the mail provider for the exact SPF, DKIM and DMARC records to publish for your sending domain, then add them through your DNS host. Confirm that the From address in the platform's outgoing mail uses the domain you authenticated with the provider, because mismatched domains often fail alignment checks. Use a DNS lookup tool to confirm each record is published and matches the provider's instructions. The step is done when all three records resolve and the provider confirms the domain is verified.

  7. Confirm delivery across target mailboxes

    Send test messages to mailboxes at the major providers your learners and staff use, and check both the inbox and the spam folder. Open the full message headers and confirm that SPF, DKIM and DMARC report pass for the sending domain. Record the results in your launch checklist and keep a copy of the headers as evidence. The step is done when test messages reach the inbox at each target provider with authentication results recorded.

Testing account, course and digest email delivery before launch

Before launch, run every email type Open edX sends through the same relay settings production will use, and record the result of each one. Build a test matrix with a row for account activation, password reset, enrollment confirmation, course update notices and notification digests. For each row, note the trigger, the sending service, the test recipient, the expected subject and sender address, and the pass condition. Run the tests from a staging environment that uses the production SMTP host, port, credentials and TLS settings in the Tutor configuration, not a local mail catcher, because a mail catcher cannot show whether your relay accepts the messages. Confirm the sender domain's authentication records with your mail provider before the first test, since messages that fail those checks are often rejected or filtered without any error in the platform.

When a test fails, start with the container logs for the service that sent the message, then check the relay's own delivery records. Connection and authentication failures usually appear in the logs of the LMS or the Celery worker that handles outgoing mail, while a rejected recipient or a relay refusal appears as an SMTP response code. Record the response code, the recipient domain and the timestamp, and compare them with the relay's delivery log. Bounces need a plan before launch: decide who reviews hard bounces, how a rejected address is corrected on the learner account, and how repeated soft bounces are escalated to the relay operator. Ask your relay provider to confirm its bounce and complaint notification options and how it handles suppression lists, because those behaviors vary by provider and are not set by Open edX. Repeat the full matrix after any change to credentials, TLS mode or sender address, and keep the results with your launch records.

Protecting SMTP credentials and learner data in transit

Mail delivery touches credentials, learner identities and your sender domain, so each control below guards one of those. Treat the relay password as a secret, limit who can read the Tutor configuration, require encrypted connections, keep personal data out of logs and keep the sender identity under your control.

Store relay credentials as secrets

The SMTP username and password for your relay should never sit in plain text in a committed file. Keep them in the Tutor configuration as secret values and inject them at deploy time from a secrets store your team already operates. Before launch, search your project root and version control history for the password string, and rotate it if it appears anywhere outside the secrets store. Ask your relay provider whether it supports scoped or application-specific credentials so a leaked value can be revoked without affecting other mail senders.

Restrict who can read configuration

The Tutor project root holds the settings that point Open edX at your relay, so anyone who can read it can often reuse the credentials. Limit read access on the project directory and on any server where it is checked out to the operators who run the platform. Confirm that backup archives containing the project root are encrypted and access-controlled, because a backup is a copy of the same secrets. Review this list when staff change roles.

Require TLS to the relay

Configure the SMTP connection to use TLS, either an implicit TLS port or STARTTLS with certificate verification, so credentials and message content are not sent in clear text across the network. Confirm with your relay provider which port and mode it expects, and test the connection from the Open edX container rather than from your workstation. Disabling certificate checks to get a connection working is a configuration risk to fix, not a workaround to keep.

Keep learner data out of mail logs

Mail logs, debug output and error reports can capture recipient addresses, names and message bodies that include course progress or account details. Check what the mail backend and the relay log by default, and ask the relay whether it can shorten retention or mask recipients. Set log levels for the mail component so message bodies are not written to container logs. Apply the same review to any error monitoring tool you connect, since a failed send can attach the full message to an exception.

Keep sender addresses on your domain

The From address and the envelope sender should belong to a domain your organization controls, with SPF, DKIM and DMARC records published for the relay. Mail sent from a domain you do not own is more likely to be rejected or filtered, and it can misrepresent your institution to learners. Confirm the sending domain with your DNS and mail administrators before testing, and verify the records with the relay's checks. Note that these records are set outside Tutor, so they belong in your launch checklist.

Test failure paths before launch

Send a test to a mailbox you control with a deliberately wrong password and with TLS disabled on a non-production copy, and confirm that the failure is logged without credentials or learner addresses. Then verify that the production configuration rejects an unencrypted connection. Record the test results with the date and the Tutor version so the next upgrade can repeat them. Ask your security reviewer to sign off on the captured output before it is shared outside the operations team.

Questions teams ask before configuring Open edX email

Who does SMTP configuration for Open edX and what does it cost in effort?

Your own platform team can make the Tutor configuration change, but the effort sits mostly outside the config file: procuring or confirming a relay, getting DNS records published, and testing every email type. A partner is paid for the scoped work in a written quote. The main cost drivers are whether a relay account already exists, how many sending domains and sites need configuring, who controls DNS, and how thorough the pre-launch test plan is. Ask for the quote to list each of these as a separate line so you can see which parts you already cover internally.

How long does it take to configure and verify Open edX email?

The configuration edit itself is short, but the calendar time depends on things you do not control, such as how long your mail provider takes to verify a sending domain and how long DNS changes take to propagate. Plan for the provider and DNS steps to run in parallel with the Tutor change, then leave time for a staging test that covers account activation, password reset, enrollment and a notification digest. Confirm the verification steps and any waiting periods with your relay provider before you set a launch date.

What does the work need from our side before it starts?

You need three things in place: a mail provider or relay account with SMTP credentials that can send from your domain, access to the DNS zone for that domain, and a staging Open edX environment that matches production closely enough to test real sending. Credentials should be stored as secrets in your secret management process, not written into shared files. Confirm with your provider which sending address, port and TLS mode it supports, because those values drive the Tutor settings.

Can our team configure Open edX email without outside help?

Yes, if you have an engineer who can edit the Tutor project configuration, redeploy the platform and read container logs, and someone who can publish DNS records. The steps are documented in Tutor, so the work is mainly careful verification. Outside help is most useful when you run several sites, need a deliverability review, or want an independent test plan before launch. Whichever route you take, keep a written record of the values you changed so the next upgrade does not undo them.

What goes wrong most often with Open edX email?

The most common failures are mail landing in spam, and emails that never leave the platform. Spam problems usually trace to missing or incorrect SPF, DKIM or DMARC records for the sending domain, or to a From address that does not match the authenticated domain. Silent failures usually come from wrong ports or TLS modes, credentials copied with stray spaces, or a relay that blocks the sending IP. Check container logs after every test send and confirm each record with your provider before you blame the application.

How do we test email delivery before launch?

Test each email type the platform sends, not only a single test message. In staging, trigger account activation, password reset, a course enrollment confirmation and a notification digest, then check that each message arrives, renders correctly and passes the spam checks your provider offers. Record the results and the log lines for each test. Ask your team or partner to include a check that unsubscribe and sender details are correct, since those affect how learners and mailbox providers treat the messages.

Does email configuration affect compliance or learner data?

Email configuration touches learner personal data because messages contain names, addresses and course details, and the relay provider becomes a processor of that data. Before you choose a relay, confirm where the provider stores message logs, how long it keeps them and what contract terms apply. DeployOpen prepares systems and evidence for compliance assessments, but it does not issue audit reports or certifications, so ask your independent auditor which email controls they will want to see.

How a learner email travels from Open edX to the inbox

The message starts in the LMS or Studio, which hands it to the SMTP relay you configure in Tutor. That hop should use TLS, and the relay then passes the message to the recipient's mail server. The sending domain's SPF, DKIM and DMARC records are what the recipient checks before accepting it. Your trust boundary covers the Open edX containers, the relay account and the DNS zone, so check each hop and the records before launch.

Message path from Open edX through the SMTP relay to the recipient, with DNS checks.

How DeployOpen scopes and delivers Open edX email setup

DeployOpen treats SMTP for Open edX as a scoped piece of work inside your own infrastructure, covering the mail provider, Tutor settings, DNS records and test evidence. The work is agreed in writing before it starts, so account, course and digest email behavior is known before learners depend on it.

How we scope

  • Confirm which emails learners, staff and course teams must receive, and which sender domain they come from
  • Agree the SMTP provider, host, port, TLS mode and credential ownership in the written scope
  • Record who owns DNS, mail provider accounts and secret storage, and who approves production changes

How we build

  • Set SMTP host, port, credentials and TLS values in the Tutor configuration for each environment
  • Keep SMTP secrets out of committed configuration files and verify where they are stored
  • Send test account, enrollment and digest emails from staging and check headers, links and spam scoring

How we hand over

  • Deliver a runbook covering configuration keys, secret rotation steps and the test emails to repeat after changes
  • Document sender domain records and the owner who renews them, so delivery does not lapse unnoticed
  • Walk your operations team through the test results and the logs to check when a message does not arrive

How we support

  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts
  • Ongoing support, upgrades and continuous testing are available as a retainer after launch
  • Confirm with your mail provider which sending limits, TLS modes and authentication methods apply to your account

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.