dovecot and exim problems after Da install

noxtras

Verified User
Joined
Nov 11, 2010
Messages
39
Hello,

I just finished installing DA on a new server. Everything works, except dovecot and exim.
Initially, dovecot returned this error when starting:
Error: Error in configuration file /etc/dovecot/dovecot.conf line 716: Unknown protocol name (section changed in /etc/dovecot/dovecot.conf at line 710)
Fatal: Invalid configuration in /etc/dovecot/dovecot.conf

I commented the empty function (protocol ManageSieve). Didn't work. I reinstalled dovecot and not in the error logs it says:

Nov 18 19:24:01 grumpy dovecot[31138]: dovecot: Fatal: Auth process died too early - shutting down
Nov 18 19:24:09 grumpy dovecot[31152]: auth(default): Fatal: Support not compiled in for passdb driver 'pam'

Originally Exim didn't start because of:

exim: relocation error: /lib/tls/i686/cmov/libnss_compat.so.2: symbol strcmp, version GLIBC_2.0 not defined in file libc.so.6 with link time reference

I tried to remove exim, installed exim4? back, and now i don't have exim, and exim4 won't start either....

I am running Ubuntu 10.4 TLS 32 bit, and the license in DA is Debian 5.0.

Please help.
 
Did you let DirectAdmin install Dovecot and Exim?

What happens when you use custombuild to reinstall both?

Jeff
 
Use custombuild:

cd /usr/local/directadmin/custombuild
./build update
./build clean
./build exim d
./build dovecot d
 
Thx SCSI,
I've done everything you told me to, but dovecot still has the same error:
Restarting dovecot.
* Restarting IMAP/POP3 mail server dovecot Last died with error (see error log for more information): Auth process died too early - shutting down

The same error as before...

As for Exim. When I do sudo ./build exim d, it displays a list of available ./build commands and exim is not listed.

I've installed Ubuntu with proftpd, php,mysql, dns, mail (selected at the ubuntu installation prompt - install services).
 
Exim:

http://help.directadmin.com/item.php?id=125

Dovecot:

Something isnt right with your dovecot it shouldnt be /etc/dovecot/dovecot.conf it should be /etc/dovecot.conf

You must have installed via some other method then custombuild.

Try:

aptitude remove dovecot
aptitude purge dovecot

cd /usr/local/directadmin/custombuild
./build dovecot d
 
Last edited:
I did everything you said, I've recompiled dovecot and I still get the same error.
Last died with error (see error log for more information): Auth process died too early - shutting down
In the log file, I get the same error:
Nov 18 21:33:11 grumpy dovecot[3886]: auth(default): Fatal: Support not compiled in for passdb driver 'pam'
Nov 18 21:33:11 grumpy dovecot[3886]: dovecot: Fatal: Auth process died too early - shutting down


As for exim. I already tried the link you suggested and I also get a LOT of errors after 'make', ending with:
make[1]: *** [exim_dbmbuild.o] Error 1
make[1]: Leaving directory `/home/snowwhite/exim-4.72/build-Linux-i386'
make: *** [all] Error 2

I am way lost in this DA installation:(
 
I am rebuilding DA with './build all'. If this won't solve my problems, is there a way to remove DA completely from the system?
I am thinking of buying a DA license with their installation service.
 
Well when you first installed directadmin was it a clean server with nothing installed on it yet?

There isnt any way to remove da as those packages are not really part of directadmin they work along side of it.

Maybe your dovecot config is messed up...

wget -O /etc/dovecot.conf "http://files.directadmin.com/services/custombuild/dovecot.conf"
/etc/init.d/dovecot restart

As far as the exim errors show me more of the error lines that make is spitting out.
 
The server was clean Ubuntu, with default LAMP, DNS, mail + I installed gcc.
I've run a build all and I still have exactly the same errors as before.
I also did the wget you suggested and still the same error as before.
Here is the full exim 'make' output:

Note (probably harmless): No library found for -lperl
>>> rebuilt Makefile unchanged

make[1]: Entering directory `/home/snowwhite/exim-4.72/build-Linux-i386'
/bin/sh ../scripts/Configure-config.h "make"
make[2]: Entering directory `/home/snowwhite/exim-4.72/build-Linux-i386'
make[2]: `buildconfig' is up to date.
make[2]: Leaving directory `/home/snowwhite/exim-4.72/build-Linux-i386'
Building configuration file config.h
>>> config.h built

>>> exicyclog script built
>>> exinext script built
>>> exiwhat script built
>>> exigrep script built
>>> eximstats script built
>>> exipick script built
>>> exiqgrep script built
>>> exiqsumm script built
>>> transport-filter.pl script built
>>> convert4r3 script built
>>> convert4r4 script built
>>> exim_checkaccess script built

gcc exim_dbmbuild.c
In file included from exim.h:438,
from exim_dbmbuild.c:33:
dbstuff.h:103:16: error: db.h: No such file or directory
In file included from exim.h:438,
from exim_dbmbuild.c:33:
dbstuff.h:540: error: expected specifier-qualifier-list before âDBâ
exim_dbmbuild.c: In function âmainâ:
exim_dbmbuild.c:150: error: âDBâ undeclared (first use in this function)
exim_dbmbuild.c:150: error: (Each undeclared identifier is reported only once
exim_dbmbuild.c:150: error: for each function it appears in.)
exim_dbmbuild.c:150: error: âdâ undeclared (first use in this function)
exim_dbmbuild.c:151: error: âDBTâ undeclared (first use in this function)
exim_dbmbuild.c:151: error: expected â;â before âkeyâ
exim_dbmbuild.c:213: error: âDB_HASHâ undeclared (first use in this function)
exim_dbmbuild.c:295: error: âcontentâ undeclared (first use in this function)
exim_dbmbuild.c:298: error: âkeyâ undeclared (first use in this function)
exim_dbmbuild.c:298: error: âR_NOOVERWRITEâ undeclared (first use in this function)
make[1]: *** [exim_dbmbuild.o] Error 1
make[1]: Leaving directory `/home/snowwhite/exim-4.72/build-Linux-i386'
make: *** [all] Error 2
 
OK. I've seen the error db.h, I've installed the lib42-dev, but I still got errors:
A lot of these.... with different values..
perl.c:(.text+0x1601): undefined reference to `Perl_croak_nocontext'
 
You are not supposed to have any LAMP stuff installed before you install directadmin.

You didnt follow the exim guide completely...it says you need to run:

aptitude install libdb4.8-dev libperl-dev libsasl2-dev
 
I also installed libperl-dev, but I still get the same error message when compiling.
 
I didn't know that about LAMP. I've read the 'All we need is a CLEAN install of your operating system' line, but I didn't read the line above it.:mad:
I've installed aptitude install libdb4.8-dev libperl-dev libsasl2-dev and as I mentioned, I get the same error.

Problem....Now the server is a remote location far away from me.
How can I clean up the OS and try DA install again?
 
Did you try "http://help.directadmin.com/item.php?id=276" yet?
 
I managed to compile exim. but now I have yet another problem:
cp: cannot stat `/usr/sbin/exim-4.72-1': No such file or directory
 
Did you do make install

Try:

ls /usr/sbin/exim-*

it might have a different name or something
 
I was just writing to you again about even more errors, when out of the blue I finally managed to install and start exim.
Thank you.
 
I've just copyed the compiled exim to /etc/init.d/exim (where DA is looking for it)
it worked.

Now, if we could make dovecot work it would be fenomenal.
 
That is not where the compiled exim should go at all that is where the init file to start exim goes.

The binary should go in /usr/sbin/exim
 
Back
Top