Solved

displaying sendmail version

Posted on 1997-02-14
1
228 Views
Last Modified: 2013-12-16
With what flags will sendmail do nothing but show its version number?

tnhx
0
Comment
Question by:jonie
1 Comment
 
LVL 2

Accepted Solution

by:
pxh earned 50 total points
ID: 1811887
You don't mentioned the platform you are on. Anyhow here is an answer at least for SunOS, Solaris and DEC/OSF and very likely for most other Unixes:

First: there is not precisely such an option.

The workaround: issue "/usr/lib/sendmail -d 9" which starts sendmail in debugging mode. The first line will display the version. Ignore the rest and enter control-c to stop sendmail.

Not very elegant, in particular if you want to do it from a script. So here is another workaround (I am just pasting my console output):

# mconnect <hostname>
220 <hostname> Sendmail 4.1/SMI-4.1 ready at Fri, 14 Feb 97
quit
221 <hostname> closing connection
#

This should also work on all machines. And you can find out the Sendmail version of a local or remote host.

Hope this help,

Peter (pxh@mpe-garching.mpg.de)

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
Remote Change Dates on AIX Automation 7 51
Oracle Finace 3 66
How do disable only TLSv1.0 in Oracle Sun One 7.1 Server 9 72
Solaris 4.1.3 cloning and booting 13 72
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

910 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

23 Experts available now in Live!

Get 1:1 Help Now