Learn
Receiving emails
Get emails sent to your domain.
Turn any verified domain into an inbox. Every email sent to anything@your-domain is parsed and stored with its attachments, and sent to your webhook.
Set up
- Open your domain in Domains and click Enable receiving.
- Add the MX record shown at your DNS provider.
- Send a test email to
hello@your-domain. It appears in Inboxes within seconds.
Use a subdomain such as inbound.yourdomain.com. Adding our MX record to your main domain would route all its mail to Postwave instead of your normal mailbox.
Handle incoming mail in your app
Subscribe a webhook to email.received, then fetch the full email:
app.post('/webhooks/email', async (req, res) => {
const { type, data } = req.body;
if (type === 'email.received') {
const email = await fetch(`https://post-waves.com/emails/receiving/${data.email_id}`, {
headers: { Authorization: `Bearer ${process.env.API_KEY}` },
}).then((r) => r.json());
console.log(email.from, email.subject, email.text);
}
res.sendStatus(200);
});Every email is scanned: spam_verdict and virus_verdict are PASS or FAIL.
Was this page helpful?Send feedback