Re: Recompiling Sendmail?

2002-11-16 Thread Giorgos Keramidas
On 2002-11-16 01:19, Mark [EMAIL PROTECTED] wrote:
 Mike Loiterman [EMAIL PROTECTED] wrote:
  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.

 I thought make buildworld was obsoleted now since 4.7R? Anyway, let me
 know if, and how you succeeded. Then I will give it a whirl myself. :)

Err, no?  The recommended way og upgrading from source (as in, the one
recommended in both the Handbook and /usr/src/UPDATING) is the one
that uses make buildworld.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Recompiling Sendmail?

2002-11-15 Thread Giorgos Keramidas
On 2002-11-13 23:55, Mike Loiterman [EMAIL PROTECTED] 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'.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



RE: Recompiling Sendmail?

2002-11-15 Thread Mike Loiterman
 
-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'; [EMAIL PROTECTED]
 Subject: Re: Recompiling Sendmail?
 
 On 2002-11-13 23:55, Mike Loiterman [EMAIL PROTECTED] 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 [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Recompiling Sendmail?

2002-11-15 Thread Mark
- Original Message -
From: Mike Loiterman [EMAIL PROTECTED]
To: 'Giorgos Keramidas' [EMAIL PROTECTED]
Cc: 'Anish Mistry' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday, November 16, 2002 12:27 AM
Subject: RE: Recompiling Sendmail?


 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.


I thought make buildworld was obsoleted now since 4.7R? Anyway, let me
know if, and how you succeeded. Then I will give it a whirl myself. :)

- Mark


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



RE: Recompiling Sendmail?

2002-11-15 Thread Mike Loiterman
 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 -Original Message-
 From: Mark [mailto:admin;asarian-host.net]
 Sent: Friday, November 15, 2002 6:20 PM
 To: [EMAIL PROTECTED]; 'Giorgos Keramidas'
 Cc: 'Anish Mistry'; [EMAIL PROTECTED]
 Subject: Re: Recompiling Sendmail?
 
 - Original Message -
 From: Mike Loiterman [EMAIL PROTECTED]
 To: 'Giorgos Keramidas' [EMAIL PROTECTED]
 Cc: 'Anish Mistry' [EMAIL PROTECTED];
 [EMAIL PROTECTED] Sent: Saturday, November 16, 2002
 12:27 AM
 Subject: RE: Recompiling Sendmail?
 
 
  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.
 
 
 I thought make buildworld was obsoleted now since 4.7R? Anyway,
 let me know if, and how you succeeded. Then I will give it a whirl
 myself. :)  
 
 - Mark

Using 4.4-STABLE here.

...
Randomly Generated Quote:
Death is nature's way of saying `Howdy'.   

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/AwUBPdWPUGjZbUnRudGOEQLQrwCfa0vATjczZRRmkodoZpxrnKn1ykEAnAuz
E3HnY2EqzhkaIWNmtg/7DlXf
=0e9H
-END PGP SIGNATURE-


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



RE: Recompiling Sendmail?

2002-11-14 Thread Mike Loiterman
 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Yeah I thought about that, but wouldn't installing that break my
exsisting default installed Sendmail?

...
Randomly Generated Quote:
My phone number is seventeen. I got
one of the early ones. --George Carlin 

Mike Loiterman
PGP Key 0xD1B9D18E
http://www.ascendency.net

 -Original Message-
 From: Mark [mailto:admin;asarian-host.net]
 Sent: Thursday, November 14, 2002 8:26 AM
 To: Anish Mistry; [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: Recompiling Sendmail?
 
 I dunno; the port library at freebsd.org has:
 
 sendmail-sasl-8.12.6_1
 
 Seems like an all-in-one package. :) Maybe you could use that?
 
 - Mark
 
 
 - Original Message -
 From: Anish Mistry [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Thursday, November 14, 2002 6:30 AM
 Subject: Re: Recompiling Sendmail?
 
 
 On Wednesday 13 November 2002 10:00 pm, Mike Loiterman wrote:
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
 
  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.
 
  I'm trying to add SMTP AUTH to my base installation of
  Sendmail installation without breaking anything!

-BEGIN PGP SIGNATURE-
Version: PGP 7.0.4
Comment: Message digitally signed by Mike Loiterman

iQA/AwUBPdQmpmjZbUnRudGOEQJ7agCgtSdPaNkrLK5pVDuhx8aNKU/Iqo8An3HW
oASa5WOGSE824qCQJllsvUdI
=1b5u
-END PGP SIGNATURE-


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Recompiling Sendmail?

2002-11-13 Thread Anish Mistry
On Wednesday 13 November 2002 10:00 pm, Mike Loiterman wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 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.
 
 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 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

then set your .mc file stuff, create a new sendmail.cf, and restart sendmail.


-- 
Anish Mistry

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



RE: Recompiling Sendmail?

2002-11-13 Thread Mike Loiterman
 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 -Original Message-
 From: Anish Mistry [mailto:mistry.7;osu.edu]
 Sent: Wednesday, November 13, 2002 11:30 PM
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: Recompiling Sendmail?
 
 On Wednesday 13 November 2002 10:00 pm, Mike Loiterman wrote:
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
 
  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.
 
  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 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
 
 then set your .mc file stuff, create a new sendmail.cf, and restart
 sendmail.  
 
 
 --
 Anish Mistry


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

I used your Sendmail config flags and did your make commands and got
this error:

cc: /usr/src/lib/libsmutil/libsmutil.a: No such file or directory
*** Error code 1

...
Randomly Generated Quote:
I used to love anchovies until I   
realized they were like eating an  
eyebrow. Now they just aren't the same.

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/AwUBPdM65mjZbUnRudGOEQLZGACgi94jBZmv3hKPwBGSFIPjMoSsY1EAoLzX
095x3RMrk/vGgvKf8BQ6MD6I
=EEQt
-END PGP SIGNATURE-


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message