LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-24-2002, 03:30 AM   #1
rawbear
LQ Newbie
 
Registered: Dec 2002
Posts: 13

Rep: Reputation: 0
Sendmail- RH8.0- Looking for relay on localhost.com


Installed RH8. When I tr to send mail, (using sendmail -v user@domain.com) the server is looking for "localhost.com" wich, of course, cannot be resolved. The /etc/host is there and references localhost (at 127.0.0.1, the default).

Any Idea?
 
Old 12-24-2002, 06:03 AM   #2
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
maybe it's something to do with your domainname

this is what I see on mine, is that where you are seeing it?

Code:
sendmail -v david@hotmail.com
test 12345
.
david@hotmail.com... Connecting to localhost.mydomain.com. via relay...
.
220 slacker.mydomain.com ESMTP Sendmail 8.12.4/8.12.4; Tue, 24 Dec 2002 05:57:25 -0600
>>> EHLO slacker.mydomain.com
250-slacker.mydomain.com Hello IDENT:1000@localhost [127.0.0.1], pleased to meet you
 
Old 12-25-2002, 09:22 AM   #3
rawbear
LQ Newbie
 
Registered: Dec 2002
Posts: 13

Original Poster
Rep: Reputation: 0
I get:

david@hotmail.com... Connecting to localhost.com. via relay...
I eventually get an error messages that the name does not exist.

My domain is defined. This server was running 7.2. Mail worked fine. I formatted a new hard disk using 8.0, and gave it the real host name of my domain. I can ping anywhere and the server is visible.

On the old server, I get:

rturenne99@hotmail.com... Connecting to mx1.hotmail.com. via esmtp...
220 mc5-f26.law1.hotmail.com Microsoft ESMTP MAIL Service, Version: 5.0.2195.5600 ready at Wed, 25 Dec 2002 07:20:39 -0800

What changed between the two versions?
 
Old 12-25-2002, 09:27 AM   #4
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
It must just be the sendmail.cf that's different
 
Old 12-25-2002, 10:54 AM   #5
rawbear
LQ Newbie
 
Registered: Dec 2002
Posts: 13

Original Poster
Rep: Reputation: 0
Actually, sendmail.cf (although I modify .mc only) is the same on both systems. I will compare the .cf files and try to find what module is different.
'let you know.
 
Old 12-25-2002, 10:44 PM   #6
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
I normally use postfix.

I just remembered that I did have trouble with my sendmail on slack 8.1, not sure if it's installed the same, but it sounds like the same problem

here's what I did

http://www.linuxquestions.org/questi...892#post182892
 
Old 12-25-2002, 10:58 PM   #7
rawbear
LQ Newbie
 
Registered: Dec 2002
Posts: 13

Original Poster
Rep: Reputation: 0
I am now reinstalling RH8.0
I will try from a fresh install. If it still doesn't work, I will try postfix.
I can't beleive I'm the only one with this question!!! I have done the same install on two different computers in two different network environments!
 
Old 12-25-2002, 11:03 PM   #8
rawbear
LQ Newbie
 
Registered: Dec 2002
Posts: 13

Original Poster
Rep: Reputation: 0
David, what is the content of linux.smtp.mc in your example in the link you posted?
 
Old 12-25-2002, 11:31 PM   #9
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
Hey, I don't know how but the .mc files are gone.

the entire /cf/ folder is gone

I'm gonna open the package and get them back I guess.

Let you know in a few minutes
 
Old 12-25-2002, 11:35 PM   #10
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
ok not much to it. Here it is
must be the always add domain line

Code:
include(`../m4/cf.m4')
VERSIONID(`linux for smtp-only setup')dnl
OSTYPE(linux)
FEATURE(always_add_domain)dnl
MAILER(local)dnl
MAILER(smtp)dnl

Last edited by DavidPhillips; 12-25-2002 at 11:37 PM.
 
Old 12-25-2002, 11:39 PM   #11
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
I remember now, I uninstalled the sendmail-cf package

 
Old 12-26-2002, 08:21 AM   #12
rawbear
LQ Newbie
 
Registered: Dec 2002
Posts: 13

Original Poster
Rep: Reputation: 0
After a fresh install I get:

Dec 26 09:13:25 localhost sendmail[942]: gBQEDPtG000942: from=root, size=58, class=0, nrcpts=1, msgid=<200212261413.gBQEDPtG000942@localhost.localdomain>, relay=root@localhost
Dec 26 09:13:25 localhost sendmail[944]: gBQEDPiS000944: from=<root@localhost.localdomain>, size=360, class=0, nrcpts=1, msgid=<200212261413.gBQEDPtG000942@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Dec 26 09:13:25 localhost sendmail[942]: gBQEDPtG000942: to=rawbear99@hotmail.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30051, relay=localhost.localdomain. [127.0.0.1], dsn=2.0.0, stat=Sent (gBQEDPiS000944 Message accepted for delivery)

but it sits in the mailq... It is still insisting on a relay through localhost. I guess it's the default for this version. Why won't it send directly to the destination address?

I will now try your little config file.
 
Old 12-26-2002, 09:01 AM   #13
rawbear
LQ Newbie
 
Registered: Dec 2002
Posts: 13

Original Poster
Rep: Reputation: 0
I tried your little config. No change...
the mail sits in the mailq and eventualy I get a :"connection timed out with..."

But I can ping the receiving end. The DNS resolves.
???
 
Old 12-26-2002, 10:54 AM   #14
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
yes, mine still says relay=localhost.mydomainname, but it sends the mail
 
Old 12-26-2002, 11:00 AM   #15
rawbear
LQ Newbie
 
Registered: Dec 2002
Posts: 13

Original Poster
Rep: Reputation: 0
OK. Then I will starrt a new post and ask if ANYBODY has installed vanilla RH8.0 and was able to send mail...
 
  


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 Relay Help midmichmark Linux - Networking 1 12-29-2004 06:20 AM
relay mail to sendmail relay server??? lemay_jeff Linux - Newbie 0 07-06-2004 04:54 PM
How to connect in localhost for RH8.0? edhan Linux - Newbie 4 09-05-2003 07:01 PM
Localhost Login...okay but I can't. Using RH8. Frogmum Linux - Distributions 1 03-15-2003 07:40 PM
can't relay to other domains except LOCALHOST netkepala Linux - Software 4 10-13-2002 11:34 AM


All times are GMT -5. The time now is 01:40 AM.

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