~foxcpp/maddy

1

Setup SMTP relay

Jonas Müller <jonas-mueller@mailbox.org>
Details
Message ID
<C8M83UATR2O5.1CBF3H47DQ4VT@tiggercloud>
DKIM signature
missing
Download raw message
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
Details
Message ID
<78aa58f29d8c54ae95ccc2baf9766848@disroot.org>
In-Reply-To
<C8M83UATR2O5.1CBF3H47DQ4VT@tiggercloud> (view parent)
DKIM signature
missing
Download raw message
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
Reply to thread Export thread (mbox)