LinuxQuestions.org
Help answer threads with 0 replies.
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, 09: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, 12: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, 03:16 PM   #3
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
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, 03: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, 04:01 PM   #5
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
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, 09:41 PM   #6
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:44 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