FreeBSD - Tutorials, Security
Home   Archives   Sitemap   About   Contact

Unix/Linux/BSD - Show / View sendmail version and upgrade sendmail

Home NEW! Unix Forum News 100 Tips and Tricks Website Development Server Operating Systems Databases
 Ivorde.ROarrow Server Operating Systems arrowDedicated ServersarrowUnix/Linux/BSD - Show / View sendmail version and upgrade sendmail 

Article Sections

    Hello, Guest !
User name:
Password:
 
Google

 SSD VPS Hosting - Vpsie.com
 Mo.nitor.me
 Ivorde forum
 FreeBSD Tutorials
 Linux LVM Commands
 Free Shell Accounts
 FreeBSD Project
 FreeBSD Handbook
 Advanced Bash-Scripting Guide
 The OpenBSD Project
 Distrowatch
 FreeBSD Handbook


Apache Webserver Home Page

Posted on: 11 Dec 2007
Author: mandrei
Section: Server Operating Systems | Dedicated Servers
Views: 1459
Comments: 0 (Add)

Unix/Linux/BSD - Show / View sendmail version and upgrade sendmail
How to check sendmail version on Unix/Linux/BSD server, how to upgrade sendmail on FreeBSD

 



Check sendmail version on Unix/Linux/BSD server

$ /path/to/sendmail/binary/sendmail -v -d0,1 </dev/null
Version 8.14.1
Compiled with: DNSMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7
NAMED_BIND NETINET NETINET6 NETUNIX NEWDB PIPELINING SCANF
TCPWRAPPERS USERDB XDEBUG

============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = ivorde
(canonical domain name) $j = ivorde.ro
(subdomain name) $m = ro
(node name) $k = www.ivorde.ro
========================================================

Recipient names must be specified

The binary of the upgraded version of sendmail will be in /usr/local/sbin/sendmail.

To be noted that on FreeBSD 6.2-RELEASE (and probably STABLE) sendmail version is 8.13.8. On FreeBSD 6.3-RELEASE (RELENG_6 as of some time ago) sendmail version is 8.14.2.

Upgrade sendmail on FreeBSD

$ cd /usr/ports/mail/sendmail && make install clean

In order to have sendmail upgraded to the latest version, make sure or upgrade your ports tree before upgrading sendmail.

$ /etc/rc.d/sendmail stop
$ /usr/local/etc/rc.d/sendmail.sh.sample start

I left my sendmail rc settings in /etc/rc.conf unchanged:

$ grep mail /etc/rc.conf
sendmail_enable="NO"
sendmail_msp_queue_enable="YES"

No I check the processes table to see which sendmail is running:

$ ps ax|grep sendmail
25855 ?? Is 0:00.00 sendmail: Queue runner@00:30:00 for /var/spool/clientmqueue (sendmail)
25856 ?? Ss 0:00.01 sendmail: accepting connections (sendmail)
25975 p1 R+ 0:00.00 grep sendmail

I see two sendmail processes started by init (ps -alx will show you PPID of these two PIDs): 25855 and 25856.

To see which binary was used to start these processes, you'll need lsof -p (I think it comes from list open files)

$ lsof -p 25855
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
sendmail 25855 smmsp cwd VDIR 0,93 512 13 /var/spool/clientmqueue
sendmail 25855 smmsp rtd VDIR 0,89 512 2 /
sendmail 25855 smmsp txt VREG 0,94 717533 448068 /usr/local/sbin/sendmail
sendmail 25855 smmsp txt VREG 0,89 188248 582 /libexec/ld-elf.so.1
sendmail 25855 smmsp txt VREG 0,94 27812 32760 /usr/lib/libwrap.so.4
sendmail 25855 smmsp txt VREG 0,89 48308 25744 /lib/libutil.so.5
sendmail 25855 smmsp txt VREG 0,89 1119052 25817 /lib/libc.so.6
sendmail 25855 smmsp 0r VCHR 0,6 0t0 6 /dev/null
sendmail 25855 smmsp 1w VCHR 0,6 0t0 6 /dev/null
sendmail 25855 smmsp 2w VCHR 0,6 0t0 6 /dev/null
sendmail 25855 smmsp 3u unix 0xc96f7de8 0t0 ->0xc52a5c84
sendmail 25855 smmsp 4wW VREG 0,93 57 289 /var/spool/clientmqueue/sm-client.pid

$ lsof -p 25856
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
sendmail 25856 root cwd VDIR 0,93 512 10 /var/spool/mqueue
sendmail 25856 root rtd VDIR 0,89 512 2 /
sendmail 25856 root txt VREG 0,94 717533 448068 /usr/local/sbin/sendmail
sendmail 25856 root txt VREG 0,89 188248 582 /libexec/ld-elf.so.1
sendmail 25856 root txt VREG 0,94 27812 32760 /usr/lib/libwrap.so.4
sendmail 25856 root txt VREG 0,89 48308 25744 /lib/libutil.so.5
sendmail 25856 root txt VREG 0,89 1119052 25817 /lib/libc.so.6
sendmail 25856 root 0r VCHR 0,6 0t0 6 /dev/null
sendmail 25856 root 1w VCHR 0,6 0t0 6 /dev/null
sendmail 25856 root 2w VCHR 0,6 0t0 6 /dev/null
sendmail 25856 root 3u IPv4 0xc9591ae0 0t0 TCP *:smtp (LISTEN)
sendmail 25856 root 4u unix 0xc52a6b20 0t0 ->0xc52a6000
sendmail 25856 root 5u IPv6 0xc54151d0 0t0 TCP *:smtp (LISTEN)
sendmail 25856 root 6u IPv4 0xc54153a0 0t0 TCP *:submission (LISTEN)
sendmail 25856 root 7wW VREG 0,93 51 16321 /var/run/sendmail.pid

It is visible that both sendmail PIDs were started from /usr/local/sbin/sendmail binary.

Bookmarks: Echo "Unix/Linux/BSD - Show / View sendmail version and upgrade sendmail" around:
del.icio.usdiggFurlYahooMyWebGoogleBookmarksFaceBookTechnocratti
-------------------advertising-----------------

Other articles in Server Operating Systems / Dedicated Servers
» List established connections on Unix servers
» FreeBSD - Add default route
» How to check for vulnerabilities installed ports on FreeBSD box
» Go to previous working directory - Unix - Linux - BSD
» Packet Filter broken on FreeBSD 6.2 ? Unusual pf error




Contact webmaster regarding this article
Register or Login to post your article
Hello, Guest ! You can Login or Register to www.ivorde.ro!

 Post comment:

Name:
Title:
Comment:
Please type the word you see in the image (anti-spam verification). Refresh the page if you don't understand the word.
Allowed HTML Tags for comments:<p><strong><em><u><h1><h2><h3><h4><h5><h6><img><li>
<ol><ul><span><div><br><ins><del>

0 comment(s) to Unix/Linux/BSD - Show / View sendmail version and upgrade sendmail:

   Latest topics on the forum:
 
   Most viewed articles:
How to copy a mysql database using mysqldump - 10087 views
How to change a user's password in AIX with the output from ECHO command - 9286 views
FreeBSD: Add/remove an additional IP alias - 6453 views
Qmail relay to smarthost: How to route all mail to a smarthost - 4364 views
Change user shell on FreeBSD Linux and AIX - 3118 views

   Latest 10 articles:
Qmail relay to smarthost: How to route all mail to a smarthost - 03 Feb 2009
EXIM 4 relay to smarthost: How to route all mail except local domain - 03 Feb 2009
Windows XP: print LISTEN ports and network connections using netstat - 30 Jan 2009
How to cut out first last n characters from each file name, from a filelist - 04 Nov 2008
Mozilla Firefox3 is now released - 18 Jun 2008
How to switch lower case to upper case and upper case to lower case in a string - 17 Jun 2008
How to rename files/directories to uppercase/lowercase character names - 17 Jun 2008
How to convert lower case to upper case letters in a shell script/command - 17 Jun 2008
Unix,Linux,FreeBSD - How to rename a list of files, replacing spaces inside their names - 12 Jun 2008
How to change a user's password in AIX with the output from ECHO command - 21 May 2008


Archives
» 2007  |  June  |  October  |  November  |  December
» 2008  |  January  |  February  |  March  |  April  |  May  |  June  |  November
» 2009  |  January  |  February



Home | Archives | Sitemap | About | Contact

Designed and developed by Andrei Manescu. Optimized for Mozilla Firefox.  
Copyright 2007 Andrei Manescu
All trademarks and copyrights on this page are owned by their respective owners. Comments are owned by those who posted them.
Valid W3 Document Valid XHTML 1.0 Transitional Valid CSS! The FreeBSD Project Viewable With Any Browser