Support for setting relayhost in main.cf (#1104)

* Added DEFAULT_RELAY_HOST setting
* If set this value will be used as the relayhost in /etc/postfix/maincf causing all mail to be delivered using this relay host
* Test for default relay host setting
This commit is contained in:
jjtt 2019-01-19 12:10:31 +02:00 committed by Johan Smits
parent 1302ccfe7e
commit a3724fa91d
6 changed files with 49 additions and 1 deletions

View file

@ -586,6 +586,13 @@ Note: This postgrey setting needs `ENABLE_POSTGREY=1`
- **empty** => Derived from OVERRIDE_HOSTNAME, DOMAINNAME, or the container's hostname
- Set this if auto-detection fails, isn't what you want, or you wish to have a separate container handle DSNs
## Default Relay Host
#### DEFAULT_RELAY_HOST
- **empty** => don't set default relayhost setting in main.cf
- default host and port to relay all mail through
## Multi-domain Relay Hosts
#### RELAY_HOST