Operating System - HP-UX
1824940 Members
3977 Online
109678 Solutions
New Discussion юеВ

How I can see Sendmail version?

 
David_711
Frequent Advisor

How I can see Sendmail version?

How I can see Sendmail version?
8 REPLIES 8
Dennis Handly
Acclaimed Contributor

Re: How I can see Sendmail version?

For PA you could use: what /usr/sbin/sendmail
Johnson Punniyalingam
Honored Contributor

Re: How I can see Sendmail version?

ways of checking for the sendmail version. Try:

# /usr/lib/sendmail -bt -d

The version of
the sendmail configuration can be found by inspection of
/etc/mail/sendmail.cf.


/etc/mail/sendmail.cf



Problems are common to all, but attitude makes the difference
Javed Khan_1
Valued Contributor

Re: How I can see Sendmail version?

Hi,

try

#/usr/lib/sendmail -bt -d

Version 8.11.1 (Revision 1.6)
Compiled with: LDAPMAP MAP_REGEX LOG MATCHGECOS MIME7TO8 MIME8TO7
NAMED_BIND NDBM NETINET NETINET6 NETUNIX NEWDB NIS NISPLUS
QUEUE SASL SCANF SMTP USERDB XDEBUG

Regards,
Javed Khan
Never Give Up
enrico.nic
Regular Advisor

Re: How I can see Sendmail version?

Hi,

If sendmail is running, another version is:

# telnet localhost 25
Trying...
Connected to localhost.
Escape character is '^]'.
220 ESMTP Sendmail @(#)Sendmail version 8.13.3 - Revision 2.006 - 15 November 2007/8.13.3; Sun, 2 Nov 2008 11:19:09 +0100 (MET)
quit

The first version number is the sendmail version: the second (/8.13.3) is the version of the configuration file (sendmail.cf).
You can still have newer version of sendmail running with an old configuration file.

Sam McKnight
Frequent Advisor

Re: How I can see Sendmail version?

O'Reilly's Sendmail book recommends to determine version with

/usr/sbin/sendmail -d0.1 -bt < /dev/null

Suraj K Sankari
Honored Contributor

Re: How I can see Sendmail version?

Hi,
This is the correct way to konw the Version of Sendmail....

$ /usr/sbin/sendmail -d0.1 -bt < /dev/null
Version 8.11.1 (PHNE_35485)
Compiled with: LDAPMAP MAP_REGEX LOG MATCHGECOS MIME7TO8 MIME8TO7
NAMED_BIND NDBM NETINET NETINET6 NETUNIX NEWDB NIS NISPLUS
QUEUE SASL SCANF SMTP USERDB XDEBUG

============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = testbox
(canonical domain name) $j = testbox
(subdomain name) $m =
(node name) $k =
========================================================

WARNING: local host name (testbox) is not qualified; fix $j in config file
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter




Suraj
Shailendran V Naidu
Frequent Advisor

Re: How I can see Sendmail version?

A better way to check the version of sendmail is with the swlist command:

# swlist -l product | grep -i sendmail
PHNE_31734 1.0 sendmail(1m) 8.11.1 patch

As per above example 8.11.1 is the version of sendmail.
Ganesan R
Honored Contributor

Re: How I can see Sendmail version?

Hi,

There are many ways you can find the sendmail version..

#sendmail -bs < /dev/null

#sendmail -d0 < /dev/null

#echo \$Z | /usr/sbin/sendmail -bt -d

Best wishes,

Ganesh.