Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
12-08-2005, 02:52 PM
|
#1
|
Member
Registered: Jul 2005
Distribution: RHEL, Mint, Ubuntu
Posts: 32
Rep:
|
sendmail using wrong hostname
I maintain a server on a LAN that is having problems with sendmail. The daily logwatch emails sent to root are sometimes returned because of an incorrectly spelled hostname. Other times they get through, and the hostname in the headers look fine. When I send emails from pine, they always go through correctly. However, in all situations /var/log/maillog misspells the hostname. The hostname listed in /etc/hosts and /etc/sysconfig/network is correct. Can someone help with this? Thanks in advance.
The returned email:
Code:
Subject:
Returned mail: see transcript for details
From:
Mail Delivery Subsystem <MAILER-DAEMON@sallly.network.com>
Date:
Thu, 8 Dec 2005 04:17:35 -0800
To:
root@sallly.network.com
X-Account-Key:
account4
X-UIDL:
@D3!!,Be"!"o6!!-2_!!
X-Mozilla-Status:
0001
X-Mozilla-Status2:
10000000
Received:
from sallly.network.com (sally.network.com [xxx.xxx.xxx.xxx]) by mailserver.network.com (8.12.10/8.12.10) with ESMTP id jB8CHZ60024468 for <schen@network.com>; Thu, 8 Dec 2005 04:17:35 -0800 (PST)
Received:
from localhost (localhost) by sallly.network.com (8.11.6/8.11.6) id jB8CHZi20209; Thu, 8 Dec 2005 04:17:35 -0800
Message-ID:
<200512081217.jB8CHZi20209@sallly.network.com>
MIME-Version:
1.0
Auto-Submitted:
auto-generated (failure)
X-Spam-Checker-Version:
SpamAssassin 2.63 (2004-01-11) on dagalas
X-Spam-Level:
*
X-Spam-Status:
No, hits=1.1 required=5.0 tests=NO_DNS_FOR_FROM autolearn=no version=2.63
X-network.com-MailScanner-Information:
Please contact the ISP for more information
X-network.com-MailScanner:
Found to be clean
Content-Type:
multipart/report; report-type=delivery-status; boundary="jB8CHZi20209.1134044255/sallly.network.com"
X-UIDL:
@D3!!,Be"!"o6!!-2_!!
The original message was received at Thu, 8 Dec 2005 04:02:01 -0800
from root@localhost
----- The following addresses had permanent fatal errors -----
schen@network.com
(reason: 553 5.1.8 <root@sallly.network.com>... Domain of sender address root@sallly.network.com does not exist)
(expanded from: root)
----- Transcript of session follows -----
... while talking to mail.network.com.:
>>>>>> MAIL From:<root@sallly.network.com> SIZE=312
<<< 553 5.1.8 <root@sallly.network.com>... Domain of sender address root@sallly.network.com does not exist
501 5.6.0 Data format error
Reporting-MTA: dns; sallly.network.com
Arrival-Date: Thu, 8 Dec 2005 04:02:01 -0800
Final-Recipient: RFC822; root@sallly.network.com
X-Actual-Recipient: RFC822; schen@network.com
Action: failed
Status: 5.1.8
Diagnostic-Code: SMTP; 553 5.1.8 <root@sallly.network.com>... Domain of sender address root@sallly.network.com does not exist
Last-Attempt-Date: Thu, 8 Dec 2005 04:17:35 -0800
Subject:
LogWatch for sally
From:
root <root>
Date:
Thu, 8 Dec 2005 04:02:01 -0800
To:
root
Return-Path:
<root>
Received:
(from root@localhost) by sally.network.com (8.11.6/8.11.6) id jB8C21D19511 for root; Thu, 8 Dec 2005 04:02:01 -0800
Message-ID:
<200512081202.jB8C21D19511@sally.network.com>
################## LogWatch 2.6 Begin #####################
--------------------- sendmail Begin ------------------------
6095 bytes transferred
2 messages sent
---------------------- sendmail End -------------------------
###################### LogWatch End #########################
Part 1.2
Content-Type:
message/delivery-status
LogWatch for sally.eml
Content-Type:
message/rfc822
The correct hostname is sally, but sendmail thinks it's sallly. I've replaced the real domain with network.com.
|
|
|
12-08-2005, 05:10 PM
|
#2
|
Senior Member
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029
Rep:
|
if you type:
hostname
what do you get?
|
|
|
12-08-2005, 05:27 PM
|
#3
|
Member
Registered: Jul 2005
Distribution: RHEL, Mint, Ubuntu
Posts: 32
Original Poster
Rep:
|
Quote:
Originally Posted by Finlay
if you type:
hostname
what do you get?
|
I get the correct hostname, 'sally' with two l's.
|
|
|
12-08-2005, 05:33 PM
|
#4
|
Senior Member
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029
Rep:
|
did you generate your own sendmail.cf file?
what do you get when you type:
cat /proc/sys/kernel/hostname
|
|
|
12-08-2005, 05:59 PM
|
#5
|
Member
Registered: Jul 2005
Distribution: RHEL, Mint, Ubuntu
Posts: 32
Original Poster
Rep:
|
cat /proc/sys/kernel/hostname gives the correct hostname. I don't know how sendmail.cf was generated, since sendmail was already set up when I started administrating this machine.
|
|
|
12-08-2005, 08:08 PM
|
#6
|
Member
Registered: Sep 2005
Posts: 128
Rep:
|
check your /etc/mail/local-mailer-table
Its probably spelled wrong in there. With sendmail using the hostname as the "domain" is only the default action when the domain is not spelled out with the "Cw" directive either via the cf file or a local-mailer-table.
|
|
|
12-09-2005, 02:53 PM
|
#7
|
Member
Registered: Jul 2005
Distribution: RHEL, Mint, Ubuntu
Posts: 32
Original Poster
Rep:
|
This computer doesn't have /etc/mail/local-mailer-table. It did have blank file named /etc/mail/mailertable. I tried putting this line:
sally.gps.caltech.edu smtp:sally.gps.caltech.edu
in it and re-generated mailer-table.db and restarted sendmail, but the mail log is still displaying the wrong hostname. I couldn't find any mention of the incorrect hostname, "sallly", in /etc/sendmail.cf or in any of the files in /etc/mail.
|
|
|
All times are GMT -5. The time now is 04:13 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|