can't use sendmail after Redhat 9 installation

I performed a fairly standard RH9 installation.  When done, I cannot use/send mail whether to local accounts or remote addresses.  the error is always the same.  A sample of that follows:

Summary of    mail -vs 'hi' webringinc@yahoo.com

 webringinc@yahoo.com... Connecting to [127.0.0.1] via relay...
220 c.webring.com ESMTP Sendmail 8.12.8/8.12.8; Tue, 25 Nov 2003
16:11:20 -0800
>>> EHLO c.webring.com
250-c.webring.com Hello localhost [127.0.0.1], pleased to meet you
250 ENHANCEDSTATUSCODES
>>> MAIL From:<root@c.webring.com>
550 5.0.0 Access denied
root... Using cached ESMTP connection to [127.0.0.1] via relay...
>>> RSET
250 2.0.0 Reset state
>>> MAIL From:<>
550 5.0.0 Access denied
postmaster... Using cached ESMTP connection to [127.0.0.1] via relay...
>>> RSET
250 2.0.0 Reset state
>>> MAIL From:<>
550 5.0.0 Access denied
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 c.webring.com closing connection

thanks
webringincAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jlevieCommented:
It sounds like your system is confused as to its identity. Your hosts file must contain at least:

127.0.0.1      localhost.localdomain localhost

and if you have a static IP (pretty much required for a mail server) there should also be a record like:

1.2.3.4           c.webring.com c

Additionally /etc/mail/acess needs to contain:

localhost.localdomain           RELAY
localhost                       RELAY
127.0.0.1                       RELAY

/etc/mail/local-host-names should contain:

c.webring.com
webring.com

As shipped, a RedHat Sendmail configuration will only listen for SMTP connections on the localhost IP (as a security measure). This is easily changed by editing /etc/mail/sendmail.mc and commenting out the line that reads:

DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

Then build a new sendmail.cf and restart sendmail.
                                                                               
webringincAuthor Commented:
All those items are correct and verified.  I built 5 systems simultaneously.  3 fail and two work without any changes that I'm aware of.  It appears to be a permission problem somewhere, but I'm darned if I know where.  here's the sample from one that works and one that fails.  Note how it stops processing partway through the initial startup phase.


WORKS:
[root@chk2 mail]# mail -vs 'testing' webringinc@webring.com
ok
.
Cc:
webringinc@webring.com... Connecting to [127.0.0.1] via relay...
220 chk2.webring.com ESMTP Sendmail 8.12.8/8.12.8; Wed, 26 Nov 2003
09:09:11 -0800
>>> EHLO chk2.webring.com
250-chk2.webring.com Hello localhost.localdomain [127.0.0.1], pleased
to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> MAIL From:<root@chk2.webring.com> SIZE=48
250 2.1.0 <root@chk2.webring.com>... Sender ok
>>> RCPT To:<webringinc@webring.com>
>>> DATA
250 2.1.5 <webringinc@webring.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 hAQH9BJC028150 Message accepted for delivery
webringinc@webring.com... Sent (hAQH9BJC028150 Message accepted for
delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 chk2.webring.com closing connection

FAILS:
[root@c mail]# mail -vs 'testing' webringinc@webring.com
ok
.
Cc:
webringinc@webring.com... Connecting to [127.0.0.1] via relay...
220 c.webring.com ESMTP Sendmail 8.12.8/8.12.8; Wed, 26 Nov 2003
09:07:01 -0800
>>> EHLO c.webring.com
250-c.webring.com Hello localhost.localdomain [127.0.0.1], pleased to
meet you
250 ENHANCEDSTATUSCODES
>>> MAIL From:<root@c.webring.com>
550 5.0.0 Access denied
root... Using cached ESMTP connection to [127.0.0.1] via relay...
>>> RSET
250 2.0.0 Reset state
>>> MAIL From:<>
550 5.0.0 Access denied
postmaster... Using cached ESMTP connection to [127.0.0.1] via relay...
>>> RSET
250 2.0.0 Reset state
>>> MAIL From:<>
550 5.0.0 Access denied
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 c.webring.com closing connection
moshe3Commented:
Sendmail is very verbose regarding problems. Look at /var/log/maillog as soon as an e-mail fails and you will get a better (I assume) understanding for the problem's source.

Moshe Shemesh

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

jlevieCommented:
Well, something is obviously different about the systems you've built. Details about the install procedure and any post-install procedures would be helpful.

Are you using the stock RH 9 Sendmail and config (with the exception of commenting out the localhost restriction in /etc/mail/sendmail.mc)?

Are the systems up to date w/respect to the RH 9 errata?

After install have you added to or replaced any of the RedHat packages?
webringincAuthor Commented:
Moshe,

Thanks, that lead to the problem.  I had not added 127.0.0.1 to the TCPWrappers as allowed.  Never have had to do that before.  Anyway, that fixed the problem when I did that.
mylilalienCommented:
For reference in the hope it will help others:

I was receiving 550 5.0.0 Access Denied from sendmail when sending and receiving emails from/to my domain. I edited my /etc/hosts.allow file as follows:

sendmail : ALL

so 127.0.0.1 and outside smtp server can connect, and this has completely solved my problem and allows me to keep ALL:ALL EXCEPT 127.0.0.1:DENY in my /etc/hosts.deny file.

Regards,
Daniel Stickney
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.