landing.html 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  1. <!doctype html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <meta name="description" content="MailHub — self-hosted transactional email with API, SMTP, DNS and webhooks." />
  7. <title>MailHub</title>
  8. <script type="module" crossorigin src="/assets/landing-BUb9icyI.js"></script>
  9. <link rel="modulepreload" crossorigin href="/assets/modulepreload-polyfill-Dezn_h7o.js">
  10. <link rel="stylesheet" crossorigin href="/assets/landing-BkPrzdt8.css">
  11. </head>
  12. <body>
  13. <div class="page">
  14. <header class="site-header">
  15. <a class="brand" href="#top">
  16. <span class="brand-mark">MH</span>
  17. <span class="brand-name">MailHub</span>
  18. </a>
  19. <nav class="nav-links" aria-label="Primary">
  20. <a href="#features" data-i18n="nav.features">Features</a>
  21. <a href="#quickstart" data-i18n="nav.quickstart">Quick start</a>
  22. <a href="#api" data-i18n="nav.api">API</a>
  23. <a href="#mailboxes" data-i18n="nav.mailboxes">Mailboxes</a>
  24. <a href="#receiving" data-i18n="nav.receiving">Receiving</a>
  25. <a href="#domains" data-i18n="nav.domains">Domain setup</a>
  26. <a href="#smtp" data-i18n="nav.smtp">SMTP</a>
  27. <a href="#webhooks" data-i18n="nav.webhooks">Webhooks</a>
  28. </nav>
  29. <div class="header-actions">
  30. <div class="lang-switch" role="group" aria-label="Language">
  31. <button type="button" data-locale="zh-CN" class="lang-btn">中文</button>
  32. <button type="button" data-locale="en-US" class="lang-btn">EN</button>
  33. </div>
  34. <a
  35. class="btn btn-ghost"
  36. href="https://github.com/chendeben/MailHub"
  37. target="_blank"
  38. rel="noopener noreferrer"
  39. data-i18n="cta.github"
  40. >GitHub</a>
  41. <a class="btn btn-ghost" href="/login" data-i18n="cta.login">Log in</a>
  42. <a class="btn btn-primary" href="/register" data-i18n="cta.signup">Get started</a>
  43. </div>
  44. </header>
  45. <main id="top">
  46. <section class="hero">
  47. <div class="hero-copy">
  48. <p class="eyebrow" data-i18n="hero.eyebrow">Transactional email platform</p>
  49. <h1 data-i18n="hero.title">Send reliable email via API &amp; SMTP</h1>
  50. <p class="lede" data-i18n="hero.lede">
  51. Self-hosted MailHub gives you domain DNS guidance, DKIM signing, delivery logs, and signed webhooks — without locking you into a black-box SaaS.
  52. </p>
  53. <div class="hero-cta">
  54. <a class="btn btn-primary btn-lg" href="/register" data-i18n="cta.signup">Get started</a>
  55. <a class="btn btn-ghost btn-lg" href="#api" data-i18n="cta.viewApi">View API sample</a>
  56. </div>
  57. <ul class="trust-strip">
  58. <li data-i18n="trust.selfHosted">Self-hosted</li>
  59. <li>DKIM</li>
  60. <li>SPF</li>
  61. <li>DMARC</li>
  62. <li data-i18n="trust.webhooks">Delivery webhooks</li>
  63. </ul>
  64. </div>
  65. <div class="hero-code" aria-hidden="false">
  66. <div class="code-card">
  67. <div class="code-card-bar">
  68. <span>curl</span>
  69. <button type="button" class="copy-btn" data-copy-target="hero-curl" data-i18n="common.copy">Copy</button>
  70. </div>
  71. <pre id="hero-curl"><code data-i18n-html="hero.curl"></code></pre>
  72. </div>
  73. </div>
  74. </section>
  75. <section id="features" class="section">
  76. <div class="section-head">
  77. <h2 data-i18n="features.title">Built for production senders</h2>
  78. <p data-i18n="features.sub">Everything you need to authenticate domains and observe delivery.</p>
  79. </div>
  80. <div class="feature-grid">
  81. <article class="card"><h3 data-i18n="features.dns.title">Domains &amp; DNS</h3><p data-i18n="features.dns.body">Guided SPF, DKIM, DMARC, and one-click DNS provider writes.</p></article>
  82. <article class="card"><h3 data-i18n="features.smtp.title">SMTP Submission</h3><p data-i18n="features.smtp.body">App-friendly SMTP listeners with credentials you control.</p></article>
  83. <article class="card"><h3 data-i18n="features.api.title">HTTP Send API</h3><p data-i18n="features.api.body">Bearer tokens and a simple JSON send endpoint for apps and services.</p></article>
  84. <article class="card"><h3 data-i18n="features.mailboxes.title">Mailboxes &amp; receiving</h3><p data-i18n="features.mailboxes.body">Create persistent or expiring inboxes with IMAP, POP3, forwarding, and catch-all routing.</p></article>
  85. <article class="card"><h3 data-i18n="features.logs.title">Delivery logs</h3><p data-i18n="features.logs.body">Track queue and MTA outcomes with searchable send history.</p></article>
  86. <article class="card"><h3 data-i18n="features.hooks.title">Webhooks</h3><p data-i18n="features.hooks.body">Signed callbacks for sent, bounced, and failed terminal events.</p></article>
  87. <article class="card"><h3 data-i18n="features.multi.title">Multi-user isolation</h3><p data-i18n="features.multi.body">Domains, tokens, and logs stay scoped to each account.</p></article>
  88. </div>
  89. </section>
  90. <section id="quickstart" class="section section-alt">
  91. <div class="section-head">
  92. <h2 data-i18n="quickstart.title">Start in four steps</h2>
  93. <p data-i18n="quickstart.sub">The console keeps domain, token, mailbox, and delivery configuration in one place.</p>
  94. </div>
  95. <div class="steps-grid">
  96. <article class="card">
  97. <span class="step-number">1</span>
  98. <h3 data-i18n="quickstart.domain.title">Add a domain</h3>
  99. <p data-i18n="quickstart.domain.body">Add your sending domain and publish the DNS records shown by MailHub.</p>
  100. <a class="text-link" href="#domains" data-i18n="quickstart.domain.link">Review domain setup →</a>
  101. </article>
  102. <article class="card">
  103. <span class="step-number">2</span>
  104. <h3 data-i18n="quickstart.token.title">Create a scoped token</h3>
  105. <p data-i18n="quickstart.token.body">Give each integration only the send or mailbox permissions it needs.</p>
  106. <a class="text-link" href="#api" data-i18n="quickstart.token.link">Review API access →</a>
  107. </article>
  108. <article class="card">
  109. <span class="step-number">3</span>
  110. <h3 data-i18n="quickstart.mailbox.title">Provision mailboxes</h3>
  111. <p data-i18n="quickstart.mailbox.body">Create persistent mailboxes in the console or create persistent and temporary mailboxes by API.</p>
  112. <a class="text-link" href="#mailboxes" data-i18n="quickstart.mailbox.link">Review mailbox API →</a>
  113. </article>
  114. <article class="card">
  115. <span class="step-number">4</span>
  116. <h3 data-i18n="quickstart.client.title">Connect your client</h3>
  117. <p data-i18n="quickstart.client.body">Use SMTP to send and IMAP or POP3 to receive with the mailbox's full address and password.</p>
  118. <a class="text-link" href="#smtp" data-i18n="quickstart.client.link">Review protocol settings →</a>
  119. </article>
  120. </div>
  121. </section>
  122. <section id="api" class="section">
  123. <div class="section-head">
  124. <h2 data-i18n="api.title">API authentication and sending</h2>
  125. <p data-i18n="api.sub">All public API calls use a Bearer token. The hostname below is a placeholder; replace it with your MailHub host.</p>
  126. </div>
  127. <div class="doc-grid">
  128. <article class="card">
  129. <h3 data-i18n="api.auth.title">Create and protect a token</h3>
  130. <p data-i18n="api.auth.body">Create a token in Console &gt; API Tokens. Full tokens can be viewed and copied by the owning account, so keep console access restricted and never place tokens in browser code or public repositories.</p>
  131. <ul class="field-list compact-list">
  132. <li><code>send</code> — <span data-i18n="api.auth.send">send messages with POST /api/send</span></li>
  133. <li><code>mailboxes:read</code> — <span data-i18n="api.auth.read">list mailboxes with GET /api/mailboxes</span></li>
  134. <li><code>mailboxes:write</code> — <span data-i18n="api.auth.write">create mailboxes with POST /api/mailboxes</span></li>
  135. <li><code>messages:read</code> — <span data-i18n="api.auth.messages">read inbound messages with GET /api/inbound-messages</span></li>
  136. </ul>
  137. </article>
  138. <article class="card">
  139. <h3 data-i18n="api.send.title">Send a message</h3>
  140. <p data-i18n="api.send.body">The From domain must belong to the token account. When verified sending is enabled, complete the domain DNS checks before sending.</p>
  141. <p class="note compact-note"><code>Authorization: Bearer &lt;USER_API_TOKEN&gt;</code></p>
  142. </article>
  143. </div>
  144. <div class="code-card">
  145. <div class="code-card-bar">
  146. <span>POST /api/send</span>
  147. <button type="button" class="copy-btn" data-copy-target="api-curl" data-i18n="common.copy">Copy</button>
  148. </div>
  149. <pre id="api-curl"><code data-i18n-html="api.curl"></code></pre>
  150. </div>
  151. <div class="table-wrap">
  152. <table>
  153. <thead>
  154. <tr>
  155. <th data-i18n="api.fields.name">Field</th>
  156. <th data-i18n="api.fields.required">Required</th>
  157. <th data-i18n="api.fields.description">Description</th>
  158. </tr>
  159. </thead>
  160. <tbody>
  161. <tr><td><code>from</code></td><td data-i18n="common.yes">Yes</td><td data-i18n="api.field.from">sender address on an account-owned domain</td></tr>
  162. <tr><td><code>to</code></td><td data-i18n="common.yes">Yes</td><td data-i18n="api.field.to">recipient string or an address array</td></tr>
  163. <tr><td><code>subject</code></td><td data-i18n="common.no">No</td><td data-i18n="api.field.subject">defaults to (no subject)</td></tr>
  164. <tr><td><code>text</code></td><td data-i18n="common.no">No</td><td data-i18n="api.field.text">plain-text body</td></tr>
  165. <tr><td><code>html</code></td><td data-i18n="common.no">No</td><td data-i18n="api.field.html">HTML body; required when enabling open or click tracking</td></tr>
  166. <tr><td><code>tracking</code></td><td data-i18n="common.no">No</td><td data-i18n="api.field.tracking">true/false, or { opens, clicks }; rewrites HTML only</td></tr>
  167. <tr><td><code>smtpRelayId</code></td><td data-i18n="common.no">No</td><td data-i18n="api.field.relay">an account-owned outbound SMTP relay ID</td></tr>
  168. </tbody>
  169. </table>
  170. </div>
  171. <div class="code-card doc-code-card">
  172. <div class="code-card-bar"><span data-i18n="api.responseLabel">202 response</span></div>
  173. <pre><code data-i18n-html="api.response"></code></pre>
  174. </div>
  175. <p class="note" data-i18n="api.note">A 202 response means MailHub accepted the message for SMTP delivery. Use the console delivery log or webhooks to observe the later result.</p>
  176. </section>
  177. <section id="mailboxes" class="section section-alt">
  178. <div class="section-head">
  179. <h2 data-i18n="mailboxes.title">Mailbox API and clients</h2>
  180. <p data-i18n="mailboxes.sub">Create a persistent address for ongoing work, or an expiring address for a short-lived workflow.</p>
  181. </div>
  182. <div class="doc-grid">
  183. <article class="card">
  184. <h3 data-i18n="mailboxes.api.title">Mailbox API scope</h3>
  185. <p data-i18n="mailboxes.api.body">POST /api/mailboxes requires mailboxes:write. The target domain must belong to the token account.</p>
  186. <ul class="field-list compact-list">
  187. <li><code>mode</code> — <span data-i18n="mailboxes.api.mode">permanent or temporary</span></li>
  188. <li><code>address</code> / <code>domain</code> — <span data-i18n="mailboxes.api.address">use a full address, or choose domain plus localPart</span></li>
  189. <li><code>expiresInMinutes</code> — <span data-i18n="mailboxes.api.expires">required for temporary mailboxes; 5 minutes to 30 days</span></li>
  190. <li><code>password</code> — <span data-i18n="mailboxes.api.password">optional; a secure password is returned once when omitted</span></li>
  191. </ul>
  192. </article>
  193. <article class="card">
  194. <h3 data-i18n="mailboxes.client.title">Use the returned configuration</h3>
  195. <p data-i18n="mailboxes.client.body">Creation returns the address, password, expiration, and ready-to-use IMAP, POP3, and SMTP settings.</p>
  196. <ul class="field-list compact-list">
  197. <li><strong>IMAP</strong> — <span data-i18n="mailboxes.client.imap">recommended for synchronized folders and sent mail</span></li>
  198. <li><strong>POP3</strong> — <span data-i18n="mailboxes.client.pop3">for download-oriented clients</span></li>
  199. <li><strong>SMTP</strong> — <span data-i18n="mailboxes.client.smtp">use the same full mailbox address and password to send</span></li>
  200. </ul>
  201. </article>
  202. </div>
  203. <div class="reference-grid">
  204. <div class="code-card doc-code-card">
  205. <div class="code-card-bar"><span data-i18n="mailboxes.permanent.label">POST /api/mailboxes - permanent</span><button type="button" class="copy-btn" data-copy-target="mailbox-permanent-curl" data-i18n="common.copy">Copy</button></div>
  206. <pre id="mailbox-permanent-curl"><code data-i18n-html="mailboxes.permanent.curl"></code></pre>
  207. </div>
  208. <div class="code-card doc-code-card">
  209. <div class="code-card-bar"><span data-i18n="mailboxes.temporary.label">POST /api/mailboxes - temporary</span><button type="button" class="copy-btn" data-copy-target="mailbox-temporary-curl" data-i18n="common.copy">Copy</button></div>
  210. <pre id="mailbox-temporary-curl"><code data-i18n-html="mailboxes.temporary.curl"></code></pre>
  211. </div>
  212. </div>
  213. <div class="code-card doc-code-card">
  214. <div class="code-card-bar"><span>GET /api/mailboxes</span><button type="button" class="copy-btn" data-copy-target="mailbox-list-curl" data-i18n="common.copy">Copy</button></div>
  215. <pre id="mailbox-list-curl"><code data-i18n-html="mailboxes.list.curl"></code></pre>
  216. </div>
  217. <div class="code-card doc-code-card">
  218. <div class="code-card-bar"><span data-i18n="mailboxes.responseLabel">201 creation response</span></div>
  219. <pre><code data-i18n-html="mailboxes.response"></code></pre>
  220. </div>
  221. <ul class="field-list">
  222. <li data-i18n="mailboxes.lifecycle.password">The returned password is the only opportunity to read an automatically generated password.</li>
  223. <li data-i18n="mailboxes.lifecycle.temporary">A temporary mailbox expires after the requested interval and then stops receiving mail and authenticating.</li>
  224. <li data-i18n="mailboxes.lifecycle.list">Use mailboxes:read to list mailbox metadata; passwords are never returned by the list endpoint.</li>
  225. </ul>
  226. </section>
  227. <section id="receiving" class="section">
  228. <div class="section-head">
  229. <h2 data-i18n="receiving.title">Receiving mail</h2>
  230. <p data-i18n="receiving.sub">Mail arrives through the domain MX record. Read it in MailHub Inbox, through IMAP/POP3, or with a scoped Bearer token.</p>
  231. </div>
  232. <div class="reference-grid">
  233. <div class="code-card doc-code-card">
  234. <div class="code-card-bar"><span data-i18n="receiving.list.label">GET /api/inbound-messages - list</span><button type="button" class="copy-btn" data-copy-target="inbound-list-curl" data-i18n="common.copy">Copy</button></div>
  235. <pre id="inbound-list-curl"><code data-i18n-html="receiving.list.curl"></code></pre>
  236. </div>
  237. <div class="code-card doc-code-card">
  238. <div class="code-card-bar"><span data-i18n="receiving.detail.label">GET /api/inbound-messages/:id - detail</span><button type="button" class="copy-btn" data-copy-target="inbound-detail-curl" data-i18n="common.copy">Copy</button></div>
  239. <pre id="inbound-detail-curl"><code data-i18n-html="receiving.detail.curl"></code></pre>
  240. </div>
  241. </div>
  242. <p class="note" data-i18n="receiving.api.note">Inbound APIs require messages:read and are limited by the token mailbox access setting. Only administrator tokens explicitly set to all mailboxes can read across accounts.</p>
  243. <div class="doc-grid">
  244. <article class="card">
  245. <h3 data-i18n="receiving.delivery.title">Inbound delivery</h3>
  246. <p data-i18n="receiving.delivery.body">Set the domain MX record to the receiving host. External mail servers then deliver to SMTP port 25, and MailHub stores mail for an existing mailbox, alias, or catch-all target.</p>
  247. </article>
  248. <article class="card">
  249. <h3 data-i18n="receiving.routing.title">Mailbox, aliases, and catch-all</h3>
  250. <p data-i18n="receiving.routing.body">Create a full mailbox address first. Add aliases or forwarding on that mailbox, and configure the domain catch-all in the console to route unknown local parts to a mailbox or another address.</p>
  251. </article>
  252. </div>
  253. <div class="table-wrap">
  254. <table>
  255. <thead>
  256. <tr>
  257. <th data-i18n="receiving.protocols.protocol">Protocol</th>
  258. <th data-i18n="receiving.protocols.ports">Recommended ports</th>
  259. <th data-i18n="receiving.protocols.security">Security</th>
  260. <th data-i18n="receiving.protocols.use">Use</th>
  261. </tr>
  262. </thead>
  263. <tbody>
  264. <tr><td>IMAP</td><td><code>993</code> / <code>143</code></td><td data-i18n="receiving.protocols.imapSecurity">SSL/TLS or STARTTLS</td><td data-i18n="receiving.protocols.imapUse">recommended for synchronized folders</td></tr>
  265. <tr><td>POP3</td><td><code>995</code> / <code>110</code></td><td data-i18n="receiving.protocols.pop3Security">SSL/TLS or STLS</td><td data-i18n="receiving.protocols.pop3Use">download-oriented clients</td></tr>
  266. <tr><td>SMTP</td><td><code>465</code> / <code>587</code></td><td data-i18n="receiving.protocols.smtpSecurity">SMTPS or STARTTLS</td><td data-i18n="receiving.protocols.smtpUse">send with the same mailbox address and password</td></tr>
  267. </tbody>
  268. </table>
  269. </div>
  270. <p class="note" data-i18n="receiving.folders">IMAP exposes INBOX, Sent, Drafts, Trash, Junk, and Archive. Use IMAP when the client should synchronize these folders and save sent messages.</p>
  271. </section>
  272. <section id="domains" class="section">
  273. <div class="section-head">
  274. <h2 data-i18n="domainsDoc.title">Domain configuration</h2>
  275. <p data-i18n="domainsDoc.sub">Create the domain in MailHub first. Its DNS panel is the source of truth for your exact verification, DKIM, SPF, DMARC, and sender-host values.</p>
  276. </div>
  277. <div class="table-wrap">
  278. <table>
  279. <thead>
  280. <tr>
  281. <th data-i18n="domainsDoc.col.purpose">Purpose</th>
  282. <th data-i18n="domainsDoc.col.record">Record</th>
  283. <th data-i18n="domainsDoc.col.requirement">Requirement</th>
  284. </tr>
  285. </thead>
  286. <tbody>
  287. <tr><td data-i18n="domainsDoc.row.verify">Domain ownership</td><td><code>TXT _mailhub.&lt;domain&gt;</code></td><td data-i18n="domainsDoc.row.verifyValue">Publish the verification value generated in the console.</td></tr>
  288. <tr><td>DKIM</td><td><code>TXT &lt;selector&gt;._domainkey.&lt;domain&gt;</code></td><td data-i18n="domainsDoc.row.dkim">Publish the public key generated for this domain.</td></tr>
  289. <tr><td>SPF</td><td><code>TXT &lt;domain&gt;</code></td><td data-i18n="domainsDoc.row.spf">Keep one SPF record and include the sender IP/host required by MailHub.</td></tr>
  290. <tr><td>DMARC</td><td><code>TXT _dmarc.&lt;domain&gt;</code></td><td data-i18n="domainsDoc.row.dmarc">Start with monitoring, then strengthen the policy after alignment is verified.</td></tr>
  291. <tr><td data-i18n="domainsDoc.row.mx">Inbound mail</td><td><code>MX &lt;domain&gt;</code></td><td data-i18n="domainsDoc.row.mxValue">Point MX to the MailHub receiving host and ensure that host has an A/AAAA record.</td></tr>
  292. </tbody>
  293. </table>
  294. </div>
  295. <p class="note" data-i18n="domainsDoc.note">For reliable delivery, also configure the sending IP's PTR to match the MailHub sending hostname and allow the documented SMTP, IMAP, and POP3 ports through your firewall.</p>
  296. </section>
  297. <section id="smtp" class="section section-alt">
  298. <div class="section-head">
  299. <h2 data-i18n="smtp.title">SMTP submission</h2>
  300. <p data-i18n="smtp.sub">Default listener ports (override in your deployment):</p>
  301. </div>
  302. <div class="port-grid">
  303. <div class="card mono"><strong>25</strong><span>smtp</span></div>
  304. <div class="card mono"><strong>587</strong><span>smtp / STARTTLS</span></div>
  305. <div class="card mono"><strong>465</strong><span>smtps</span></div>
  306. <div class="card mono"><strong>2525</strong><span>smtp</span></div>
  307. </div>
  308. <div class="doc-grid">
  309. <article class="card"><h3 data-i18n="smtp.app.title">Application SMTP</h3><p data-i18n="smtp.app.body">Create an SMTP login credential in the console for an application. Use that credential with an account-owned From domain.</p></article>
  310. <article class="card"><h3 data-i18n="smtp.mailbox.title">Mailbox SMTP</h3><p data-i18n="smtp.mailbox.body">A created mailbox can also authenticate over SMTP with its full email address and password. Use the same credentials for IMAP or POP3.</p></article>
  311. </div>
  312. <p class="note" data-i18n="smtp.note">Prefer 465 or 587 for sending, 993 for IMAP, and 995 for POP3. The creation response is the source of truth when a deployment overrides default ports or TLS listeners.</p>
  313. </section>
  314. <section id="errors" class="section">
  315. <div class="section-head">
  316. <h2 data-i18n="errors.title">Responses and common errors</h2>
  317. <p data-i18n="errors.sub">The API returns JSON. Validate the HTTP status before consuming a response body.</p>
  318. </div>
  319. <div class="table-wrap">
  320. <table>
  321. <thead><tr><th data-i18n="errors.status">Status</th><th data-i18n="errors.meaning">Meaning</th><th data-i18n="errors.action">What to do</th></tr></thead>
  322. <tbody>
  323. <tr><td><code>201</code></td><td data-i18n="errors.201.meaning">Mailbox created</td><td data-i18n="errors.201.action">Store the one-time password and clientConfig.</td></tr>
  324. <tr><td><code>202</code></td><td data-i18n="errors.202.meaning">Message accepted for SMTP delivery</td><td data-i18n="errors.202.action">Inspect delivery logs or webhooks for later delivery status.</td></tr>
  325. <tr><td><code>400</code></td><td data-i18n="errors.400.meaning">Invalid request or domain ownership rule</td><td data-i18n="errors.400.action">Read the JSON error and correct the request body or domain setup.</td></tr>
  326. <tr><td><code>401</code></td><td data-i18n="errors.401.meaning">Missing, invalid, revoked, or expired token</td><td data-i18n="errors.401.action">Create or rotate a valid token.</td></tr>
  327. <tr><td><code>403</code></td><td data-i18n="errors.403.meaning">Token does not have the required scope</td><td data-i18n="errors.403.action">Grant the minimum required scope in Console &gt; API Tokens.</td></tr>
  328. <tr><td><code>409</code></td><td data-i18n="errors.409.meaning">Mailbox address already exists</td><td data-i18n="errors.409.action">Choose another address or use the existing mailbox.</td></tr>
  329. </tbody>
  330. </table>
  331. </div>
  332. </section>
  333. <section id="webhooks" class="section">
  334. <div class="section-head">
  335. <h2 data-i18n="webhooks.title">Delivery webhooks</h2>
  336. <p data-i18n="webhooks.sub">Terminal events only — signed HTTPS callbacks to your systems.</p>
  337. </div>
  338. <div class="table-wrap">
  339. <table>
  340. <thead>
  341. <tr>
  342. <th data-i18n="webhooks.col.status">Status</th>
  343. <th data-i18n="webhooks.col.type">type</th>
  344. </tr>
  345. </thead>
  346. <tbody>
  347. <tr><td><code>sent</code></td><td><code>email.sent</code></td></tr>
  348. <tr><td><code>bounced</code></td><td><code>email.bounced</code></td></tr>
  349. <tr><td><code>failed</code></td><td><code>email.failed</code></td></tr>
  350. </tbody>
  351. </table>
  352. </div>
  353. <p class="note"><span data-i18n="webhooks.sig">Signature header:</span> <code>X-MailHub-Signature: t=&lt;unix&gt;,v1=&lt;hmac&gt;</code></p>
  354. </section>
  355. <section class="section cta-band">
  356. <h2 data-i18n="ctaBand.title">Ready to send?</h2>
  357. <p data-i18n="ctaBand.sub">Create an account, add a domain, and ship your first message in minutes.</p>
  358. <div class="hero-cta">
  359. <a class="btn btn-primary btn-lg" href="/register" data-i18n="cta.signup">Get started</a>
  360. <a class="btn btn-ghost btn-lg" href="/login" data-i18n="cta.login">Log in</a>
  361. </div>
  362. </section>
  363. </main>
  364. <footer class="site-footer">
  365. <div>
  366. <strong>MailHub</strong>
  367. <span data-i18n="footer.tag">Self-hosted email delivery control plane</span>
  368. </div>
  369. <div class="footer-links">
  370. <a
  371. href="https://github.com/chendeben/MailHub"
  372. target="_blank"
  373. rel="noopener noreferrer"
  374. data-i18n="cta.github"
  375. >GitHub</a>
  376. <a href="/login" data-i18n="cta.login">Log in</a>
  377. <a href="/register" data-i18n="cta.signup">Get started</a>
  378. </div>
  379. </footer>
  380. </div>
  381. </body>
  382. </html>