Mail Relay

To configure Postfix for relaying emails through smtp.example.com, run the command:

postconf -e 'relayhost = smtp.example.com'

For more configuration options, see:

man postconf

After changing the configuration, postfix needs to be reloaded with this command:

postfix reload