Solved

Sendmail Newbie Question

Posted on 1998-08-22
7
306 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
Technology Partners: 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

752 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