<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7232.36">
<TITLE>RE: sendmail domain </TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>

<P><FONT SIZE=2>type<BR>
<BR>
nslookup<BR>
<BR>
set query=mx<BR>
www.domaininquery.com<BR>
<BR>
<BR>
Regards<BR>
Danny Wong<BR>
<BR>
-----Original Message-----<BR>
From: fedora-list-bounces@redhat.com on behalf of David L. Gehrt<BR>
Sent: Fri 12/23/2005 12:50 PM<BR>
To: For users of Fedora Core releases<BR>
Subject: Re: sendmail domain<BR>
<BR>
> Alexander Dalloz wrote:<BR>
><BR>
> >Am Do, den 22.12.2005 schrieb azeem ahmad um 16:23:<BR>
> ><BR>
> > <BR>
> ><BR>
> >>i got a question n i studied for it but couldnt get satisfied<BR>
> >>the question is<BR>
> >>how sendmail server comes to know which domain it belongs to<BR>
> >>i mean if there is a server mail.example.com<BR>
> >>then how mail comes to know that it belongs to example.com domain<BR>
> >>Regards<BR>
> >>Azeem<BR>
> >>   <BR>
> >><BR>
> ><BR>
> >You have to tell Sendmail which domains have to be treated as local -<BR>
> >class {w} - or relay - class {R} - domains in a) local-host-names or b)<BR>
> >in relay-domains.<BR>
> ><BR>
> >Alexander<BR>
> ><BR>
> ><BR>
> > <BR>
> ><BR>
> That is also what the MX record in a domain's DNS is for.<BR>
><BR>
> Justin Willmert<BR>
<snip><BR>
<BR>
Actually sendmail,in the absence of  any other attempt to inform it will<BR>
try to determine the short host name and domain name for system on which<BR>
it is  running.  [see  hostname (1)]. An  MX record only  identifies the<BR>
reference, and host  to which mail for a host  should be redirected.  As<BR>
in:<BR>
<BR>
hosta  [IN]            MX       N,MXhost<BR>
<BR>
When mail is directed to hosta (e.g. mailbox1@hosta.domain1) it will get<BR>
sent to  MXhost (e.g. mailbox1@MXhost.domain2)  assuming the preference,<BR>
N, is lower than the preferences for any other MX records owned by (for)<BR>
hosta.  The  two domains, do  main1 and domain2,  may or may not  be the<BR>
same.<BR>
<BR>
N.B.-- You should be careful about the way you specify host names in DNS<BR>
resource records, especially whether they are or are not FQDNs.<BR>
<BR>
The DNS MX  resource record does not inform sendmail  of the domain name<BR>
of the host on which it is  running, hosta in the above example.  By the<BR>
time sendmail gets to looking up MX  stuff it will have come up with the<BR>
value  for the "$w"  macro.  It  has been  some time  since I  looked at<BR>
sendmail sources but IIRC the owner  of the A record is the way sendmail<BR>
would prefer to use in the absence of a more explicit setting of $w.<BR>
<BR>
dlg<BR>
<BR>
--<BR>
fedora-list mailing list<BR>
fedora-list@redhat.com<BR>
To unsubscribe: <A HREF="https://www.redhat.com/mailman/listinfo/fedora-list">https://www.redhat.com/mailman/listinfo/fedora-list</A><BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>