On Thu, Mar 21, 2013 at 12:23:18PM +0100, Paul de Weerd wrote:
>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).

Are you sure this is becaus of the PTR record (according to the subject of
your email)?  I think sendmail looks up the A and MX record for
example.com and sees that the A record is a local IP.
So, do you need the A record for example.com?  In case this record is only
needed for those who omit www when trying to visit your website, you might
try to use a CNAME instead.

Maurice

Reply via email to