By seriousfunk
I’ve configured postfix on my Digital Ocean droplet to relay mail through mailgun and that much is working. Is there a way for me to send mail to Mailgun email address from email clients other than the server I’ve configured postfix on?
I’m guessing I need to open up the “smtpd_relay_restrictions” settings in /etc/postfix/main.cf to do so, but then (if I’m not mistaken) that would let anyone relay mail through my DO/mailgun account.
Can I mitigate that by having a route just trash the mail that isn’t routed out to gmail or whatever?
Any help would be greatly appreciated.
Thank you.
Matt seriousfunk@gmail.com
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.