[Fwd: Re: [Dovecot] Compiling dovecot on SuSE 9]

Ted S. Garaventa tsg at cctg.com
Thu Nov 27 07:33:30 EET 2003


Thanks for the reply regarding the compilaton of dovecot to SuSE 9.
I have made the key and put it in the correct area but still no luck.

I have attached the strace output to the end of this email.
Thanks!!!

> Date: Wed, 26 Nov 2003 00:17:07 -0800 (PST)
> From: "Ted S. Garaventa" <tsg at cctg.com>
> Subject: [Dovecot] Compiling dovecot on SuSE 9
> To: dovecot at procontrol.fi
>
> Again I am asking for some help to compile and configure dovecot on SuSE 9.

im working on some rpm for it. i think ill release them on thursday.

> I have configured and compiled it as per the instructions and no errors
or problems. When I try to run dovecot from the command line it does not
complain or give me any errors. The daemon starts and dies almost
immediately.

you did everything right so far. the problem is that dovecot comes with
SSL enabled by default but there is no cert for it. go to $SRCDIR/doc/
edit mkcert.sh (change imapd.pem to dovecot.pem)
run it.
restart dovecot and everything will be fine.

but you need a dovecot pam file. i use the file from [1].

> Do I need to compile differently?  What can I do to see what is the
problem. I was asked to run strace but I don't know what it is telling
me.
the solution would be:

strace -e trace=file dovecot

you would see a file not found error at the end of the log.

darix

[1]
http://monsters.rsn.uni-rostock.de/~darix/suse/dovecot

you can find the patch for mkcert.sh + dovecot.pam + init script there.
and of course the rpm when it's done.
-- 
irssi - the client of the smart and beautiful people

              http://www.irssi.de/

strace output follows:
---------------------------------------------------------------------------
casella:/etc/ssl/private # strace -e trace=file /usr/local/sbin/dovecot
execve("/usr/local/sbin/dovecot", ["/usr/local/sbin/dovecot"], [/* 55 vars
*/]) = 0
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=86690, ...}) = 0
open("/lib/i686/libc.so.6", O_RDONLY)   = 3
fstat64(3, {st_mode=S_IFREG|0755, st_size=1461208, ...}) = 0
open("/usr/local/etc/dovecot.conf", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=18087, ...}) = 0
pread(3, "## Dovecot 1.0 configuration fil"..., 2048, 0) = 2048
pread(3, "gfile instead of syslog(). /dev/"..., 2035, 2048) = 2035
pread(3, "k-bombing\n# we check only once i"..., 1978, 4083) = 1978
pread(3, "processes (ie. /var/mail will al"..., 2046, 6061) = 2046
pread(3, " which speeds up most operations"..., 2023, 8107) = 2023
pread(3, "s. There\'s no access checks othe"..., 2008, 10130) = 2008
pread(3, " and flock too; if you do the or"..., 2024, 12138) = 2024
pread(3, "modules = /usr/lib/dovecot/pop3\n"..., 2042, 14162) = 2042
pread(3, "e, see doc/dovecot-pgsql.conf\nau"..., 1883, 16204) = 1883
open("/etc/nsswitch.conf", O_RDONLY)    = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1291, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=86690, ...}) = 0
open("/lib/libnss_compat.so.2", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0755, st_size=33795, ...}) = 0
open("/lib/libnsl.so.1", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0755, st_size=89220, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=86690, ...}) = 0
open("/lib/libnss_nis.so.2", O_RDONLY)  = 3
fstat64(3, {st_mode=S_IFREG|0755, st_size=40322, ...}) = 0
open("/lib/libnss_files.so.2", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0755, st_size=42162, ...}) = 0
open("/etc/passwd", O_RDONLY)           = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1475, ...}) = 0
open("/etc/passwd", O_RDONLY)           = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1475, ...}) = 0
access("/usr/local/libexec/dovecot/imap-login", X_OK) = 0
access("/usr/local/libexec/dovecot/imap", X_OK) = 0
lstat64("/usr/local/var/run/dovecot", {st_mode=S_IFDIR|0700, st_size=72,
...}) = 0
open("/usr/local/var/run/dovecot", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFDIR|0700, st_size=72, ...}) = 0
lstat64("/usr/local/var/run/dovecot", {st_mode=S_IFDIR|0700, st_size=72,
...}) = 0
open(".", O_RDONLY|O_LARGEFILE)         = 3
open("/usr/local/var/run/dovecot/login", O_RDONLY|O_LARGEFILE|O_NOFOLLOW) = 4
open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 5
fstat64(5, {st_mode=S_IFDIR|0750, st_size=48, ...}) = 0
lstat64("/usr/local/var/run/dovecot/login", {st_mode=S_IFDIR|0750,
st_size=48, ...}) = 0
open("/usr/local/var/run/dovecot/login", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFDIR|0750, st_size=48, ...}) = 0
lstat64("/usr/local/var/run/dovecot/login", {st_mode=S_IFDIR|0750,
st_size=48, ...}) = 0
access("/usr/local/libexec/dovecot/dovecot-auth", X_OK) = 0
open("/dev/null", O_RDONLY|O_LARGEFILE) = 3



More information about the dovecot mailing list