Problem scenario
You are trying to send an email on a Postfix server. But you keep getting this error: “454 4.7.1 jdoe@acme.com: Relay access denied”
What should you do?
Solution
- Back up the /etc/postfix/main.cf file just in case. (This is an optional step.)
- Find you server’s internal IP address with a command like this: ip addr show | grep eth0 | grep inet | awk ‘{print $2}’
- Modify the /etc/postfix/main.cf file.
…