Solved

Sendmail Newbie Question

Posted on 1998-08-22
7
307 Views
Last Modified: 2013-12-16
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
0
Comment
Question by:harlow
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 1

Expert Comment

by:bryanjones
ID: 1812133
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
 
LVL 1

Expert Comment

by:bryanjones
ID: 1812134
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
 
LVL 5

Expert Comment

by:bchew
ID: 1812135
Sorry to ask the obvious but can you ping, telnet, etc out from the non-working machine?  Have you checked TCP/IP configurations?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:harlow
ID: 1812136
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
 

Accepted Solution

by:
bknowles earned 100 total points
ID: 1812137
So, can we assume that this question is answered, and if so by whom?
0
 

Author Comment

by:harlow
ID: 1812138
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
 

Expert Comment

by:bknowles
ID: 1812139
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question