Re: sendmail domain

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

 



On Thu, 2005-12-22 at 11:55, Paul Howarth wrote:
> >>  
> >>
> >>> i got a question n i studied for it but couldnt get satisfied
> >>> the question is
> >>> how sendmail server comes to know which domain it belongs to
> >>> i mean if there is a server mail.example.com
> >>> then how mail comes to know that it belongs to example.com domain
> >>
> >>
> >> You have to tell Sendmail which domains have to be treated as local -
> >> class {w} - or relay - class {R} - domains in a) local-host-names or b)
> >> in relay-domains.
> >>
> >>
> > That is also what the MX record in a domain's DNS is for.
> 
> The MX record tells MTAs where to send mail for the domain. The mail 
> server configuration files (e.g. /etc/mail/local-host-names for 
> sendmail) tell the server which domains it should accept mail for. 
> Mismatches between the two usually result in "Relaying denied" type 
> rejections.

Sendmail has an option to accept mail if it is the best MX
record and forward to the A record for the host, but needing
that means you did something wrong.  Normally you want all
the domains you accept in local-host-names (and note that
unlike some of the other files you have to restart sendmail
to pick up changes), and all of the relay configuration
done in mailertable.

-- 
  Les Mikesell
    lesmikesell@xxxxxxxxx



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux