Have a look at Postfix "transport maps" I think Weitse already suggested
it and it's what I'm using.

It's just a one liner config file.

This is mine:

$ cat /etc/postfix/transport_maps
# Mail to anyone at opendmz.com is sent via SMTP to haproxy
opendmz.com smtp:haproxy:10025

The haproxy is an unnecessary layer of complication I added, but it
could just as easily be your home IP.
I'm using dynamic DNS in case my home IP changes, but it hasn't changed
in over 3 years now!

for example:

opendmz.com smtp:my-home-ip.dyndns.org:25


On 10/06/2019 00:02, Ronald F. Guilmette wrote:
> Yes, yes, and yes.  This definitely sounds a lot like what I want to
> do.  I've just never set up Postfix as a relay before, so I haven't
> even been thinking in those terms, because I don't even know how to do
> this... yet.
>
> Thanks for the suggestion.  I have a lot of reading to do.

Reply via email to