Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am running RedHAt 6.2 and using a using the SENDMAIL but when I test it out it, shows the incorrect email addy. Instead of "jdoe@mybusiness.com", it reads my address as "jdoe@mycomputer.mybusiness.com" . What can I do to fix this? Please help!
When you send mail from the command line? Or in a tool? If its being sent from a tool just adjust your from address... If its from the command line then you need to get sendmail to rewrite your outgoing address.
/etc/hosts is only used for name lookups. You could change your machine name by editing /etc/hostname but that won't solve the problem just change it a little..
My understanding is that /etc/hosts is only used for the lookup of ip address. The hostname itself is set in /etc/HOSTNAME (on my Slackware boxes) which holds something like machineName.domainName.parentDomain.net, this is read at boot time and used in a call to hostname in one of the scripts that looks something like
Code:
/bin/hostname `cat /etc/HOSTNAME | cut -f1 -d .`
Sendmail constructs the from address using the hostname and the username. There would be nothing to stop you (although it would break a few things!) from having no mention of your IP address in /etc/hosts but your hostname itself would still be set.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.