Hello,
I'm trying to set up maddy on my home server, which potentially gets a new IP every night. Receiving e-mails works fine, sending currently doesn't due to the mismatch between my MTA hostname and the hostname associated with my current IP. My ISP is not particularly helpful and won't set a PTR unless I buy a static IP. They offer a "smarthost" on mail.mnet-online.de though, which is supposed to act as a SMTP relay.
Can someone give me a hint, how I would configure this inside my /etc/maddy/maddy.conf?
Kind regrads,
Jonas
Hi Jonas.
> Can someone give me a hint, how I would configure this inside my /etc/maddy/maddy.conf?
Block "target.remote outbound_delivery" is responsible for delivery of messages
for non-local domains.
You can replace target.remote with target.smtp (or target.lmtp if using LMTP),
see manual page maddy-targets[1] for details.
E.g. in your case it could be
target.smtp outbound_delivery {
require_tls
targets tcp://mail.mnet-online.de:25
}
Cheers,
Max
[1]: https://foxcpp.dev/maddy/man/_generated_maddy-targets.5/#smtp-transparent-forwarding-module-targetsmtp