LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 06-14-2004, 09:50 AM   #1
bper
Member
 
Registered: Oct 2003
Posts: 64

Rep: Reputation: 15
Sendmail and domain names on Redhat 9


Hi,

I originally set up sendmail to work with my machine named abc.net. I later obtained a permanent domain name and static ip address.
How do I now configure sendmail (or change my machine name) to emails sent from my new domain name (me@newdomain.net) rather than from me@abc.net?
I'm running redhat linux 9 with command line interface only.

Thanks.
 
Old 06-14-2004, 01:47 PM   #2
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
bper

First off choose a new name for your machine in this example we'll call it linux

Edit /etc/hosts to look like this
127.0.0.1 linux.newdomain.net linux localhost.localdomain localhost

edit /etc/sysconfig/network to look like this
NETWORKING=yes
HOSTNAME=linux

edit /etc/mail/local-host-names add your newdomain
newdomain.net

Reboot to let the changes take effect assuming your new domain will resolve via DNS, Sendmail always checks this, you should be able to send mail as me@newdomain.net

By the way abc.net is a registered domain

Regards

Pete
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
domain names xaos5 Linux - Networking 2 06-09-2005 02:03 AM
A question about domain names Nukem General 2 01-11-2004 05:17 PM
Domain Names...? cparker15 Linux - Networking 8 08-27-2003 07:13 AM
Domain Names Timbo General 7 02-14-2003 03:10 PM
domain names cic Linux - Networking 3 06-11-2002 03:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 07:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration