What AsoBeast does for you
Every email AsoBeast sends carries the following.
Alert emails are subscription mail. When
WEB_PUBLIC_URL is https, each one also carries List-Unsubscribe and List-Unsubscribe-Post: List-Unsubscribe=One-Click (RFC 8058), so Gmail, Yahoo, Apple Mail and Outlook.com show their own unsubscribe button. Pressing it pauses that one email alert. The footer of every alert email links to the same choice on a confirmation page.
Account emails (confirmation, password reset, invitation) and billing notices are transactional, so they carry no unsubscribe.
What your domain needs
Publish three DNS records for the domain inSMTP_FROM. The examples use mail.example.com.
SPF lists the servers allowed to send for the domain:
p=none, read the reports, and move to p=quarantine once they show only your own sources.
Choose a relay
A managed relay such as Amazon SES, Postmark, Resend, Mailgun or SendGrid signs every message with DKIM for you, keeps reverse DNS correct and handles TLS. PointSMTP_HOST at it and publish the records it gives you.
Running your own Postfix means you sign the mail, keep the reverse DNS of the sending address matching its hostname, and watch the reputation of that address yourself.
Sign in AsoBeast instead
When the relay does not sign, AsoBeast can. Generate a key in the folder both Compose stacks mount:p= in the DKIM record above, then set SMTP_DKIM_DOMAIN, SMTP_DKIM_SELECTOR and SMTP_DKIM_PRIVATE_KEY_PATH and restart the API. The rules for the three variables are on the configuration reference. The signature covers both unsubscribe headers, which RFC 8058 requires.
Set the sender name
Use a display name with an address on the authenticated domain, for exampleSMTP_FROM="AsoBeast <[email protected]>". Providers judge the display name too, and an address on another domain breaks alignment.
Check a message
Send a test from Settings, Email alerts, then open the original message in the receiving client (“Show original” in Gmail). Look forspf=pass, dkim=pass with d= set to your domain, and dmarc=pass. An alert email should also show the List-Unsubscribe pair.
Watch the spam complaint rate in Google Postmaster Tools. Keep it under 0.1% and never let it reach 0.3%.
Related
Send alerts
Email and webhook delivery, and how unsubscribe works.
Configuration reference
Every SMTP variable and its rules.
Rotate secrets
What a new
AUTH_SECRET does to unsubscribe links.