Solved

displaying sendmail version

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

tnhx
0
Comment
Question by:jonie
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Oracle Finace 3 100
awk sed variable in file 3 107
HPUX 11.11 how to to restore from DLT 8000 tape drive to HP 7100 virtual array 6 145
how to send mail in unix 2 47
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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…
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.
Suggested Courses

737 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