[{"data":1,"prerenderedAt":257},["ShallowReactive",2],{"navigation-en":3,"/en/operation/mail-en":46,"/en/operation/mail-en-surround":252},[4,8,12,38,42],{"title":5,"path":6,"stem":7},"Overview","/en","en/0.index",{"title":9,"path":10,"stem":11},"Quick start","/en/getting-started/self-hosting","en/1.getting-started/1.self-hosting",{"title":13,"path":14,"stem":15,"children":16},"Operation","/en/operation","en/2.operation/0.index",[17,18,22,26,30,34],{"title":13,"path":14,"stem":15},{"title":19,"path":20,"stem":21},"Installation","/en/operation/installation","en/2.operation/1.installation",{"title":23,"path":24,"stem":25},"Email delivery","/en/operation/mail","en/2.operation/2.mail",{"title":27,"path":28,"stem":29},"Documents","/en/operation/documents","en/2.operation/3.documents",{"title":31,"path":32,"stem":33},"Accounts and roles","/en/operation/accounts-and-roles","en/2.operation/4.accounts-and-roles",{"title":35,"path":36,"stem":37},"Separate hosts","/en/operation/separate-hosts","en/2.operation/5.separate-hosts",{"title":39,"path":40,"stem":41},"Sign-in","/en/sign-in","en/3.sign-in",{"title":43,"path":44,"stem":45},"Backend API v1","/en/api","en/4.api",{"id":47,"title":23,"body":48,"description":246,"extension":247,"links":248,"meta":249,"navigation":248,"path":24,"seo":250,"stem":25,"__hash__":251},"en/en/2.operation/2.mail.md",{"type":49,"value":50,"toc":238},"minimark",[51,56,80,84,99,115,198,205,209,219,223,234],[52,53,55],"h2",{"id":54},"mailpit-in-the-default-setup","Mailpit in the default setup",[57,58,59,63,64,67,68,71,72,75,76,79],"p",{},[60,61,62],"code",{},"BEANTRAGT_MAIL_MODE"," selects the delivery path. Without a value, ",[60,65,66],{},"mailpit"," applies. The bundled ",[60,69,70],{},".env.example"," enables the matching Compose profile through ",[60,73,74],{},"COMPOSE_PROFILES",". Mailpit captures all messages and shows them at ",[60,77,78],{},"http://localhost:18025",". In the default setup nothing is delivered externally.",[52,81,83],{"id":82},"existing-smtp-server","Existing SMTP server",[57,85,86,87,90,91,94,95,98],{},"In ",[60,88,89],{},".env",", ",[60,92,93],{},"BEANTRAGT_MAIL_MODE=smtp"," enables SMTP mode. ",[60,96,97],{},"compose.mail.yaml"," then mounts the password as a Docker secret. Mailpit does not start in SMTP mode. A running Mailpit instance is stopped before switching.",[100,101,106],"pre",{"className":102,"code":103,"language":104,"meta":105,"style":105},"language-sh shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","docker compose --profile mailpit stop mailpit\n","sh","",[60,107,108],{"__ignoreMap":105},[109,110,113],"span",{"class":111,"line":112},"line",1,[109,114,103],{},[116,117,118,131],"table",{},[119,120,121],"thead",{},[122,123,124,128],"tr",{},[125,126,127],"th",{},"Variable",[125,129,130],{},"Meaning",[132,133,134,145,158,168,178,188],"tbody",{},[122,135,136,142],{},[137,138,139],"td",{},[60,140,141],{},"SMTP_HOST",[137,143,144],{},"Host name of the mail server",[122,146,147,152],{},[137,148,149],{},[60,150,151],{},"SMTP_PORT",[137,153,154,155],{},"Port, default ",[60,156,157],{},"587",[122,159,160,165],{},[137,161,162],{},[60,163,164],{},"SMTP_USER",[137,166,167],{},"User name for authentication",[122,169,170,175],{},[137,171,172],{},[60,173,174],{},"SMTP_FROM",[137,176,177],{},"Sender address accepted by the provider",[122,179,180,185],{},[137,181,182],{},[60,183,184],{},"SMTP_PASSWORD_FILE",[137,186,187],{},"Path to a file that contains only the password",[122,189,190,195],{},[137,191,192],{},[60,193,194],{},"SMTP_EHLO_HOST",[137,196,197],{},"Optional, defaults to the domain of the sender address",[57,199,200,201,204],{},"msmtp uses STARTTLS with certificate verification. The password file is stored outside the source tree. Read access is restricted to the Drupal user in the container (UID 1000), for example with ",[60,202,203],{},"sudo chown 1000 \u003Cfile> && sudo chmod 400 \u003Cfile>",". Compose without Swarm does not apply permissions from the secret definition. If the host, user, sender or a readable, non-empty password file is missing, Drupal stops at startup with an error message.",[52,206,208],{"id":207},"redirection-to-a-test-mailbox","Redirection to a test mailbox",[57,210,211,214,215,218],{},[60,212,213],{},"BEANTRAGT_MAIL_REDIRECT_RECIPIENT"," redirects all messages to a single address. The redirection replaces recipient and reply-to address, removes Cc and Bcc and prefixes the subject with ",[60,216,217],{},"[STAGING→\u003Cdomain>]",", using the domain of the original recipient. An invalid value blocks delivery entirely. Without a redirection, the normal delivery path applies.",[52,220,222],{"id":221},"verifying-delivery","Verifying delivery",[57,224,225,226,229,230,233],{},"After startup with ",[60,227,228],{},"docker compose up -d --wait --wait-timeout 300",", a one-time code is requested at ",[60,231,232],{},"/auth/login"," for the address of a reachable test mailbox. Signing in with the received code confirms delivery. With an active redirection, the code arrives in the configured target mailbox.",[235,236,237],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":105,"searchDepth":239,"depth":240,"links":241},3,2,[242,243,244,245],{"id":54,"depth":240,"text":55},{"id":82,"depth":240,"text":83},{"id":207,"depth":240,"text":208},{"id":221,"depth":240,"text":222},"Mailpit in the default setup, delivery through an existing SMTP server and redirection of all messages to a test mailbox.","md",null,{},{"title":23,"description":246},"Sl0q0TNgkVHPkX3t5PQTQOgCPqRuI7Qmg2tX9PXrvaw",[253,255],{"title":19,"path":20,"stem":21,"description":254,"children":-1},"Images and versions, configuration in .env, starting without sample data, building from source, TLS and updates.",{"title":27,"path":28,"stem":29,"description":256,"children":-1},"Docgen document service for decision notices from Word templates, PDF/A conversion, access and capacity.",1795601412415]