Mailgun Integration Setup
Follow these steps to enable real email forwarding using Mailgun. This will allow your hidden email addresses to receive and forward emails to your primary inbox.
1
Create a Mailgun Account
Sign up for a free Mailgun account at mailgun.com
Mailgun offers a free tier with 5,000 emails per month, which is perfect for personal use.
2
Add and Verify Your Domain
- Go to Sending → Domains in Mailgun
- Click Add New Domain
- Enter your domain (e.g.,
hidemyemail.app) - Add the DNS records Mailgun provides to your domain's DNS settings
- Wait for verification (usually takes a few minutes)
3
Get Your API Credentials
- Go to Settings → API Keys
- Copy your Private API Key
- Note your Domain Name from the Domains page
4
Configure Webhook Signing Key
- Go to Settings → Webhooks
- Copy your HTTP webhook signing key
- Keep this safe - you'll need it in the next step
5
Add Environment Variables
When you mention these in chat, you'll be prompted to enter the values:
MAILGUN_API_KEY = your-private-api-key
MAILGUN_DOMAIN = yourdomain.com
MAILGUN_WEBHOOK_SIGNING_KEY = your-webhook-signing-key
6
Set Up Mailgun Route
- Go to Sending → Routes
- Click Create Route
- Expression Type: Match Recipient
- Recipient:
.*@yourdomain.com(catches all emails) - Actions: Forward to URL
- URL:
https://your-app-url/api/email/webhook - Priority: 0 (highest)
You're All Set!
Once configured, any email sent to your hidden addresses will be automatically forwarded to your primary email. Deactivated addresses will stop receiving mail immediately.