fix warning

This commit is contained in:
furstblumier 2024-04-09 14:14:02 +02:00
parent 3641fa4317
commit 4b0975d437
No known key found for this signature in database
GPG Key ID: 2227382EB67D8969
1 changed files with 3 additions and 2 deletions

View File

@ -88,8 +88,9 @@ maillog_file = /var/log/postfix.log
Let's highlight some of the important parts. Remove any mentions of `mail.example.com` from `mydestination`, in fact you can just set localhost or nothing at all here. We want all the mail to be relayed. For good measure also disable `local_recipient_maps`. I'll skip over the TLS parts. You should use a proper certificate for `mail.example.com`. You can also harden your host as you want. Important are `transport_maps = hash:/etc/postfix/transport` and `relay_domains = $mydestination, hash:/etc/postfix/relay` which I will show in a second. Furthermore `mynetworks` should contain your VPN network.
!!! warning Open relay
Please be aware that setting `mynetworks` to a public CIDR will leave you with an open relay. **Only** set it to the CIDR of your VPN beyond the localhost ranges.
!!! warning "Open relay"
Please be aware that setting `mynetworks` to a public CIDR will leave you with an open relay. **Only** set it to the CIDR of your VPN beyond the localhost ranges.
Let's look at `/etc/postfix/transport`:
```txt