Solved

displaying sendmail version

Posted on 1997-02-14
1
227 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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

763 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

11 Experts available now in Live!

Get 1:1 Help Now