LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-15-2004, 04:56 PM   #1
clinger
LQ Newbie
 
Registered: Mar 2004
Location: MT - USA
Distribution: Gentoo
Posts: 11

Rep: Reputation: 0
sendmail not sending mail


I searched the threads for a while, and couldn't find the response that I need. I apologize if this is a double post.

I am trying to set up a mail server using RH 9 and sendmail. I am able to receive mail, but just can't send it. Well, I can send mail to the account my ISP gave me, but no where else. (FYI - I am using the ISP account as a test account.) I'm using pine on the RH9 box to send the mail. Here is the header of the email I sent to my ISP email accout:
**********************************
Return-Path: <me@'mydomain.com'>
X-Original-To: clinging@myisp.com
Delivered-To: clinging@myisp.com
Received: from localhost (localhost.localdomain [127.0.0.1])
by mail01.myisp.net (Postfix) with ESMTP id 8E63EA470C
for <clinging@myisp.com>; Mon, 15 Mar 2004 15:21:24 -0700 (MST)
Received: from mail01.myisp.net ([127.0.0.1])
by localhost (mail01.myisp.net [127.0.0.1]) (amavisd-new, port 10024)
with LMTP id 31307-01-17 for <clinging@myisp.com>;
Mon, 15 Mar 2004 15:21:12 -0700 (MST)
Received: from hal.mydomain.com (srls-160-119.bzn-co-c7206-01.myisp.net)
by mail01.myisp.net (Postfix) with ESMTP id 878C0A466A
for <clinging@myisp.com>; Mon, 15 Mar 2004 15:17:28 -0700 (MST)
Received: from mydomain.com (localhost.localdomain [127.0.0.1])
by hal.mydomain.com (8.12.8/8.12.8) with ESMTP id i2FMHSu4015958
for <clinging@myisp.com>; Mon, 15 Mar 2004 15:17:28 -0700
Received: from localhost (me@localhost)
by mydomain.com (8.12.8/8.12.8/Submit) with ESMTP id i2FMHS01015954
for <clinging@myisp.com>; Mon, 15 Mar 2004 15:17:28 -0700
Date: Mon, 15 Mar 2004 15:17:28 -0700 (MST)
From: "Me" <me@'mydomain.com'>
To: clinging@myisp.com
Subject: New
Message-ID: <Pine.LNX.4.44.0403151516440.15953-100000@mydomain.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Virus-Scanned: by amavisd-new at myisp.net
**********************************
The part that worries me is this line: Received: from localhost (localhost.localdomain [127.0.0.1])

I don't think it should read localhost.localdomain, but I don't know how to change it.
 
Old 03-15-2004, 05:06 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Re: sendmail not sending mail

Quote:
Originally posted by clinger
The part that worries me is this line: Received: from localhost (localhost.localdomain [127.0.0.1])

I don't think it should read localhost.localdomain, but I don't know how to change it.
Yes, you will need to have most likely a valid domain so you can configure your email to send from, etc. You can edit this the correct way using the m4 files or do it like I do and just edit the sendmail.cf file.
 
Old 03-15-2004, 06:31 PM   #3
clinger
LQ Newbie
 
Registered: Mar 2004
Location: MT - USA
Distribution: Gentoo
Posts: 11

Original Poster
Rep: Reputation: 0
I do have a vaild domain name. I have been editing the sendmail.mc. What do I need to add so it doesn't try to send as localhost.localdomain?
 
Old 06-21-2004, 06:01 PM   #4
ugol
LQ Newbie
 
Registered: Jul 2003
Posts: 8

Rep: Reputation: 0
Hi Clinger. Apparently I have the same problem and I was wondering if you have resolved yours. If yes, could you please post what you did? Thanks in advance.
 
Old 06-22-2004, 11:04 PM   #5
artistikone
Member
 
Registered: Jul 2003
Distribution: slackware-current
Posts: 76

Rep: Reputation: 15
I've never setup sendmail before, but here's a helpful way to findout where that setting is to change it. Goto the applications folder, then:

grep -inr searchterm *

Ex: grep -inr localhost.localdomain *


This should show you all the files that contain that string.
 
Old 07-19-2004, 08:01 AM   #6
chomps
LQ Newbie
 
Registered: Apr 2004
Posts: 16

Rep: Reputation: 0
Hi guys

I've set up quite a few mail servers using sendmail and fetchmail. In answer to your previous question...if you look at your /etc/mail/sendmail.cf file you'll find a line that reads - Fw /etc/mail/local-host-name - under the heading "Local Info" this is pointing to a file in /etc/mail that represents the local domain name.

So now go to your local-host-name file and look in there you should see 'localhost' and maybe one or two other names this is where you shoud put in your registerd name (on a new line).

Save and restart sendmail

Hope this helps
 
Old 07-29-2004, 12:03 PM   #7
Setheck
LQ Newbie
 
Registered: Jul 2004
Location: FLorida USA
Distribution: Slackware
Posts: 25

Rep: Reputation: 15
Quote:
Originally posted by chomps
Hi guys

I've set up quite a few mail servers using sendmail and fetchmail. In answer to your previous question...if you look at your /etc/mail/sendmail.cf file you'll find a line that reads - Fw /etc/mail/local-host-name - under the heading "Local Info" this is pointing to a file in /etc/mail that represents the local domain name.
What if there is no "Local Info" heading ? How should i go about adding it?
 
Old 07-30-2004, 02:27 AM   #8
chomps
LQ Newbie
 
Registered: Apr 2004
Posts: 16

Rep: Reputation: 0
Ok...

Check in your .cf file in /etc/mail and you should have a line that starts with DS

Here's mine (an original obviously):

# "Smart" relay host (may be null)
DS

see if you can fiind this....

if you do then this is where you allow relaying.
now type in your relay host after the DS.
e.g.

DSsmtp.isp.com

Note: No spaces

This will allow your users internaly to send out mail.

also check - do you have a firewall and how is your MASQ and IPTABLES setup.
 
Old 07-30-2004, 02:29 AM   #9
chomps
LQ Newbie
 
Registered: Apr 2004
Posts: 16

Rep: Reputation: 0
Did you make a backup of your original .cf file before you started? - always make backups

If not I can send you the original that comes with the distro and you can work from that.
 
  


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 - not sending mail movitto Linux - Software 8 04-11-2007 12:04 AM
sendmail not sending mail dtra Linux - Software 1 06-09-2005 07:47 PM
Sending mail without running Sendmail geomonap Linux - Software 5 12-22-2004 06:34 AM
Sending mail without sendmail geomonap Linux - Security 2 12-21-2004 01:32 AM
Sending mail without running Sendmail geomonap Linux - General 1 12-20-2004 12:43 PM


All times are GMT -5. The time now is 10:56 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration