Hello, whenever I see people discussing Postfix configuration it seems they are looking to do two things mostly:
configure a local SMTP server on their machine, and have each mail sent to this address forwarded to their own GMail account
have GMail use their own SMTP server to send email from GMail using their server
I’m trying to do something which seems a bit different for me: I have one GMail email (say root-domain@gmail.com) and I’d like to use it so that each time someone uses echo "hello" | mail <address>, the mail be sent through GMail as a relay to <address> a bit like if it was using a mail program – is this possible?
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!
Follow the steps on here setting up the relayhost and all of the authentication details for that host hope it helps
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.