[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vps-mail] Multiple domain on VPS - rDNS for mail doesn't match mail server



At 17:31 2004-01-22, you wrote:
On Thu, Jan 22, 2004 at 04:35:05PM +0100, Marjolein Katsma wrote:
> The server actually services three domains; main domain javawoman.com, with
> two more, all serviced by the
> same email server (sendmail) at the same IP address (additional domains set
> up as virtual domains in sendmail config).
>
> Is there some way I can adapt the sendmail configuration so that for each
> of the domains it reports the correct mail server host name? Or something
> else I can do to correct this?

  No.
  Understanding how the protocol works behind the scenes helps to explain
why.  There is a definite format to the conversation -- sort of like a
scripted telephone call.  When a mail program runs, it listens for
connections on a specified ip/port  (comparable to your phone number).  When
it receives a connection, it has access only to the ip from which it
comes (sort of like caller-id)  The first thing the smtp protocol requires is
that the answering server announces who it is.  (Hello, this is the Hind
residence).

Right - I *do* understand that.

But when someone sends mail to anaddress@xxxxxxxxxx the mail server says it's javawoman.com. DNS has an MX record for hshelp.com, hshelp.com resolves to an IP - but the rDNS for that IP is javawoman.com.

This non-match is the problem.

At this point you have no idea who the email is for, or who is
actually sending it. It is only later in the conversation that the sender and
recipient (including recipient domain) are identified.  So how can you know
what name to use when you answer.

It should be, I think, the domain name of the mail server the sender is connecting to. Which would be hshelp.com, not javawoman.com.

(Now admittedly, when I answer the phone,
and the caller-id shows that it is one of my wife's friends, I sometimes
answer with "Hello, this is Callie's house") But I don't think that sendmail
is configurable to answer differently based on incoming IPs, and furthermore
it wouldn't be very practical...

Incoming IPs aren't relevant here. Sender connects to mail server for hshelp.com, which identifies itself as javawoman.com.

Many ISPs are blocking mail from mail servers with such incorrect rDNS data.


--
Marjolein Katsma

======================================================================
This is <vps-mail@xxxxxxxxxxxx>       <http://www.perlcode.org/lists/>
Before posting a question, please search the archives (see above URL).


Main Index | Thread Index
Match: Format: Sort by:
Search: