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:
-------------------advertising-----------------