mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-03 01:24:52 +02:00
* Add new configuration for multi-domain relay hosts (#922) * Creates new environment variables (replacing existing AWS_SES variables) * Optionally allows more advanced setups using config files * Update relay hosts during change detection (#922) * Add helper scripts for adding relay hosts and per-domain auth * Allow the possibility to deliver some mail directly * adding a domain with no destination will exclude it from the relayhost_map and so Postfix will attempt to deliver the mail directly * tests for setup.sh script * tests for relay host configuration * these tests cover the code in `start-mailserver.sh` dealing with both the env vars and the configuration files
This commit is contained in:
parent
86ea0bbae1
commit
f28e9843ce
13 changed files with 388 additions and 11 deletions
3
test/config/relay-hosts/postfix-accounts.cf
Normal file
3
test/config/relay-hosts/postfix-accounts.cf
Normal file
|
@ -0,0 +1,3 @@
|
|||
user1@domainone.tld|{SHA512-CRYPT}$6$UMGnThsSm0IFgzEw$BynVshxudpGQHDRQaF4b7wb57A7NazGZcBUakYYLflp7J4E3UHK2qo/C1qXMCkRlYFlTd.SuwCsCKb7zBaUkb/
|
||||
user2@domaintwo.tld|{SHA512-CRYPT}$6$pDkaJmqaNJB0GNtl$692CLTUW1Z2C3kV1c9geJ7jWRrxqtT3eE7d/EEufEU2hI0br.SbLTItIfKPO9vhqpgWYB/bmUM7VRs7UZbN1w.
|
||||
user3@domainthree.tld|{SHA512-CRYPT}$6$y370fIl7h8PUWXkp$aC2Pp7xw2Gc9CSQW0cYORFfAOjzBJB8iu/GDFe9D4PVnE0aupFGdupm9db.7SU8Ur9T4eZyJ75.Be747XdDZ.0
|
2
test/config/relay-hosts/postfix-relaymap.cf
Normal file
2
test/config/relay-hosts/postfix-relaymap.cf
Normal file
|
@ -0,0 +1,2 @@
|
|||
@domaintwo.tld [other.relay.com]:587
|
||||
@domainthree.tld
|
1
test/config/relay-hosts/postfix-sasl-password.cf
Normal file
1
test/config/relay-hosts/postfix-sasl-password.cf
Normal file
|
@ -0,0 +1 @@
|
|||
@domaintwo.tld smtp_user_2:smtp_password_2
|
Loading…
Add table
Add a link
Reference in a new issue