Sendmail help
Martin Schröder
martin at oneiros.de
Mon Jul 17 02:45:21 PDT 2006
2006/7/17, Justin Krejci <jus at krytosvirus.com>:
> On Sunday 16 July 2006 02:56 pm, Martin Schröder wrote:
> > I'm trying to get a machine w.x.y.z behind a NATting 3.9 fw with
> > dyndns to receive from outside (sending is already possible).
> >
> > Idea: The fw has a dyndns a.b.c.d with mx pointing to another dynds
> > b.c.d.e for the same machine, so the mail reaches the fw.
> >
> > How do I tell the sendmail on the fw to send mail it receives for
> > a.b.c.d to w.x.y.z? After entering a.b.c.d into
> > /etc/mail/relay-domains it accepts the mail, but then tries the mx for
> > a.b.c.d, which is not very helpfull (since it points to itself). An
> > entry in /etc/hosts exists pointing a.b.c.d to w.x.y.z
> >
> Sounds like you want some sendmail configuration help.
Indeed, that's what the subject says. :-)
> Search for this text - 18.8.3. Using a Smart Host
> on this page - http://www.faqs.org/docs/linux_network/x15291.html
>
> Shortcut addition to your sendmail.mc
> define(`SMART_HOST', `w.x.y.z')
A smart_host would work for _all_ outgoing mail, right? That's not what I want.
Now, the rewriting rule included in your pointer
LOCAL_NET_CONFIG
# This rule ensures that all local mail is delivered using the
# smtp transport, everything else will go via the smart host.
R$* < @ $* .$m. > $* $#smtp $@ $2.$m. $: $1 < @ $2.$m. > $3
looks like it would do the trick, but how do I make that work for a
machine that's not directly in my domain?
Best
Martin
More information about the Openbsd-newbies
mailing list