Sendmail Newbie Question

I have become a sysadmin by default, and know just enough to be dangerous.  I have a Sun Sparc-2 antique with Solaris 2.6 which runs just fine.  Just added an Ultra-2 workstation, also with 2.6, but the latter can't seem to send mail except to itself.  sendmail.cf on the two machines is identical.  Both use the same router, which is maintained by a real sysadmin in a different department (who has no clue what is wrong with my machines).

When I run sendmail -d 1 -v foo@boo.com to see what is happening,  the machine which doesn't work right lists the sendmail options and parameters:

Version SMI-8.6
setoption v=T
setoption a=5
setoption k=0
setoption l=
setoption r=ident=0
setoption R=
verify_mail_server(): remote mode is off
setoption I=
setoption A=/etc/mail/aliases
setoption d=background
setoption D=
setoption F=0600
setoption g=1
setoption H=/etc/mail/sendmail.hf
setoption L=9
setoption o=
setoption P=Postmaster
setoption Q=/var/spool/mqueue
setoption r=15m
setoption S=/etc/mail/sendmail.st
setoption s=
setoption T=3d
setoption u=1
getauthinfo: root@localhost
SYSTEM IDENTITY (after readcf):
            (short domain name) $w = pinhead
        (canonical domain name) $j = $w.$D
               (subdomain name) $m =
                    (node name) $k = pinhead

Note the "remote mode is off" notice.  On the machine that works correctly, this line says that remote mode is on.  Also, note that the subdomain field is blank;  this field is filled in corectly onthe machine that works. I tried setting Mm directly, but it was ignored.  Mail to foreign machines bounces back saying that "HELO pinhead" is invalid, which of course it is.

So, the question is, how do you turn "remote mode" on?  Where is the subdomain information supposed to come from?  Neither machine's sendmail.cf file explicitly defines it, so it is getting picked up from the system somehow.  I have looked at comp.mail.sendmail and the sendmail.org web pages and FAQs, but can find no reference to this item.

Thanks

Justin Harlow
harlowAsked:
Who is Participating?
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.

bryanjonesCommented:
Try this /usr/sbin/sendmail -v root@boo.com and see what the error message prints out -- it is better to use this command rather than the -d 1 -v.  The -v is verbose and should print out an error message about the problem.  Also if you know sendmail enough you can telnet boo.com 25 and use the sendmail commands from their to try and trouble shoot the system.
0
bryanjonesCommented:
Try this /usr/sbin/sendmail -v root@boo.com and see what the error message prints out -- it is better to use this command rather than the -d 1 -v.  The -v is verbose and should print out an error message about the problem.  Also if you know sendmail enough you can telnet boo.com 25 and use the sendmail commands from their to try and trouble shoot the system.
0
bchewCommented:
Sorry to ask the obvious but can you ping, telnet, etc out from the non-working machine?  Have you checked TCP/IP configurations?
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

harlowAuthor Commented:
It turned out that the default sendmail.cf on hte nonworking machine was a copy of the canonical main.cf.  I replaced it with a copy of the equally canonical subsidiary.cf, and lo and behold, it started working after a reboot.  My guess is that I had two machines trying to be master at the same time, and that this change put the new one in its proper place in life...

Thanks for the help though.  I think I am now in business.

JEH
0
bknowlesCommented:
So, can we assume that this question is answered, and if so by whom?
0

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
harlowAuthor Commented:
We can say it is "solved" at least.  I blundered into the solution before a real answer emerged, but that's OK by me.  I'll go read the O'Reilly sendmail book in more detail so I won't have to post more questios like this in the future.  Thanks to those who responded.

JEH
0
bknowlesCommented:
As I recall, the O'Reilly book isn't going to be able to help you much with Sun sendmail.cf configuration (at least, I don't recall much Sun sendmail stuff in the version of the book I previewed and commented on).

With the advent of Solaris 2.7, they're supposed to be going to a virtually "stock" version 8 sendmail configuration, and then the O'Reilly book will be able to really help.


However, in general, RTFM is a very good thing to have already done before you ask questions in public.  ;-)
0
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
Unix OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.