Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Apr 2006 13:20:39 -0500
From:      Jonathan Horne <freebsd@dfwlp.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: about sendmail security update
Message-ID:  <200604081320.39420.freebsd@dfwlp.com>
In-Reply-To: <b4941aac0604080825w170ba796h43c4e0b9c1e2ddda@mail.gmail.com>
References:  <b4941aac0604080825w170ba796h43c4e0b9c1e2ddda@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday 08 April 2006 10:25, Gonzalo Suarez wrote:
> hello!
>
> i'm a very new freebsd user/admin. i run my own server since 1 month ago, i
> 've been told about a security issue with sendmail. i read about it on the
> security ad
> ftp://ftp.freebsd.org/pub/FreeBSD/CERT/advisories/FreeBSD-SA-06:13.sendmail
>.ascand I don't know how could i get my system patch or upgraded. some
> people tell me to quit using sendmail and try postfix, but i would like to
> fix sendmail and try to configure it...
>
> I installed the system with a freebsd5.4 release cd. i downloaded the patch
> and when I excuted it i realized that i don't have the source code of
> sendmail since i started the installation with de cd-rom standard
> installation. what am i supposed to do now? patch or upgrade. what is the
> easy way? i have compiled some little C code for college practices and
> installed some bsd-ports with make install but  now i'm a little bit lost
> here...
>
> thanks for your help.
>
> Gonzalo.
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe@freebsd.org"

here is how i updated my system, just yesterday.  mine is 6.0, but im pretty 
sure its pretty close to the same (actually, before i clicked send here, i did 
this same thing on an unused 5.4 dev box i had, and ive determined that these 
instructions worked on 5.4 as well).

1) cvsup your /usr/src directories.  if they are empty, this will cause them 
to populate.  if there is anything already there, this will update your 
sources to latest.

# pkg_add -r cvsup-without-gui
# pkg_add -r fastest_cvsup
# cp /usr/share/examples/cvsup/stable-supfile /root
# cvsup -L 2 -h `(fastest_cvsup -q -c us )` /root/stable-supfile

that should update your entire sources tree.  take a look at the 
stable-supfile, it can be edited to be more brief about which portions of the 
src tree its going to pull down.  no edits = the whole thing.

2) recompile sendmail

# cd /usr/src/lib/libsm
# make obj && make depend && make
# cd /usr/src/lib/libsmutil
# make obj && make depend && make
# cd /usr/src/usr.sbin/sendmail/
# make obj && make depend && make && make install
# cd /etc/mail
# make all install restart

i generally also restart sendmail from the rc.d script as well, just to be 
sure.

# /etc/rc.d/sendmail restart

now, when you telnet to hostname.domain 25, you will see:

220 locahost.domain ESMTP Sendmail 8.13.6/8.13.3; Sat, 8 Apr 2006 
13:18:24 -0500 (CDT)

good luck!
jonathan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604081320.39420.freebsd>