Date: Fri, 15 Nov 2002 17:27:22 -0600 From: "Mike Loiterman" <mike@ascendency.net> To: "'Giorgos Keramidas'" <keramida@freebsd.org> Cc: "'Anish Mistry'" <mistry.7@osu.edu>, <freebsd-questions@freebsd.org> Subject: RE: Recompiling Sendmail? Message-ID: <004601c28cfe$9174adc0$0302a8c0@mike> In-Reply-To: <20021115141802.GB576@gothmog.gr>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > -----Original Message----- > From: Giorgos Keramidas [mailto:keramida@freebsd.org] > Sent: Friday, November 15, 2002 8:18 AM > To: Mike Loiterman > Cc: 'Anish Mistry'; freebsd-questions@freebsd.org > Subject: Re: Recompiling Sendmail? > > On 2002-11-13 23:55, Mike Loiterman <mike@ascendency.net> wrote: > > Anish Mistry [mailto:mistry.7@osu.edu] wrote: > > > On Wednesday 13 November 2002 10:00 pm, Mike Loiterman wrote: > > > > I suppose this might be better suited to the > > > > comp.mail.sendmail, but I'm posting it here because I believe > > > > my error is ultimately rooted in my use faulty use of FreeBSD > > > > rather then incorrect use of Sendmail. > > Indeed. > > > > > I'm trying to add SMTP AUTH to my base installation of > > > > Sendmail installation without breaking anything! > > > > > > > > I installed cyrus-sasl without any problems. > > > > Now I need to add, according to the Sendmail.readme included > > > > with the cyrus-sasl, the following lines to my /etc/make.conf > > > > file: > > > > > > > > # Add SMTP AUTH support to Sendmail > > > > SENDMAIL_CFLAGS+= -I/usr/local/include/sasl -DSASL > > > > - -D_FFR_UNSAFE_SASL > > > > SENDMAIL_LDFLAGS+= -L/usr/local/lib > > > > SENDMAIL_LDADD+= -lsasl > > > > > > > > I did that. > > > > > > > > Now the README says I need to "Rebuild FreeBSD". I thought > > > > there would be a way around rebuilding the entire world when > > > > I just need to rebuild Sendmail > > You should really follow the instructions, and build world :) > > > > > so I tried going into /usr/src/usr.sbin/sendmail and did a > > > > "make all install" but I got this error: > > > > > > This is how I do it: > > > In make.conf: > > > SENDMAIL_CFLAGS=-I/usr/local/include/sasl -DSASL1 > > > SENDMAIL_LDFLAGS=-L/usr/local/lib > > > SENDMAIL_LDADD=-lsasl > > > > > > from a shell: > > > cd /usr/src/usr.sbin/sendmail > > > make cleandir > > > make obj > > > make > > > make install > > This won't work either, if you don't have an old libsm library > lying around in /usr/obj/usr/src/lib/libsm, and even in that case > you should probably rebuild libsm anyway. > > > I used my original config flags with your make commands and got > > this error: > > > > cc: /usr/src/usr.sbin/sendmail/../../lib/libsmutil/libsmutil.a: > > No such file or directory > > *** Error code 1 > > The sendmail installation that is part of the base system uses > libsm.a which is not built when you cd into > /usr/src/usr.sbin/sendmail, but is built separately from > /usr/src/lib/libsm. The same libsm.a that is built as part of the > buildworld process is then used to link sendmail and src/bin/rmail. > > The manual way out of this error that is stopping you is to build a > clean copy of libsm.a and then rebuilt sendmail and rmail: > > # cd /usr/src/lib/libsm > # make cleandir && make cleandir > # make obj && make depend && make all > > # cd /usr/src/usr.sbin/sendmail > # make cleandir && make cleandir > # make obj && make depend && make all > > # cd /usr/src/bin/rmail > # make cleandir && make cleandir > # make obj && make depend && make all > > All these steps and many more[1] will be taken care of if you use > the recommended `make buildworld' procedure for upgrading. > > I hope this helps a bit, > Giorgos. > > > [1] Such as building the proper bits for the SSL support when this > is required, and making sure that the changes to the libraries you > have compiled don't cause build problems to the rest of the > `world'. Thanks...your advice is probably the best. I'm doing a make buildworld right now. Hopefully the whole thing doesn't blow up! Yes, I did a full backup prior to starting. Also -- which .mc file do I use to add the additional commands to? I have hostname.domainname.mc, and freebsd.mc. Which one do I use? To add: TRUST_AUTH_MECH(`DIGEST-MD5 CRAM-MD5')dnl define(`confAUTH_MECHANISMS',`DIGEST-MD5 CRAM-MD5')dnl define(`confDONT_BLAME_SENDMAIL',`GroupReadableSASLFile')dnl define(`confRUN_AS_USER',`root:mail')dnl The Sendmail.readme says to add it to "sendmail.mc". ........................................... Randomly Generated Quote: 'When dictatorship is a fact, revolution becomes a right.' -- Victor Marie Hugo Mike Loiterman PGP Key 0xD1B9D18E http://www.ascendency.net -----BEGIN PGP SIGNATURE----- Version: PGP 7.0.4 Comment: Message digitally signed by Mike Loiterman iQA/AwUBPdWC2WjZbUnRudGOEQKNmwCeLkkwjWHZYPl7hLvePf38ePBGKqMAn0No 7cL//ktVN3iC5CMJZcTGhZCg =I3Ft -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?004601c28cfe$9174adc0$0302a8c0>