1import{B as e,R as t,St as n,kt as r}from"./CzsObDY8.js";import"./xihTtKlq.js";import"./C5qy-xbg.js";var i=r({default:()=>l,metadata:()=>a}),a={title:`Setting Up AWS SES`,description:`Speedrun guide to setting up AWS SES for sending emails from your PocketBase instance using Google Suite as your email provider`},{title:o,description:s}=a,c=e(`<h1>Speedrun: Setting Up Email with Google Suite and AWS SES</h1> <ul><li><a href="#prerequisite-make-sure-you-can-receive-emails-first">Prerequisite: Make sure you can receive emails first</a></li> <li><a href="#create-an-ses-identity">Create an SES Identity</a></li> <li><a href="#add-dns-records">Add DNS Records</a></li> <li><a href="#add-a-custom-from-domain">Add a custom FROM domain</a></li> <li><a href="#add-dmarc-settings">Add DMARC settings</a></li> <li><a href="#verifying-the-setup">Verifying the Setup</a></li> <li><a href="#submit-for-approval">Submit for Approval</a></li> <li><a href="#creating-smtp-credentials">Creating SMTP Credentials</a></li> <li><a href="#configure-smtp-in-pocketbase">Configure SMTP in PocketBase</a></li></ul> <h2>Prerequisite: Make sure you can receive emails first</h2> <p>To receive emails, youâll need an email provider. I use Google Suite, but you can choose any provider you prefer.</p> <p><a href="/docs/gs-gmail">Setting up a new email domain in Google Suite</a>.</p> <p>(Someone should write about how to do it using Proton.me)</p> <h2>Create an SES Identity</h2> <p>Log in to your Amazon SES account and follow their getting started guide to create a FROM address and sending domain. Make sure youâre in the region you prefer. This is important if you have existing domains because AWS frowns upon approving multiple sending regions.</p> <p><img src="/generated/docs/ses/2024-09-08-20-29-10.png"/></p> <p>Start by creating an Identity:</p> <p><img src="/generated/docs/ses/2024-09-08-20-30-52.png"/></p> <p><img src="/generated/docs/ses/2024-09-08-20-33-41.png"/></p> <h2>Add DNS Records</h2> <p>Youâll need to add DNS records provided by SES to your DNS provider. Unlike Google Suite, youâll need to enter these values manually. They do not provide integrations with any DNS providers.</p> <p><img src="/generated/docs/ses/2024-09-03-06-20-55.png" alt="AWS SES DNS Setup"/></p> <p><strong>Note for Cloudflare users: If youâre using Cloudflare, make sure these records are not proxied.</strong></p> <p><img src="/generated/docs/ses/2024-09-08-22-28-33.png"/></p> <h2>Add a custom FROM domain</h2> <p>Deliverability is better if you add a custom FROM domain:</p> <p><img src="/generated/docs/ses/2024-09-08-22-38-12.png"/></p> <p><img src="/generated/docs/ses/2024-09-08-22-38-51.png"/></p> <p>It requires a few additional DNS entries. Note that the MX <code>priority</code> goes into a separate field, not the MX server field:</p> <p><img src="/generated/docs/ses/2024-09-08-22-41-08.png"/></p> <p><img src="/generated/docs/ses/2024-09-08-22-42-35.png"/></p> <h2>Add DMARC settings</h2> <p><img src="/generated/docs/ses/2024-09-08-22-45-05.png"/></p> <h2>Verifying the Setup</h2> <p>After adding the DNS records, go back to AWS SES and wait for the domain to show as verified. Then, send a verification email. You should receive it if everything is set up correctly.</p> <p><img src="/generated/docs/ses/2024-09-08-22-32-26.png"/></p> <p><img src="/generated/docs/ses/2024-09-08-22-35-46.png"/></p> <p>If verification takes too long, go to <strong>Identities > DKIM</strong>, click <strong>Edit</strong>, then <strong>Save</strong> to trigger an immediate re-verification.</p> <p><img src="/generated/docs/ses/2024-09-08-22-33-32.png"/></p> <h2>Submit for Approval</h2> <p>Before you can send emails to anyone, you must submit everything for approval in AWS SES. This step is crucial to avoid issues when sending emails outside your verified domain.</p> <p>If you have previously had a domain approved, you may be able to skip this step. To find out, simply try sending a test message to anything with a different domain.</p> <h2>Creating SMTP Credentials</h2> <p>
1Create SMTP credentials in the AWS SES console. These credentials will be used in your PocketBase admin panel for sending emails.</p> <p><img src="/generated/docs/ses/2024-09-08-22-48-53.png"/></p> <h2>Configure SMTP in PocketBase</h2> <p>Once you have your SMTP credentials, head over to the PocketBase admin.</p> <p>Enter the SMTP credentials in PocketBaseâs admin panel, and ensure the <strong>SENDER</strong> address is correctly set. If SES hasnât verified your email yet, you can test it by sending an email to <code>test@<yourdomain></code>, which should go through if the domain is the same.</p> <p><img src="/generated/docs/ses/2024-09-08-22-53-02.png"/></p>`,1);function l(e){var r=c();n(82),t(e,r)}export{l as n,i as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.