Closed Aphris-Karu closed 5 years ago
I'm also using a relay, so, here is how it looks like:
/mnt/docker/mail/postfix/custom.conf
# The next-hop destination of non-local mail; overrides non-local domains in recipient addresses.
relayhost = [my.relay.com]:587
For me, is that simple, because my servers are on the same private network, so I'm skipping authentication.
More information on how to override settings are here: https://github.com/hardware/mailserver#override-postfix-configuration
If you need authentication, you can get some information on this sendgrid guide: https://sendgrid.com/docs/for-developers/sending-email/postfix/
You can follow the same idea, just add the settings that you will need.
If you need to create the password_maps
file, make sure you mount it on the host and take the appropriate steps to create the file.
I hope it helps.
[]'s
navossoc, Thank you that fixed my issue!
Classification
Please delete options that are not relevant.
Reproducibility
Please delete options that are not relevant.
Description
To send outgoing email, I have to send it through a smart relay host (DS in sendmail) You really need a variable to set the smart relay host.
Note: I really dont know postfix so not even sure how to set it in the mailserver.