Why configuring email delivery for Decidim comes before launch
Configure SMTP before any participant arrives, because a public participation platform that cannot send email fails at the first step. Registration confirmations, password resets, notifications and newsletters all depend on outgoing mail. If the mail path is missing or broken, people cannot confirm accounts, cannot reset passwords, and do not learn that a process, proposal or vote has changed. Each of those failures lands on a consultation at the moment it matters most, and the organization often discovers the gap only when residents start writing in to ask why they never received a code.
Decidim sends several kinds of messages: account confirmation and registration, notifications about activity in spaces people follow, newsletters to subscribed participants, and messages that deliver exports or other files produced by background work. Production setups configure SMTP as part of the installation, alongside ActiveJob for background processing, file storage and the other services a live instance needs. The platform is built on Ruby on Rails, so mail is generated and queued through the same job system that runs other deferred work. That means a mail problem can sit in a queue rather than raise an obvious error on screen, so the team needs to know which backend handles jobs and how its queue is watched.
Before launch, confirm with your mail provider which sender domain, SPF, DKIM and DMARC records you will use, and who in your organization owns the sending account. Then send a registration, a notification and a newsletter test to real external inboxes and record the results. Ask your implementer or internal team to show where failed deliveries and queued jobs are visible. Check the current Decidim installation guidance for the exact SMTP settings for your version, since configuration keys differ between releases.
Global SMTP or per-organization SMTP: which fits your install
A Decidim installation can send mail through one SMTP configuration shared by every organization on the platform, or each organization can carry its own sending settings. In the global model, all platform messages leave through the same mail server and use the same sender identity, which keeps configuration in one place. In the per-organization model, each organization supplies its own server, credentials and sender address, so its messages reach participants under its own name and reputation. Confirm in the current installation and multi-organization docs how your release exposes each option, because the admin screens and environment variables differ between versions.
- Global configuration: one set of SMTP values covers the whole installation, and every organization inherits it unless overridden.
- Per-organization configuration: each organization enters its own server, port, credentials and from address in its settings.
- Mixed setup: a shared default with overrides for organizations that need their own sending domain is common, but confirm that your version supports this pattern.
- Sender identity: global mail usually shows one platform name, while per-organization mail shows the organization's name.
- Fallback behavior: test what happens when an organization has no override, so mail does not fail silently.
Before choosing, check whether the version you plan to run supports per-organization SMTP, and write down which model you are selecting.
The choice mostly depends on two questions: how many organizations share the installation, and whether each one needs its own sending domain. A single organization on a dedicated install rarely benefits from per-organization settings, since there is only one sender identity to manage. A platform that hosts several municipalities or agencies usually needs each to appear as itself, which points toward separate settings. Illustrative example: a regional platform hosting five councils, each with its own domain, would likely need five sender identities even if one mail provider carries the traffic.
- Single organization: a global configuration is usually sufficient and easier to audit.
- Shared domain across organizations: a global configuration with one sender identity may be acceptable if participants recognize the platform brand.
- Separate domains per organization: per-organization settings let each sender align with its own domain authentication records.
- Participant expectations: public bodies often need messages to come from a recognizable, owned address.
- Volume differences: a large organization sending newsletters may affect the reputation of a shared sender if they share one configuration.
Ask your legal, communications and IT teams which sender names and domains each organization is allowed to use before you configure anything.
The from address and display name are what participants see first, and they affect whether messages are trusted and read. Under a global model, the address usually belongs to the platform operator, and organizations are represented only inside the message body or subject. Under a per-organization model, each organization controls its display name and address, but it also inherits responsibility for the domain records that make those messages authentic. Decide these values with the people who own each brand, not with the people who configure the server.
- Display name: choose wording that identifies the organization, not just a technical sender.
- From address: use a mailbox on a domain the organization controls, not a generic personal address.
- Reply-to handling: decide whether replies go to a monitored inbox, since participants often reply to notifications.
- Template wording: check whether system messages name the correct organization when several share a platform.
- Domain authentication records: confirm with the domain owner that the required records exist for every sending domain.
Confirm each sender address and reply path in writing, and send a test message from every organization before participants receive mail.
Deliverability depends on the mail server, its credentials, its sending reputation and the domain records that authenticate the messages. In a global model, one team usually owns all of these, which simplifies monitoring but concentrates risk: a problem with one organization's list or content can affect every other organization. In a per-organization model, each organization or its delegated IT team owns its reputation, which isolates problems but requires more coordination. Settle who receives bounce notices, complaints and provider alerts before launch, because unowned alerts tend to go unread.
- Shared reputation risk: under a global setup, one heavy sender can affect mail from every organization.
- Isolated reputation: separate sending settings keep organizations' histories apart.
- Bounce and complaint handling: name a person or mailbox for each organization's delivery alerts.
- Provider contracts: check who signs the mail provider agreement and who pays for sending volume.
- Ongoing monitoring: decide who reviews delivery reports and how often.
Ask the mail provider which authentication and feedback mechanisms it supports for each sending domain, then confirm the owner of every alert channel.
Email settings are security-relevant because they control where account messages go and which server carries participant data. In a global model, only platform administrators can usually change SMTP values, which keeps credentials central but makes organizations wait on the platform team for changes. In a per-organization model, organization administrators may be able to change their own settings, which speeds up updates but needs clear limits on credential storage and access. Define who may view, rotate and replace SMTP credentials, and record the decision in your access policy.
- Platform administrators: typically hold control over the global configuration and any fallback values.
- Organization administrators: may need to update sender details, but review whether they should see or replace credentials.
- Credential rotation: agree who rotates passwords or keys and how the change is tested.
- Change records: keep a log of who changed a sending server, sender address or domain.
- Separation of duties: consider keeping credential changes with a different person than newsletter or content approval.
Review admin roles in the installation, confirm which settings each role can change, and test that a non-platform administrator cannot view stored credentials.
SMTP configuration options and when each fits
This table compares the three mail paths an organization usually considers for Decidim: a self-managed relay, a transactional email provider reached over SMTP, and an existing organizational mail server. Read each row as a decision factor, then match the column to your deliverability, logging, cost and data location requirements. The main takeaway is that the choice is mostly about who owns sending reputation and where message logs live, not about the Decidim settings themselves.
| Factor | Self-managed mail relay | Transactional email provider over SMTP | Existing organizational mail server |
|---|---|---|---|
| When it fits | Your team already runs mail infrastructure and wants full control of routing and logs | Your team wants managed sending, bounce handling and dashboards without running a relay | Your organization requires that participant emails leave through its own mail system |
| Deliverability management | Your team owns SPF, DKIM, DMARC, IP reputation and blocklist response | The provider supplies sending infrastructure, but your domain records and reputation still need setup | Reputation follows the organization's existing domain and mail policies, which may limit bulk sending |
| Logging and audit | Logs stay in your systems, so you must build retention and search yourself | Delivery events are visible in the provider's console, so confirm retention and export options | Logs follow organizational mail retention rules, which may or may not cover notification traffic |
| Cost model | Mostly staff time and infrastructure, recurring with maintenance | Usually usage-based fees set by the provider, so confirm volume pricing before launch | Often absorbed by existing licences, but confirm whether bulk or newsletter volume is permitted |
| Data location | Message content and metadata stay in infrastructure you control | Message content passes through the provider, so review its data processing terms and regions | Data stays within the organization's mail environment, subject to its own hosting choices |
| Rate limits and volume | Limited by the relay you operate, so size it for newsletter and notification peaks | Plan limits and sending quotas are set by the provider, so confirm them for your volume | Often tuned for staff mail, so bulk notification bursts may be throttled or flagged |
| Sender address and reply-to | Use a dedicated sending subdomain and a monitored reply-to mailbox you control | Verify the sending domain with the provider and keep reply-to on a mailbox staff actually read | Use an address approved by mail administrators, and confirm reply-to routing to the participation team |
| Configuration keys | Confirm the SMTP keys and TLS options in the Decidim installation docs for your version | Confirm authentication and port settings in both the provider and Decidim installation docs | Confirm with your mail administrators, then check the Decidim installation docs for your version |
How to set up SMTP and sender addresses in Decidim
This sequence takes a Decidim installation from an unconfigured mail setup to one that sends registration, notification and newsletter email from the correct sender addresses and links back to the correct host. Each step ends with a check you can run before participants depend on the platform.
Confirm the Decidim version and installation path
Record the Decidim version you run and whether it is deployed as a manual Rails application or with Docker, since the location of environment variables and the restart procedure depend on that choice. Current supported lines are 0.32.x and 0.31.x, and older lines do not receive security updates, so confirm your version against the release list before you change mail settings. Check that the Ruby and Node versions on the host match the requirements for your release. The step is done when you can name the version, the install path and the Ruby and Node versions in your change record.
Prepare SPF, DKIM and DMARC for the sending domain
Work with the team that controls DNS for the sending domain to publish an SPF record listing the servers or relay your SMTP provider uses, and to enable DKIM signing with the key records your provider issues. Add a DMARC policy, starting with a monitoring policy and a reporting address that someone reads. Ask your mail provider to confirm exactly which records it requires, because the values come from the provider, not from Decidim. The step is done when a lookup of the domain returns the SPF, DKIM and DMARC records and your provider reports the domain as verified.
Set SMTP credentials and TLS in the environment
Store the SMTP host, port, username, password and TLS mode in the environment or secrets store used by your deployment, not in the repository. Use the mail settings documented for your Decidim release and confirm that the connection requires encryption in transit. Restrict who can read these values, because the SMTP password lets anyone send email as your platform. The step is done when the application starts with the new settings and a connection test from the application host to the SMTP server completes an authenticated, encrypted session.
Confirm ActiveJob is processing mail jobs
Decidim sends most email through background jobs, so confirm that the ActiveJob backend your installation uses is running and picking up work. Check that the worker process is alive, that queued mail jobs move to completed, and that failed jobs are visible to an operator. A mail job that sits in the queue will look like a delivery problem to participants, so confirm this before testing the user-facing flows. The step is done when a test job queued from the application runs and its result appears in your job monitoring.
Set default and per-organization sender addresses
Set the default sender name and address in the global configuration, then set the sender for each organization if your installation hosts more than one. Use addresses on the domain you prepared in the DNS step, and confirm with the organization owners which reply-to address participants should use. Changing a sender address after launch affects how participants recognize messages, so agree the values before go-live. The step is done when the configuration shows the intended sender for each organization and no organization falls back to a placeholder address.
Send a test registration email and inspect it
Register a test account on a non-production or controlled organization and wait for the confirmation email. Inspect the sender name and address, the subject line, the reply-to address and the authentication results in the message headers. Confirm that the links in the message point to the host name of the organization, not to localhost or an internal address, because wrong host settings are a common cause of broken confirmation links. The step is done when the email arrives in an inbox, passes SPF and DKIM checks, and every link resolves to the correct host.
Test notification and newsletter delivery
Trigger one notification email, such as a comment reply or a followed process update, and send a test newsletter to a small internal list. Check that each message uses the expected sender for its organization, that unsubscribe and notification preference links work, and that the newsletter is not marked as spam by the major inbox providers you expect your participants to use. Record any messages that fail or land in spam and resolve them before opening the platform. The step is done when each message type has been received, inspected and signed off by the organization that owns it.
Monitor delivery and record the configuration
Set up monitoring for bounces, failed jobs and provider-side rejection reports, and assign an owner who reviews them. Record the final SMTP settings (without secrets), sender addresses, DNS records and test results in your operations documentation so the next upgrade or hosting change can be checked against them. Confirm the DMARC reports are being received and read. The step is done when the monitoring alerts reach a named owner and the configuration record is stored where the operations team can find it.
How a Decidim email moves from action to inbox
An email starts when a participant action or a scheduled task runs inside the Decidim Rails application, which places a mail job on the ActiveJob queue. A background worker picks the job up and hands the message to your SMTP relay or mail provider, which then passes it to the recipient's mail server. The Decidim host and the provider are separate trust boundaries, and the handoff to the worker is where failures stay silent: if the worker stops, the job waits in the queue and nothing in the web interface reports it. Check the queue and the provider's delivery logs, not only the sending action.
Mail path from a Decidim action through the job queue and SMTP provider to the recipient.
Testing registration, notification and newsletter delivery
Test each of the three mail types separately before launch: registration and confirmation emails, participant notifications for spaces a user follows, and newsletters sent from the admin panel. Each one takes a different path through Decidim and fails in different ways, so a single test message to your own inbox does not prove delivery. Create a test participant, register with a new address, confirm the account, follow a process or assembly, trigger a notification by publishing a update in that space, and send a newsletter to a small list of internal addresses. Record the result for each step so the team can repeat the same run after every SMTP change or upgrade.
For each message, check the headers and content, not only whether it arrived. Confirm that the From address and display name match the sender configured for that organization, that the Reply-To behavior is what your communications team expects, and that links point to the correct host, especially if you run several organizations or secondary hosts on one installation. Open confirmation and unsubscribe links from a clean browser session. Send the same test set to several mail providers, such as a public webmail service, a corporate tenant and a provider with strict authentication checks, because SPF, DKIM and DMARC results differ by receiver. Confirm with your mail administrator which records are in place for the sending domain before the first live run.
Confirm that failures are visible. Background job failures can stop mail without any message in the browser, so check the job queue or worker logs after you deliberately break a test, for example with a wrong SMTP password in a staging copy. Ask your team to confirm which dashboard, log or alert shows failed mail jobs, who receives the alert, and how a failed newsletter is retried or reported. Staging must use disabled or sandboxed SMTP so that test data and staging copies of participant records never reach real people. Confirm this in the staging environment settings before any import, and note that the answer for each environment should be written into the runbook.
Security and operational risks in Decidim email
Email is one of the few Decidim functions that reaches outside the platform, so mistakes here affect participants directly. The risks below connect credentials, sending infrastructure, mail content and queue health, and each one needs a named owner before participants receive their first message.
SMTP credentials in configuration
The SMTP username and password let anyone who reads them send mail as your organization. Keep them in environment variables or a secrets manager, never in committed files, and restrict who can read the production environment. Rotate the credential when staff with server access leave. Owner: the platform operator, with the security team approving the rotation schedule.
Open relay exposure
If the mail provider or relay accepts messages from any sender, spammers can use your account to send bulk mail under your domain, which can get the whole domain blocked. Confirm that the relay requires authentication and only accepts connections from your application network. Owner: the infrastructure team, with the provider's configuration reviewed on each change.
Spoofing without SPF, DKIM and DMARC
Without SPF, DKIM and DMARC records for the sending domain, receiving servers cannot confirm that a message from your organization is genuine, so attackers can forge password reset or verification emails. Publish all three records, align the From address with the signing domain, and check the DMARC reports for unexpected senders. Owner: the domain administrator, who controls DNS.
Personal data in mail logs
Registration, verification and notification emails contain names, addresses and sometimes links that grant account access. Application logs and the mail provider may keep these messages for their own retention periods, which may differ from your privacy notice. Ask the provider for its retention and log settings in writing, and mask recipient addresses in application logs where the tooling allows it. Owner: the data protection officer, with the platform team implementing the settings.
Silent queue failures
Emails are sent by background jobs, so a stopped worker or a full queue can stop all notifications without any visible error on the public site. Monitor the job queue depth and failed job count, and alert when mail jobs stop completing. Test the path after every upgrade and infrastructure change. Owner: the platform operator, who receives the alerts.
Manual installation docsStaging sending to real participants
A staging copy with production data and a working SMTP setting can email real participants with test content, newsletters or changed notifications. Disable outgoing mail on staging or route it to an internal sink, and confirm that the setting is off before any production data is loaded. Owner: the release manager, who signs off each staging refresh.
Questions buyers ask about Decidim email setup
Can our team configure SMTP for Decidim on its own?
Yes, a team with Rails and Linux experience can usually set SMTP for a single Decidim installation without outside help, because the setting lives in the application's environment configuration and the mail provider supplies the credentials. The harder part is the surrounding work: confirming that the sending domain passes authentication checks, that messages reach inboxes, and that every notification type actually sends. Decidim production setups list SMTP among the components to configure, so it belongs in the launch plan rather than being left as a last-minute task. Ask whether your team has done mail deliverability work before, and whether anyone owns the domain records.
What drives the effort of an email setup?
Four factors move the effort most: the number of organizations sending mail, the mail provider you choose, how your DNS and mail policies are already managed, and how thoroughly you test. One installation with one sender identity is a small job. Several organizations, each with its own sender address or SMTP account, multiplies the configuration and the testing. A provider that needs new domain verification, or a corporate mail policy that requires security review of new senders, adds calendar time that is outside the technical work. Testing scope matters too: registration emails, notifications, and newsletters each need their own checks. Ask a provider to list which of these four factors it assumed.
What do we need to provide for an email setup engagement?
The work depends on access that only your organization can grant. Typically this means DNS access to add or change the records that prove the sending domain is authorized, accounts with your chosen mail provider or an internal SMTP relay, and test mailboxes across the providers your participants use. You also need a named person to sign off on the sender name, the reply-to address, and the wording of automated messages, since those represent your organization to the public. Ask for a written list of these requirements before work starts, with an owner and a date for each item.
How long does email setup take?
Duration depends on scope, so the honest answer is that a single installation with an existing mail provider and cooperative DNS owners takes far less time than several organizations with new domains and a mail policy review. The longest waits are usually external: DNS changes propagating, providers verifying domains, and internal approvals. Ask for a plan that separates engineering time from waiting time, and that names which steps depend on your staff. Treat any single figure, including one from a vendor, as conditional on the scope you agreed.
Is per-organization SMTP worth the extra effort?
It is worth it when each organization must send from its own domain, has its own legal or communication obligations, or needs separate reporting and suppression lists. A shared sender is simpler to run and easier to monitor, but it ties every organization's delivery reputation to the same domain. Per-organization SMTP adds one set of credentials, DNS records, and tests for each organization, and each one must be rotated and checked. Decidim supports per-organization configuration in multi-organization installs, so the decision is about governance and reputation, not capability. Make the choice with the organizations themselves, and record it in the sender identity sign-off.
What recurs after the email setup goes live?
Email is an ongoing service, not a one-time configuration. Recurring work includes watching bounce and failure rates, responding to blocked or deferred messages, rotating SMTP credentials on a schedule your security policy sets, and updating records when you change providers or add organizations. Background job queues must also be monitored, because a stopped queue can stop notifications silently. Decidim's own upgrades can change mailer templates, so each upgrade should include a repeat of the core message tests. Ask any provider whether monitoring and credential rotation are included in the quote or offered as a separate retainer.
What should we check on the engineering side before launch?
Check the environment configuration for the SMTP host, port, authentication method, and transport encryption, then send a test message for each path: account registration, a notification triggered by a real action, and a newsletter sent to a small internal list. Confirm that the sender address matches a domain you control and that authentication records are in place for it. Review where credentials are stored, and confirm that staging environments disable outbound mail so that test data never reaches participants. Document the checks so the same list runs after every upgrade and provider change.
How DeployOpen scopes and delivers Decidim email configuration
DeployOpen plans and delivers Decidim email configuration as a fixed-scope engagement inside your own infrastructure. The work covers SMTP setup, sender identities, per-organization settings where you run several organizations, and written test evidence for registration, notification and newsletter mail.
How we scope
- Inventory which mail flows you need: registration, notifications, newsletters and admin messages
- Confirm your SMTP provider, sending domains and whether each organization needs its own sender
- Agree in writing which Decidim installation, environments and test cases are in scope
- Record who approves DNS changes and who holds SMTP credentials on your side
How we build
- Configure global SMTP settings and any per-organization overrides in your Decidim deployment
- Set sender addresses and reply-to values that match the domains you control
- Confirm background job processing so queued messages are sent and failures are visible
- Test registration, notification and newsletter delivery against a non-production mailbox
How we hand over
- Provide a written record of SMTP settings, sender addresses and where secrets are stored
- Deliver test results showing each mail flow, its recipient and its outcome
- Document how to rotate SMTP credentials and add a new organization's sender
- Walk your operations team through checking delivery logs and bounce handling
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts
- Ongoing support, upgrades and continuous testing are available as a retainer
- Retesting mail flows after Decidim upgrades or SMTP provider changes can be included in the written scope
- Ask for a quote based on your written scope, since DeployOpen does not publish a price list

