Verifying residence with Decidim code by postal letter: when teams need it
A city or organization that must confirm a participant lives or works at a given address before that person votes or signs needs a method that proves the address, not just an inbox or a phone number. Decidim's postal code approach answers that need by mailing a one-time code to the address on record, and the participant enters that code on the platform to show they can receive mail there. Teams usually reach for this when the question is residence itself, such as a participatory budget limited to people in a district, or a signature drive that must come from households in a municipality.
Postal letters fit better than email, SMS or a census file in a few specific situations. Email proves control of an inbox, which many people hold outside their home area. SMS proves control of a phone number, which can also be detached from a place. A census file proves that a name appears on a list, but it does not prove that the person still lives there or that a code reached them. A letter costs more per participant and takes longer to arrive, so it is worth the trade-off only where the address itself is the requirement. Ask whether the rule is about the address, and whether the delay and cost are acceptable for the process timeline.
The availability and behavior of this method depend on the verification workflow configured for your organization, so do not assume it is present in your install. The researched material confirms that Decidim includes flexible identity verification and authorization systems that can restrict actions such as voting or signing. It does not confirm the postal letter workflow details, including how codes are generated, how long they stay valid, or which release ships them. Confirm those points against the release you run, using the Decidim releases page, and test the full path with a sample address before any process opens.
How the postal code letter flow works in Decidim
The participant starts the verification from their account and submits the details the workflow asks for to show that they live or work at an address. They then wait for a letter containing a code. When it arrives, they return to Decidim and enter the code to complete authorization. Until that step is done, the account stays unverified and restricted actions remain blocked.
- Request: The participant submits the requested details and sees a confirmation that a code is on its way.
- Wait: The participant receives a letter with a code. Confirm in your configuration how long a code stays valid and whether a participant can request a new one.
- Enter the code: The participant types the code into the verification page exactly as printed, and the system confirms or rejects it.
- Data held: The participant's own account holds the address details they submitted and the outcome of the verification.
Check the messages a participant sees for wrong, expired or missing codes before you publish any instructions.
The administrator controls who receives a letter and when. Depending on your Decidim version and how the workflow is configured, the administrator reviews pending requests, exports what the print service needs, and records which letters have gone out. The administrator is also the person who answers participants when a letter is late or lost.
- Queue: Review pending requests in the admin area and confirm each one relates to an address your organization is authorized to serve.
- Generate codes: Confirm how codes are created, stored and linked to each request in your version, and which staff roles can see them.
- Export for print: Export only the fields the print service needs, such as name and postal address, and leave out anything else.
- Mark as sent: Record each letter as sent so the queue reflects reality and staff can see what is outstanding. Confirm the exact action and what it does to the code's status.
- Access and logs: Limit the role to staff who handle these requests, and confirm whether exports and status changes are logged.
Check these admin screens in a staging copy of your version before the process opens, including what happens when a request is resent.
The print or mail service receives a file of names, addresses and codes, prints the letters and posts them. It usually operates outside Decidim and outside your infrastructure, so the data it receives should be the minimum needed for delivery. Ask what it keeps, for how long and where it stores files, because these answers shape your data protection position.
- Transfer: Agree on a transfer method for the file and confirm it is encrypted in transit and limited to named people.
- Printing: Confirm the vendor prints each code on the correct letter and checks that names and addresses match the file.
- Posting and returns: Ask how undeliverable letters are reported back to you and what the vendor does with them.
- Retention: Ask for written deletion of the file after printing and posting, with a trigger or date you can verify.
- Contract: Confirm the vendor processes personal data only on your documented instructions, and have your legal team review the terms.
Check the vendor's written retention and deletion terms, and run a test mailing, before you rely on the service for a live process.
Address data leaves Decidim only when letters go to the print vendor
The flow starts when a participant requests a letter in Decidim and the request is recorded on the organization's own instance. An administrator then exports the pending requests or triggers printing, and this hand-off is the trust boundary where address data leaves the instance. The print vendor mails the letter, and the participant enters the code in Decidim, which marks the authorization. Check what the vendor retains and how exports are stored.
Shows the hand-offs from request to authorization and where address data leaves Decidim.
Configuration options and when each fits
This table compares the choices an implementer makes for a postal code workflow: where it runs, who prints and mails letters, how addresses are kept, code expiry and resend limits, and how letters are marked sent. Read each row as a decision, then check the trade-off against your own mail, privacy and staffing constraints before you settle on a setup.
| Decision | Option | Trade-off | When it fits |
|---|---|---|---|
| Where the workflow runs | Inside Decidim as a custom authorization handler | Keeps one audit trail and one admin view, but requires custom Ruby code to maintain through upgrades | Your team can own a small Rails extension and expects to upgrade Decidim regularly |
| Where the workflow runs | Outside Decidim, with a staff-run batch process | Avoids custom code in the platform, but results must be re-keyed or imported, which adds error risk | Volumes are small and a single administrator can manage the letter run by hand |
| Who prints and mails | Your own staff or print room | Direct control over stock, envelopes and timing, but staff time rises with each mailing wave | Your organization already runs bulk mail and can absorb the handling work |
| Who prints and mails | External print and mail provider | Handles production at scale, but the provider receives names and addresses, so contracts and data terms must be reviewed | You need volume capacity and a provider can meet your data protection requirements in writing |
| Address storage | Keep the full address in the platform until the letter is sent | Simplifies resends and reconciliation, but stores personal data that your retention policy must cover | Participants must be able to correct an address before a code is mailed |
| Address storage | Discard or minimize the address after the letter is produced | Reduces stored personal data, but a failed delivery needs a fresh address request | Your privacy review favors minimization and you can accept re-collection for returned letters |
| Code expiry | Short expiry window set by your team | Limits misuse of a code that arrives late, but participants who receive mail slowly may need to request another | Postal delays in your region are predictable and you can explain the window in the letter |
| Resend limits | Capped resends per address or per participant | Blocks abuse of the letter channel and controls postage cost, but may frustrate a genuine participant who never received the first letter | Postage is a real expense for your organization and you can offer a support contact for exceptions |
| Marking letters sent | Manual marking by staff after the mailing run | Simple, but a missed or duplicate mark leads to wrong counts and possible double mailing | Small batches where one person can confirm each run |
| Marking letters sent | Batch marking from a printed file list | Faster for large runs, but depends on a clean export and a reconciliation step after dispatch | Large mailings where you can check counts against the print provider's report |
Setting up postal code verification step by step
This sequence takes a Decidim team from confirming that postal code verification fits their release and workflow to a tested, auditable letter run that is ready before a participatory process opens. Each step ends with a check so that problems surface while changes are still cheap.
Confirm the release and authorization workflow
Start by checking which Decidim minor version your platform runs and whether the postal code verification workflow is available and maintained for that version. Decidim supports only the last two minor versions with security updates, currently 0.32.x and 0.31.x, so confirm this against the release notes and the Decidim SECURITY.md file before you commit. Then decide which actions need the verification (voting, signing, proposing) and document the workflow in writing. Check: a short written spec names the release, the workflow, and the actions it gates, and the platform team has signed off on it.
Define the verification data fields
List the fields the letter process needs, such as the address line, postal code, town, and the record of the code that was sent, and mark which are required. Keep only what the verification needs to confirm residence or workplace, because every stored field becomes part of your data protection scope and retention rules. Agree with the privacy and legal owners how long address and code records are kept. Check: a field inventory exists, each field has a stated purpose, and the privacy owner has approved it.
Build or configure the request and code handling
Configure or build the step where a participant enters their address, receives a one-time code, and enters it to complete verification. Confirm how codes are generated, how long they remain valid, how many attempts are allowed, and how a failed or expired code is handled, and confirm the exact behavior of your Decidim version rather than assuming it. Store codes in a form that does not reveal them to administrators. Check: a test account can request a code, enter it successfully, and is blocked correctly after repeated failures.
Connect the printing and mailing process
Agree with your print and mail provider how the export of pending letters will reach them, in what file format, and how they return proof of dispatch. Decide whether letters are generated from Decidim or from a separate system, and who owns the file transfer. Ask the provider to confirm their delivery times, costs per letter, and handling of returned mail in writing, because these drive cost and the timing of the process. Check: a test batch is produced, sent to the provider, and returned with dispatch status, and the team can match each letter to a request.
Add the mark-as-sent step
Add a step where staff mark each letter as sent once the provider confirms dispatch, so that a code is only treated as live after the letter has left. Restrict this action to a defined administrator role and record who marked each letter and when. Decide how to handle letters that are returned or never confirmed, and document the procedure. Check: a letter moves from pending to sent only through the defined action, and the status is visible to the operations team.
Test with staff addresses
Run a full cycle using addresses that belong to your own staff or to consenting testers. Request a code, print a test letter, mark it sent, enter the code, and confirm that the participant is verified and can act in the components the workflow controls. Repeat with an expired code, a wrong code, and a duplicate address to see how the platform responds. Check: every path in the test plan produces the expected result, and any defects are fixed and retested.
Check the audit trail before opening
Review the logs for the full test cycle and confirm they record each request, letter batch, mark-as-sent action, and verification outcome with the acting user and timestamp, without exposing codes or unnecessary address data. Confirm the logs are kept in the place your retention policy requires and that administrators can answer a dispute about a specific participant. Only open the process to the public once this review passes. Check: a reviewer can trace one test participant from request to verification using the logs alone, and the review is signed off.
Protecting addresses and codes during postal verification
Postal verification puts home addresses and one-time codes on paper and in exports, so the risks sit in data handling as much as in the code check itself. The cards below cover what to limit, who can reach it, how codes are protected, and what must be kept or deleted, along with the Decidim patch policy your team depends on.
Minimize address data collected
Collect only the fields needed to print and send a letter with a code, and avoid storing extra address history or free-text notes. Decide before launch which address fields the letter template actually uses, and confirm with your legal team whether a residence claim needs the full address or only a locality. Review the authorization form in a test environment to check that no unneeded field is saved to the participant record.
Restrict access to print exports
Letter exports contain names, addresses and live codes, so they are the highest-risk file in the workflow. Limit who can generate and download them to a named group of administrators, and set a rule for where exports are stored, how long they stay there, and how they are destroyed after the print run. Confirm with your Decidim administrators how export access is granted in your version and whether downloads are logged.
Protect codes from brute force
A short numeric code on a letter can be guessed if the verification form allows unlimited attempts. Ask your implementer to confirm how many failed attempts are allowed, whether the code locks after repeated failures, and how long an issued code remains valid. Test these limits directly, because a code that never expires remains useful to anyone who later finds the letter.
Keep addresses out of logs
Application logs, error reports and background job records can capture addresses or codes if the custom handler writes them out during debugging. Review what is logged during a test run, mask or omit address and code values in any custom code, and restrict access to log storage. Make this check part of the acceptance tests so that a later change cannot reintroduce the leak.
Set retention for letter records
Letter records link a person, an address and a verification event, so they need a defined retention period and a deletion method. Document what is kept after verification (for example, a confirmation flag without the address), when print files are purged, and who approves deletion. Your privacy and compliance review should confirm these periods, since the right answer depends on your jurisdiction and the process rules you publish.
Plan around Decidim security updates
Security fixes only reach you if you run a supported release, and the Decidim project supports only the last two minor versions until version 1.0. Decidim gives implementers a grace period of 2 months to apply patches for standard vulnerabilities and 4 months for critical ones before details are disclosed. Record your running version, subscribe to release notices, and report any suspected flaw in the letter workflow to security@decidim.org.
Decidim security policyWhat to confirm about Decidim postal verification before committing
Before you commit to postal code verification, confirm which parts already exist in the Decidim release you plan to run and which parts you would build yourself. The supplied facts confirm that Decidim includes flexible identity verification and authorization systems, but they do not describe how letters are requested, printed, sent or marked as sent. Treat that gap as a finding to close, not an assumption to carry into the project plan. Ask the Decidim maintainers or the implementation team whether the authorization workflow you need ships in your target version, and ask for the exact module or handler names. Then review your own custom handler, if one is planned, to see which steps it covers: generating the code, storing it, linking it to a participant and recording the sending event. Anything not covered by those two sources belongs on the build list with an owner.
The version window also shapes the decision. Decidim currently supports only the last two minor versions with security updates, which means 0.32.x and 0.31.x at the time of writing, and versions 0.30.x and earlier receive no support. Confirm which of those branches your authorization workflow and print vendor integration will target, and plan for the patch cadence that follows. Upgrades move one minor version at a time, so a custom postal handler built against 0.31 will need its own upgrade pass before you reach 0.32, and each release's upgrade instructions and database backup step must be followed. Read the Updating Decidim guide before you agree on scope. Ask your partner to price the upgrade work for the custom handler as a separate line, so the cost of staying on a supported branch is visible from the start.
Limits to check in your environment
Postal code verification depends on features, vendors and people that differ between organizations and releases. The questions below are the ones to settle in writing before a process opens, since each one changes scope, cost or timing.
Postal code support in your release
Confirm that the Decidim version you run includes postal code letter authorization and check how it behaves on your installed version. Ask whether the feature needs custom code, a community module or configuration changes, and whether it is covered by the security support window for your branch. Test a full cycle on staging, from request to code entry, before any residents receive a letter.
Decidim releasesPrint and mail vendor compliance
Letters carry a personal code tied to an address, so the print and mail vendor handles personal data. Ask who signs the data processing terms, where letters are printed, how address files are transferred and deleted, and what the vendor logs. Confirm that the vendor's terms match your privacy obligations and that a contract exists before the first file is shared.
Delivery time for letters
Residents need enough time to receive a letter and enter the code before the window closes. Ask the postal operator or vendor for typical delivery times in your area, how returned or undeliverable letters are reported, and whether a reissue path exists. Build the deadline for the participation window around the slowest delivery you expect, not the average.
Cost per letter
Printing, paper, envelopes, postage and any reissues are recurring costs that scale with the number of addresses in each mailing. Ask for a per-letter quote that lists each component, whether setup fees apply, and how reissues are billed. Compare that total with the expected turnout and the value of the process before choosing postal verification over other methods.
Legal basis for address data
Address lists used for letters must have a clear legal basis under the rules that apply to your organization, and that basis should cover both the source of the data and its use for this purpose. Ask your data protection officer whether the addresses can be used, how long they can be kept, and whether residents must be told. Document the answer before importing any file.
Staff workload during a busy vote
Requests, print runs, mailing batches, marking letters as sent and answering residents who did not receive a code all fall on named staff. Ask who owns each step, how many people can work in parallel, and what happens if a batch fails halfway. Plan the staffing around the peak days of the process, not the quiet period before launch.
Questions buyers ask about postal code verification in Decidim
What does postal code verification cost in Decidim?
Cost comes from the people and the paper, not from the Decidim code itself, which is free and licensed under the AGPL-3.0. The main cost components are the implementation work to configure the postal letter flow, the printing and postage for each letter, staff time to review requests and mark letters as sent, and any work to connect the flow to a census or address source. Implementation is a one-time cost, while printing, postage and staff time recur with every verification campaign. When requesting a quote, ask the partner to separate these components, to state which items depend on your volume, and to list what your own team must review. Confirm printing and postage rates with your local print provider and postal service.
How long does postal letter setup take in Decidim?
Duration depends on how much of the flow is already in place and how many decisions your organization still has to make. The work usually starts with agreeing the verification rules, the address data you will use, and the letter content, then configuring the feature, testing the request and sending steps on a staging environment, and rehearsing the printing process with a small batch. If your instance is not yet installed, add the time needed for the installation and any upgrade to a supported version, such as 0.32.x or 0.31.x. A fixed-scope agreement sets the timeline in writing before work starts, so ask for the planned stages and the dependencies your team must clear, such as print vendor onboarding or legal sign-off on the letter text.
What does the organization need to provide for a postal letter flow?
The organization provides the decisions, the data and the operational people. You need a clear definition of which addresses qualify, the postal code rules that apply, and an approved letter template in every language your participants use. You also need a print and mailing provider that can handle your volume and a named person who reviews requests and marks letters as sent. Plan for the data protection side as well, because postal addresses are personal data. Confirm with your data protection officer how long requests and address data may be kept, who can view them, and how they are deleted. Finally, provide access to a staging environment so the flow can be tested before real participants receive letters.
Can our own staff run postal letter verification without a partner?
Yes, if your team has Rails and PostgreSQL skills and someone who can operate the Decidim instance, the configuration and the printing workflow are within reach of a capable internal team. The harder parts are usually not the code. They are testing the request and sending steps, handling upgrades that change database structures, and keeping the process running during a busy campaign. Decidim's update guide asks you to move one minor version at a time and to back up the database first, so an internal team needs a repeatable upgrade routine. Many organizations split the work: an internal owner runs the day-to-day process while a partner handles the initial build, the testing or the upgrade. Decide which parts you want to keep in-house before you request a quote.
How does postal verification differ from a built-in method?
Decidim includes flexible identity verification and authorization systems, so built-in methods are configured through the admin interface and the existing authorization workflow. A custom handler is code that you write and maintain to connect Decidim to a source such as a city census or membership database. Postal verification sits between these: the request and letter steps are operational work, and the link between the code entered and the participant's record must still be built and tested. Built-in options need less development but may not match your residence rules. A custom handler matches your rules exactly, but it adds code to review, test and carry through every upgrade. Ask the partner which parts are configuration and which need development, and what each option means for maintenance.
What operational risks should we check before sending letters?
The most common risks are operational rather than technical. Letters may be sent to the wrong address, delivered late, or sent twice, and a participant may request a code that is never mailed. Check how the system records a letter as sent, because a letter marked sent but not printed creates a gap that is hard to see later. Verify that only authorized staff can export or print address data, and that logs show who handled each batch. Rehearse the whole cycle on a small test batch, including returned or undeliverable letters. Also agree how participants who do not receive a letter can get help, so the support desk is not left guessing during a live process.
What should we confirm about data collection for postal verification?
Start by listing every field the flow collects, stores and exports, and remove any field that the verification does not need. Confirm the legal basis for processing addresses with your data protection officer and document how long request records are kept after a letter is sent. Restrict access to address data by role, and make sure exports are logged and stored in a controlled location. Confirm that any print provider is bound by a data processing agreement and that their handling and destruction practices meet your rules. Finally, review how the flow fits your wider privacy approach for Decidim, including retention periods and how a participant can ask for their data to be deleted.
Which upgrade and support tasks recur after postal verification goes live?
Recurring work falls into three groups: upgrades, security updates and campaign operations. Decidim supports only the last two minor versions with security updates until version 1.0, so plan to move to a supported release as the project publishes them. Each upgrade may change database structures, so each one needs testing against your postal flow and a database backup first. Security reports follow Decidim's grace periods for patching, so keep a process for applying patches quickly. Campaign operations recur every time you run a verification round, including printing, mailing and marking letters as sent. Ask any partner to state which of these tasks are covered by ongoing support and which remain with your team.
How DeployOpen scopes and delivers Decidim verification work
DeployOpen plans, builds, tests and documents residence verification by postal letter inside the client's own infrastructure, as part of a self-hosted Decidim platform. Each engagement starts from a written scope that defines the letter flow, the data handling rules and the staff steps before any configuration begins.
How we scope
- Agree in writing which address records, letter batches and sent-status steps the postal flow covers.
- Confirm who prints, who posts and who marks letters as sent, and which staff roles hold each step.
- Record data collection, retention and deletion expectations for addresses and codes before build starts.
How we build
- Configure the postal code authorization in a staging environment that mirrors the production Decidim setup.
- Test code generation, expiry, resend and wrong-code handling against the component permissions you defined.
- Check that addresses and codes are not exposed in logs, exports, emails or admin screens beyond the agreed roles.
How we hand over
- Deliver written runbooks for printing, sending, marking letters sent and handling returned or undelivered mail.
- Document configuration, roles, data flows and test results so your team can review them without us present.
- Walk your staff through the procedure and confirm the handover against the agreed scope in writing.
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer after the fixed-scope engagement ends.
- Retest the postal flow after Decidim upgrades, since platform changes can affect authorization code paths.
- Ask your postal provider and legal team to confirm mailing, retention and address handling rules in your jurisdiction.

