[Newby Question] Restrict outgoing mail to specific domain #3529
-
|
This might possibly be an easy task, but as the title already says, this is my first time ever hosting an email server. I have a local mail server setup with the docker-mailserver container, that only serves the purpose of sending and accepting mail for my home lab. Everything works like a charm. It's not exposed to the internet and it's meant to just work with my internal domain, so I wanted to block outgoing mails to other than my internal domain, to avoid bouncing mails to public servers, that reject them anyways. I already searched for a solution and stumbled upon possibilities using transport maps and the Is there a (possibly simple) solution, so that my server rejects mail to other domains than my internal one? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Solution
This seems like the way to go, although there is no official DMS support for making that easier, it's not too difficult for you to configure with us 😎 Custom config files (without runtime scripts)Use our Then volume mount the config to Postfix docs for
Via
|
Beta Was this translation helpful? Give feedback.
Solution
This seems like the way to go, although there is no official DMS support for making that easier, it's not too difficult for you to configure with us 😎
Custom config files (without runtime scripts)
Use our
postfix-main.cfoverride to enabletransport_maps:Then volume mount the config to
/etc/postfix/transport, or alternatively, update that path above to point to your config volume (/tmp/docker-mailserver/path/to/transport):Postfix docs for
transporttable explain most …