Solved

displaying sendmail version

Posted on 1997-02-14
1
231 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
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…

808 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