LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 06-26-2001, 10:59 AM   #1
lil'loo
LQ Newbie
 
Registered: Jun 2001
Location: New Mexico
Posts: 1

Rep: Reputation: 0
Question Need help with SENDMAIL!!!!!


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!
 
Old 06-26-2001, 01:36 PM   #2
GonzoJohn
Member
 
Registered: Jun 2001
Location: Louisville, KY USA
Distribution: RedHat and Debian
Posts: 89

Rep: Reputation: 15
Check your /etc/hosts file.

This is where the address is coming from.
 
Old 06-26-2001, 04:16 PM   #3
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
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..

Jamie...
 
Old 06-26-2001, 04:34 PM   #4
GonzoJohn
Member
 
Registered: Jun 2001
Location: Louisville, KY USA
Distribution: RedHat and Debian
Posts: 89

Rep: Reputation: 15
I'm pretty sure he meant sendmail as in the sendmail server daemon. At least that was what I was advising him about. When you see the address:

joeblow@mycomputer.mydomain.com

usually, the domain is being pulled from /etc/hosts, or at least, that's my understanding.
 
Old 06-26-2001, 05:01 PM   #5
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
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.

cheers.

Jamie...
 
Old 06-26-2001, 10:41 PM   #6
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
You can always hack at your sendmail.cf file.

Remove the $w from this line and hardcode in your domain name.

Code:
# my official domain name
# ... define this only if sendmail cannot automatically determine your domain
#Dj$w.mydomainname.COM
Djmydomainname.COM
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Sendmail ignores my sendmail smarthost entry Paul_assheton Linux - General 1 03-17-2009 08:55 AM
FC4 and Sendmail - Cannot create sendmail.pem Balderayne Linux - Security 2 11-09-2005 03:55 PM
php+ sendmail no good - python + sendmail ok nephish Linux - Networking 1 10-07-2005 02:19 PM
Sendmail - RunAsUser=sendmail:mail/What files to i have to change ForumKid Linux - Security 45 01-18-2002 12:47 PM
sendmail (dont just ignore it 'cause its got sendmail in the subject :P) GnomeKing Linux - Networking 1 11-12-2001 10:57 PM


All times are GMT -5. The time now is 12:57 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration