Paul de Weerd <we...@weirdnet.nl> writes:

> For the sendmail heroes out there...  Let's say I have the following
> in DNS:
>
> $ORIGIN example.com.
> @     IN      MX      10      mx1
> @     IN      A       192.0.2.1
> @     IN      AAAA    2001:db8::1
> mx1   IN      A       192.0.2.2
> mx1   IN      AAAA    2001:db8::2
> www   IN      A       192.0.2.1
> www   IN      AAAA    2001:db8::1
>
> $ORIGIN 2.0.192.in-addr.arpa.
> 1     IN      PTR     example.com.
> 2     IN      PTR     mx1.example.com.
>
> $ORIGIN 
> 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa.
> 1     IN      PTR     example.com.
> 2     IN      PTR     mx1.example.com.
>
> (assume there's SOA and NS records too, they're not relevant to the
> question)
>
> Now on machine 'www.example.com' (this is the hostname set in
> /etc/myname) I would like to send e-mail to x...@example.com.  However,
> sendmail ignores the MX record and attempts local delivery (which
> fails, because 'xxx' is not a local user).
>
> There's a ton of ways to solve this:
>
>       - get rid of sendmail
>       - change PTR records to www.example.com

I'd really go with this.

>       - relay all mail via a smarthost (e.g. mx1.example.com)
>       - rewrite to @mx1.example.com and fix on mx1
>       - run a local resolver that lies about PTRs
>       - ...
>
> However, I'd like to not do any of these but simply instruct sendmail
> to ignore what PTRs are saying local IPs are called.  I don't want to
> make an exception for whatever happens to be in PTR, my sendmail
> config is vanilla OpenBSD defaults and I expect all mail to be
> delivered according to what's in DNS (except for mail to
> www.example.com, the actual hostname (although I'd be interested to
> learn how to do the same for mails directed @www.example.com)).
>
> Can anybody think of a way to achieve this ?

http://weldon.whipple.org/sendmail/removew.html discusses this and gives
solutions.

HTH

> Thanks,
>
> Paul 'WEiRD' de Weerd


-- 
Jérémie Courrèges-Anglas
GPG Key fingerprint: 61DB D9A0 00A4 67CF 2A90  8961 6191 8FBF 06A1 1494

Reply via email to