List Info

Thread: Sendmail Compile-Time Configuration




Sendmail Compile-Time Configuration
user name
2006-04-28 07:32:16
Hi,

I'm adding LDAP support to my Sendmail configuration.
I couldn't seem to find the appropriate m4 file in which
to declare my APPENDDEF statements.  My course of
action was to include SENDMAIL_CFLAGS+=-DLDAPMAP
in make.conf.  Does this seem like the correct way to do
this
for FreeBSD 6-STABLE?

TIA,

Duane Whitty
-- 
duanegreenmeadow.ca
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
Sendmail Compile-Time Configuration
user name
2006-04-28 07:50:02
Duane Whitty wrote:
> Hi,
>
> I'm adding LDAP support to my Sendmail configuration.
> I couldn't seem to find the appropriate m4 file in
which
> to declare my APPENDDEF statements.  My course of
> action was to include SENDMAIL_CFLAGS+=-DLDAPMAP
> in make.conf.  Does this seem like the correct way to
do this
> for FreeBSD 6-STABLE?
>
> TIA,
>
> Duane Whitty
Answering myself:

I gues this isn't correct:

/usr/src/lib/libmilter/../../contrib/sendmail/include/sm/con
fig.h:148:20: 
lber.h: No such file or directory

/usr/src/lib/libmilter/../../contrib/sendmail/include/sm/con
fig.h:149:20: 
ldap.h: No such file or directory

mkdep: compile failed
    *** Error code 1

I'll be continuing to work on this but hopefully someone
here will have dealt with this previously

Duane Whitty
-- 
duanegreenmeadow.ca
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
Sendmail Compile-Time Configuration
user name
2006-04-28 08:07:45
Duane Whitty wrote:
> Duane Whitty wrote:
>> Hi,
>>
>> I'm adding LDAP support to my Sendmail
configuration.
>> I couldn't seem to find the appropriate m4 file in
which
>> to declare my APPENDDEF statements.  My course of
>> action was to include SENDMAIL_CFLAGS+=-DLDAPMAP
>> in make.conf.  Does this seem like the correct way
to do this
>> for FreeBSD 6-STABLE?
>>
>> TIA,
>>
>> Duane Whitty
> Answering myself:
>
> I gues this isn't correct:
>
>
/usr/src/lib/libmilter/../../contrib/sendmail/include/sm/con
fig.h:148:20: 
> lber.h: No such file or directory
>
>
/usr/src/lib/libmilter/../../contrib/sendmail/include/sm/con
fig.h:149:20: 
> ldap.h: No such file or directory
>
> mkdep: compile failed
>    *** Error code 1
>
> I'll be continuing to work on this but hopefully
someone
> here will have dealt with this previously
>
> Duane Whitty
Maybe SENDMAIL_ADDITIONAL_MC in make.conf will work
with the needed APPENDDEF statements in my ldap.mc file?

Duane Whitty
-- 
duanegreenmeadow.ca
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
Sendmail Compile-Time Configuration
user name
2006-04-28 16:37:02
On 2006-04-28 05:07, Duane Whitty <duanegreenmeadow.ca> wrote:
>Duane Whitty wrote:
>>Duane Whitty wrote:
>>> I'm adding LDAP support to my Sendmail
configuration.  I couldn't seem
>>> to find the appropriate m4 file in which to
declare my APPENDDEF
>>> statements.  My course of action was to include
>>> SENDMAIL_CFLAGS+=-DLDAPMAP in make.conf.  Does
this seem like the
>>> correct way to do this for FreeBSD 6-STABLE?

That would be `/etc/make.conf'.

>> Answering myself:
>>
>> I gues this isn't correct:
>>
>>
/usr/src/lib/libmilter/../../contrib/sendmail/include/sm/con
fig.h:148:20:
>> lber.h: No such file or directory
>>
>>
/usr/src/lib/libmilter/../../contrib/sendmail/include/sm/con
fig.h:149:20:
>> ldap.h: No such file or directory
>>
>> mkdep: compile failed
>>    *** Error code 1
>>
>> I'll be continuing to work on this but hopefully
someone
>> here will have dealt with this previously
>
> Maybe SENDMAIL_ADDITIONAL_MC in make.conf will work
> with the needed APPENDDEF statements in my ldap.mc
file?

No, you probably want something similar to the way SASL2
support is
compiled into the base-system version of Sendmail.  In my
`make.conf'
I have the following:

    SENDMAIL_CFLAGS=        -I/usr/local/include -DSASL=2
    SENDMAIL_LDFLAGS=       -L/usr/local/lib
    SENDMAIL_LDADD=         -lsasl2

While adding stuff to these variables please keep in mind
that GCC on
FreeBSD has a major difference from the default GCC
behavior: it does *not*
add /usr/local/include to the default include path or
/usr/local/lib to the
default library search path.  So you will have to add them
yourself, as
shown above.

- Giorgos

_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
Sendmail Compile-Time Configuration - Success
user name
2006-04-30 05:55:59
Giorgos Keramidas wrote:
> On 2006-04-28 05:07, Duane Whitty <duanegreenmeadow.ca> wrote:
>   
>> Duane Whitty wrote:
>>     
>>> Duane Whitty wrote:
>>>       
>>>> I'm adding LDAP support to my Sendmail
configuration.  I couldn't seem
>>>> to find the appropriate m4 file in which to
declare my APPENDDEF
>>>> statements.  My course of action was to
include
>>>> SENDMAIL_CFLAGS+=-DLDAPMAP in make.conf. 
Does this seem like the
>>>> correct way to do this for FreeBSD
6-STABLE?
>>>>         
>
> That would be `/etc/make.conf'.
>
>   
>
> No, you probably want something similar to the way
SASL2 support is
> compiled into the base-system version of Sendmail.  In
my `make.conf'
> I have the following:
>
>     SENDMAIL_CFLAGS=        -I/usr/local/include
-DSASL=2
>     SENDMAIL_LDFLAGS=       -L/usr/local/lib
>     SENDMAIL_LDADD=         -lsasl2
>
> While adding stuff to these variables please keep in
mind that GCC on
> FreeBSD has a major difference from the default GCC
behavior: it does *not*
> add /usr/local/include to the default include path or
/usr/local/lib to the
> default library search path.  So you will have to add
them yourself, as
> shown above.
>
> - Giorgos
>
>
>
>   
Hi,

Thank you Giorgos, this is the right direction.
Your example was most fortuitous, maybe even
prescient. ;)

LDAP support in Sendmail requires that SASL
support also be built in.


My /etc/make.conf now contains

SENDMAIL_CFLAGS=        -I/usr/local/include -DSASL=2
-DLDAPMAP
SENDMAIL_LDFLAGS=       -L/usr/local/lib
SENDMAIL_LDADD=         -lsasl2 -lldap -llber


sendmail -d0.1 -bt now includes LDAPMAP and USE_LDAP_INIT

Thanks for your help.

Respectfully,

Duane Whitty
-- 
duanegreenmeadow.ca
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
Sendmail Compile-Time Configuration - Success
user name
2006-04-30 21:41:52
On 2006-04-30 02:55, Duane Whitty <duanegreenmeadow.ca> wrote:
>Giorgos Keramidas wrote:
>> No, you probably want something similar to the way
SASL2 support is
>> compiled into the base-system version of Sendmail. 
In my `make.conf'
>> I have the following:
>>
>>     SENDMAIL_CFLAGS=        -I/usr/local/include
-DSASL=2
>>     SENDMAIL_LDFLAGS=       -L/usr/local/lib
>>     SENDMAIL_LDADD=         -lsasl2
>>
>> While adding stuff to these variables please keep
in mind that GCC on
>> FreeBSD has a major difference from the default GCC
behavior: it does *not*
>> add /usr/local/include to the default include path
or /usr/local/lib to the
>> default library search path.  So you will have to
add them yourself, as
>> shown above.
>
> Hi,
>
> Thank you Giorgos, this is the right direction.  Your
example was most
> fortuitous, maybe even prescient. ;)

Heh!  Sheer luck, sheer luck.

> LDAP support in Sendmail requires that SASL support
also be built in.

Great!  I didn't know this, but SASL is one of the examples
I could
easily find in /usr/src to copy/ into the reply 

> SENDMAIL_CFLAGS=        -I/usr/local/include -DSASL=2
-DLDAPMAP
> SENDMAIL_LDFLAGS=       -L/usr/local/lib
> SENDMAIL_LDADD=         -lsasl2 -lldap -llber
>
> sendmail -d0.1 -bt now includes LDAPMAP and
USE_LDAP_INIT

Cool!  Just another useful bit, then, now that you got it
all going.

Now you have to make sure you remember to rebuild Sendmail
whenever
these libraries change version number.  An easy way to do
this is using
something like:

% gothmog:/home/build/src# cat -n ../rebuild-sendmail.sh
%      1  #!/bin/sh
%      2
%      3  DIRS=""
%      4  DIRS="$ ./bin/rmail"
%      5  DIRS="$ ./lib/libmilter"
%      6  DIRS="$ ./lib/libsm"
%      7  DIRS="$ ./lib/libsmdb"
%      8  DIRS="$ ./lib/libsmutil"
%      9  DIRS="$ ./libexec/mail.local"
%     10  DIRS="$ ./libexec/smrsh"
%     11  DIRS="$ ./usr.bin/vacation"
%     12  DIRS="$ ./usr.sbin/editmap"
%     13  DIRS="$ ./usr.sbin/mailstats"
%     14  DIRS="$ ./usr.sbin/makemap"
%     15  DIRS="$ ./usr.sbin/praliases"
%     16  DIRS="$ ./usr.sbin/sendmail"
%     17
%     18  export MAKEOBJDIRPREFIX=/home/build/obj
%     19
%     20  for dname in $ ; do
%     21          ( cd "$" &&
make clean && make && make install )
%     22          if test $? -ne 0 ; then
%     23                  echo ""
%     24                  echo ">>> FAILED
while rebuilding $"
%     25                  exit 1
%     26          fi
%     27  done
% gothmog:/home/build/src#

I keep this script just one folder upwards of my usual build
tree, and
then run it inside `/home/build/src' to rebuild the
Sendmail bits.

Have fun,

- Giorgos

_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )