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

 SATELLITE INTERNET
 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

Blog, intrebari si raspunsuri despre Leasing

Posted on: 11 Dec 2007
Author: mandrei
Section: Server Operating Systems | Dedicated Servers
Views: 269
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
» Linux / UNIX Frequently Asked Questions - nixCraft
» Go to previous working directory - Unix - Linux - BSD
» How to check for vulnerabilities installed ports on FreeBSD box




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.
Verification code
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:
Nginx + php-fpm setting php upload_max_filesize and other php values per vhost
Mysql> how to store select Zulu / UTC timestamp in database
Quagga ospf neighbour stuck in ExStart/DROther state
How to disable anonymous access in samba 3
"checking for libnet_build_ip in -lnet... no"+"ERROR! Libnet library not found"
CentOS Install Nemesis packet crafting tool + Libnet
Using curl to get the HTTP response from an HTTP server
Mdadm - Linux software RAID
Linux - Unable to login (and authentication succeeds) - File size limit exceeded
Linux/FreeBSD how to check ntp time synchronization
 
   Most viewed articles:
How to remove first/last character from a string using SED - 6818 views
How to clear/reset DNS cache on Windows XP / Linux - 4477 views
Reloading /etc/profile - how to reload Unix /etc/profile - 4449 views
How to calculate difference in days between two dates in MySQL - 4406 views
Set up HTTP PROXY via command line in Linux/FreeBSD - 3687 views

   Latest 10 articles:
FreeBSD - Collect installed hard disk drive information - 19 Mar 2009
Set up FTP PROXY via command line in Linux/FreeBSD - 19 Mar 2009
Set up HTTP PROXY via command line in Linux/FreeBSD - 19 Mar 2009
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
qmail qmail-scanner/clamav qmail-inject: fatal: qq temporary problem / clamdscan: corrupt or unknown clamd scanner error or memory/resource/perms problem - exit status 512/2 - 05 Dec 2008
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


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



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