Closed msimerson closed 3 months ago
Address must be a string, not an array of strings. Look at the example config again :)
In your case the config would be
[[default]]
address="0.0.0.0"
name="mail.tnpi.biz"
[[default]]
address="::"
name="mail.tnpi.biz"
As your pool config doesn't have a valid address string it went back to its default config which uses os.hostname
Indeed! Thanks @louis-lau! My error was specifying both IPv4 and IPv6 incorrectly.
This PR is really more of an issue (with a patch) than a serious PR.
I've set up an instance of wildduck (with webmail, zonemta, zone-mta-admin, and Haraka) roughly following the setup scripts. It's running in a container with only private addresses (172.16.15.64 & fd7a:e5cd:1fc1:8901:dead:beef:cafe:40). Redirection and NAT rules map traffic to and from the container and its public IPs. The hostname within the container is
wildduck
and it has matching forward and reverse DNS (split horizon).zone-mta/pools.toml
plugins/wildduck.toml
Having read the comment
# optional hostname to be used in headers
, inplugins/wildduck.toml
, I expect that ZoneMTA will use the configured [host]name setting and that SMTP connections made to and from ZoneMTA will reflect these settings in the headers.Instead, the HELO hostname and the hostname included in headers is
os.hostname()
.Mail Headers (without patch)
Mail Headers (with patch)
Note the ZoneMTA hostname difference in the two Received headers.
I was poking in the code looking for where that hostname could be passed in and used but didn't find it. Yet. I suspect this is the underlying issues behind #162.
Is there a way to configure the hostname in ZoneMTA that I'm missing?