Jonathan,

The below is assuming that the box you're referring to is at a different
physical location hooked to your web hosting companies network.  If the
leased computer is not hooked to your web hosting companies network and is
in fact sitting in front of you on the job then ignore this letter.

Your machine's hostname isn't directly tied into whether or not you can
receive email through the machine.  Normally the information stored in the
areas you are changing in linuxconf would correspond to the machines
canonical name, which is the name of the machine on the physical network
it's plugged into.  In other words, you shouldn't change this.  By way of
explanation, your computer is [probably] part of a network of computers:

                            Internet
                                |
                           webhost.com  (main server at the web co)
Your webserver's LAN            |
---------------------------------------------------------------------
   |          |        |        |       |        |        |       |
alpha       beta     gamma    delta   epsilon   zeta     eta    theta

Above are a list of possible machines owned by the company.  Their
canonical (real) names will be alpha.webhost.com, beta.webhost.com, etc.
These are the names that need to go in the linux configuration section
you're referring to unless the webhosting company has agreed to allow your
machine to take on a different name.  If so the name then would become
"yourname.webhost.com".

The dns entry you're referring to we normally refer to as a virtual
domain.  Note that a canonical name refers to the *machines* real name and
speaks of the entire machine. A virtual domain refers to a small section
of files on that machine that are set aside for other use, such as www,
mail, etc.  On the Linux machines I've used these virtual domains have
always resided in /home/httpd/html, with the user's home directories in
/home.  PC's normally have 1 canonical name but can have any number of
virtual domains or aliases.

To get your dns entry to work for email you need to configure sendmail so
that it knows what domains to accept mail from.  Very briefly (assuming
Sendmail is installed and configured);

1) Add the domain names to /etc/sendmail.cw, the canonical and virtual
domain[s]:

# domain name only
zeta.webhost.com
mydomain.com

2) Add them to /etc/mail/virtusertable, including all users who have email
addresses on the system:

#  email address        user
[EMAIL PROTECTED]       bill
[EMAIL PROTECTED]       fred
[EMAIL PROTECTED]   cindylou
@mydomain.com           theboss
@zeta.webhost.com       theboss

In the above example all mail to the machine's canonical name goes to
"theboss".  Mail to the virtual domain goes to the user it's assigned to.
Leftover mail goes to "theboss".

Then restart sendmail from the command prompt:

/etc/rc.d/init.d/sendmail restart

This will tell sendmail to rehash, newalias, or reread all the necessary
files associated with sendmail.

Glen



On Fri, 15 Sep 2000, Jonathan Wilson wrote:

>Howdy,
>
>Hmm, I'm not sure how to ask this. it goes like this:
>
>We've leased a Red Hat server at a hosting co. When we first leased it it 
>didn't have a domian name, so the hosting co filled in what basically 
>amounts to bogus host info. Now we have a dns entry pointing to the IP of 
>this box, and I need to set up linuxconf correctly.
>
>I'm used to suse, where there's only one line to fill out:
>
>       hostname.domain_or_workgroup_name[.tld if any]
>
>however linuxconf has several places, which I find very confusing:
>
>linuxconf  > Client Tasks > Basic Host information and
>                             Name Server specification
>
>
>I really can't figure out how to set these up properly, I thought I had it 
>right, but nothing changed, and email still won't go through.
>
>Can anyone give a short explanation of what to put where? Pleas note that 
>this isn't a DNS server; I'm just trying to get the server's own hostname 
>working properly?
>
>I need to know what goes in these places:
>
>linuxconf  > Client Tasks > Basic Host information
>                               Hostname:
>                               Primary name + domain name:
>                               Aliases
>linuxconf  > Client Tasks > Name Server specification
>                               [X] DNS is required for normal operation
>                               default domain:
>
>       JW
>
>
>
>_______________________________________________
>Redhat-list mailing list
>[EMAIL PROTECTED]
>https://listman.redhat.com/mailman/listinfo/redhat-list
>



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to