LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Sendmail- RH8.0- Looking for relay on localhost.com (https://www.linuxquestions.org/questions/linux-software-2/sendmail-rh8-0-looking-for-relay-on-localhost-com-39259/)

rawbear 12-24-2002 03:30 AM

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?

DavidPhillips 12-24-2002 06:03 AM

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


rawbear 12-25-2002 09:22 AM

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?

DavidPhillips 12-25-2002 09:27 AM

It must just be the sendmail.cf that's different

rawbear 12-25-2002 10:54 AM

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.

DavidPhillips 12-25-2002 10:44 PM

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

rawbear 12-25-2002 10:58 PM

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!

rawbear 12-25-2002 11:03 PM

David, what is the content of linux.smtp.mc in your example in the link you posted?

DavidPhillips 12-25-2002 11:31 PM

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

DavidPhillips 12-25-2002 11:35 PM

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


DavidPhillips 12-25-2002 11:39 PM

I remember now, I uninstalled the sendmail-cf package

:)

rawbear 12-26-2002 08:21 AM

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.

rawbear 12-26-2002 09:01 AM

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.
???

DavidPhillips 12-26-2002 10:54 AM

yes, mine still says relay=localhost.mydomainname, but it sends the mail

rawbear 12-26-2002 11:00 AM

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


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