Update relayhost_map with virtual accounts too

Previously, only postfix-relaymap.cf and postfix-accounts.cf would be
used to populate the relayhost_map file.

Now, also use postfix-virtual.cf when present. To me, there is nothing
absurd about sending mail "From:" a virtual account (or more
specifically its domain) so it makes sense that when a $RELAY_HOST is
defined it should be used for virtual accounts as well.
This commit is contained in:
mwnx 2020-08-24 22:53:54 +02:00
parent 1286a1266b
commit 42352a3259
4 changed files with 25 additions and 3 deletions

View file

@ -0,0 +1 @@
@domain1.tld user1@domainone.tld