Click to See Complete Forum and Search --> : sendmail Compilation Pains
michaelchileshe
07-04-2003, 04:30 AM
I get...
makemap: Need to recompile with -DNEWDB for hash support
When i #makemap hash /etc/mail/access
I have specified in the site config that sendmail should compile with DNEWDB support.
Please help...
mdwatts
07-04-2003, 07:43 AM
You may need to include a bit more info as I cannot follow what you are asking.
Anyone else know?
linnov
07-04-2003, 09:33 AM
APPENDDEF(`confMAPDEF', `-DNEWDB')
APPENDDEF(`confINCDIRS', `-I/path/to/include')
APPENDDEF(`confLIBDIRS', `-L/path/to/lib')
APPENDDEF(`confLIBS', `-ldb')
- where /path/to/include and /path/to/lib are of course the respective
directories where you installed the include files and library for
Berkeley DB - and then run './Build -c'. Actually you may not need the
confMAPDEF and confLIBS, as Build should figure them out itself when
given the other two. See BuildTools/README and BuildTools/Site/README.
And just like the .mc file you use for building sendmail.cf, the
site.config.m4 file can be carried along when you upgrade sendmail.
michaelchileshe
07-04-2003, 03:34 PM
Ok done just that but now...
[root@kaloxy-joint build_unix]# makemap hash /etc/mail/access
makemap: error while loading shared libraries: libdb-4.1.so: cannot open shared object file: No such file or directory.
Meanwhile...
[root@kaloxy-joint build_unix]# find / -name libdb-4.1.so -print
find: /mnt/cdrom: Input/output error
/usr/local/BerkeleyDB.4.1/lib/libdb-4.1.so
/home/michael/db-4.1.25/build_unix/.libs/libdb-4.1.so
I am running Mandrake 9.1, db-4.1.25, and the sendmail package i am trying to install is sendmail-8.12.9
My site conf file is:
APPENDDEF(`confMAPDEF', `-DNEWDB')
APPENDDEF(`confINCDIRS', `-I/usr/local/BerkeleyDB.4.1/include')
APPENDDEF(`confLIBDIRS', `-L/usr/local/BerkeleyDB.4.1/lib')
APPENDDEF(`confLIBS', `-ldb')
-Mike
mdwatts
07-04-2003, 04:00 PM
Unless there is another way to fix that problem specifically for Sendmail, try adding
/usr/local/BerkeleyDB.4.1/lib
to /etc/ld.so.conf and run ldconfig (both as root).
michaelchileshe
07-09-2003, 01:53 PM
Ok, that sorts the problems and the compilation and the installation was all cool.
Now from the manuals i understand i am supposed to run
#/usr/lib/sendmail -v -bi, to intialise the alias database? Just after the installation But when i do so, it just hangs, any hints?
Second i able to send mail,say from the command line, but when doing i reply to the mail i get:
hash map "Alias0":unsafe map file /etc/aliases.db:permission denied and yet my alias file is in /etc/mail...:(
-Mike
mdwatts
07-09-2003, 02:22 PM
I have no idea for the first problem, but for the second you may be able to create a symlink.
Does /etc/aliases.db exist at all?
If not (as root),
ln -s /etc/mail/aliases.db /etc/aliases.db