Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 243
  • Last Modified:

displaying sendmail version

With what flags will sendmail do nothing but show its version number?

tnhx
0
jonie
Asked:
jonie
1 Solution
 
pxhCommented:
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

Industry Leaders: 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!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now