From owner-freebsd-questions Fri Nov 15 15:30:47 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5518837B401; Fri, 15 Nov 2002 15:30:40 -0800 (PST) Received: from fat_man.ascendency.net (12-250-130-72.client.attbi.com [12.250.130.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7896643E6E; Fri, 15 Nov 2002 15:30:31 -0800 (PST) (envelope-from mike@ascendency.net) Received: from mike (adsl-65-42-90-157.dsl.chcgil.ameritech.net [65.42.90.157]) by fat_man.ascendency.net (8.11.6/8.11.6) with ESMTP id gAFNTSU65764; Fri, 15 Nov 2002 17:29:29 -0600 (CST) (envelope-from mike@ascendency.net) Reply-To: From: "Mike Loiterman" To: "'Giorgos Keramidas'" Cc: "'Anish Mistry'" , Subject: RE: Recompiling Sendmail? Date: Fri, 15 Nov 2002 17:27:22 -0600 Message-ID: <004601c28cfe$9174adc0$0302a8c0@mike> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 In-Reply-To: <20021115141802.GB576@gothmog.gr> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG -----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 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