Solved

Sendmail Newbie Question

Posted on 1998-08-22
7
296 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
  • 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to improve IO of Solaris machine 15 83
Unix How to Bulk Remove Multiple Directories from FileSystem 10 76
unix in java example 9 53
Linux hostname change 2 54
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…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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…
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.

911 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now