Problems getting Cyrus Imap working [2]
Daniel Sepeur
mlists at eomis.de
Mon May 9 18:38:31 EDT 2005
Hello ... Its me again,
sorry for the half-mailing a few minutes before -> false key-combination
:-)
Now the whole mail again.
I am totally confused and it seems, that i need your help today. Former
i used SuSE distros with pre-installed Postfix-SASL-Cyrus system. Now i
have to setup a box with Debian Woody and I ask me: Why you should take
oder software, if you can get the freshest from the net. So i downloaded
all relevant software like this:
- Berkeley DB 4.3.27
- Openssl 0.9.7g
- Postfix 2.2.2
- cyrus-sasl-2.1.20
- cyrus-imap-2.2.12
Firstly, I installed Berkely DB and linked the libs via ld.so.conf.
After them, I installed openssl successfully. Then, in installed
cyrus-sasl like the following:
./configure --enable-anon --enable-login --enable-plain --disable-krb4
--disable-otp --disable-cram --disable-digest
--with-saslauthd=/var/run/saslauthd --with-pam=/lib/security
--with-dblib=berkeley --with-bdb-libdir=/usr/lib
--with-bdb-incdir=/usr/include --with-openssl=/usr/local/openssl
--with-plugindir=/usr/local/lib/sasl2 --bindir=/usr/bin
--sbindir=/usr/sbin --sysconfdir=/etc --includedir=/usr/include
--libdir=/usr/lib
make and make install will run without problems. All relevant files are
there and I can also start the saslauthd via /usr/sbin/saslauthd -c -a
pam&
A tail on my syslog-file and netstat tells me, that saslauthd is up and
running.
May 10 00:08:46 machine saslauthd[31445]: detach_tty : master pid
is: 31445
May 10 00:08:46 machine saslauthd[31445]: ipc_init : listening on
socket: /var/run/saslauthd/mux
unix 2 [ ACC ] STREAM LISTENING 213210
/var/run/saslauthd/mux
Ok so far.
After them, I installed Cyrus-Imap with the following options:
./configure --with-cyrus-user=cyrus --with-cyrus-group=mail
--prefix=/usr --bindir=/usr/bin --sbindir=/
usr/sbin --datadir=/usr/share --sysconfdir=/etc --libdir=/usr/lib
--includedir=/usr/include --mandir=/usr/share/man --with-perl
--with-auth=unix --with-bdb=yes --with-dbdir=/usr/local/bdb/4.3.27
--with-bdb-libdir=/usr/lib --with-bdb-incdir=/usr/include
--with-openssl=/usr/local/openssl --without-ucdsnmp
--with-sasl=/usr/local/lib/sasl2
make and make install will also run without problems.
After the installation process, i will edit /etc/imapd.conf,
/etc/imapd-local.conf and /etc/cyrus.conf like alot of examples in the
net.
Then I switch to user cyrus and run mkimap -> all well fine.
Now is the time right to test the server:
I do a /usr/cyrus/bin/master &
BUT the server will not start up. No process from master, no LISTEN in
netstat ... nothing. And this is the 5th time i install that system and
every time i get the same thing. Nothing to hear from cyrus-imap.
Here is all, what I have in my logfiles:
May 10 00:08:46 machine master[31444]: setrlimit: Unable to set file
descriptors limit to -1: Operation not permitted
May 10 00:08:46 machine master[31444]: retrying with 1024 (current max)
May 10 00:08:46 machine master[31444]: process started
May 10 00:08:46 machine master[31446]: about to exec
/usr/cyrus/bin/ctl_cyrusdb
May 10 00:08:46 machine ctl_cyrusdb[31446]: recovering cyrus databases
May 10 00:08:46 machine ctl_cyrusdb[31446]: skiplist: recovered
/var/imap/mailboxes.db (0 records, 144 bytes) in 0 seconds
May 10 00:08:46 machine ctl_cyrusdb[31446]: skiplist: recovered
/var/imap/annotations.db (0 records, 144 bytes) in 0 seconds
May 10 00:08:46 machine ctl_cyrusdb[31446]: done recovering cyrus
databases
A netstat will not show up any listening on port 143:
machine:/usr/src/lamps/cyrus-imapd-2.2.12# netstat -an |grep LISTEN
tcp 0 0 0.0.0.0:3306 0.0.0.0:*
LISTEN
tcp 0 0 0.0.0.0:21 0.0.0.0:*
LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:*
LISTEN
tcp 0 0 0.0.0.0:25 0.0.0.0:*
LISTEN
unix 2 [ ACC ] STREAM LISTENING 138700
/var/run/mysqld/mysqld.sock
unix 2 [ ACC ] STREAM LISTENING 210983 public/cleanup
unix 2 [ ACC ] STREAM LISTENING 210990 private/rewrite
unix 2 [ ACC ] STREAM LISTENING 210994 private/bounce
unix 2 [ ACC ] STREAM LISTENING 210998 private/defer
unix 2 [ ACC ] STREAM LISTENING 211002 public/flush
unix 2 [ ACC ] STREAM LISTENING 211006 private/smtp
unix 2 [ ACC ] STREAM LISTENING 211010 public/showq
unix 2 [ ACC ] STREAM LISTENING 211014 private/error
unix 2 [ ACC ] STREAM LISTENING 211018 private/local
unix 2 [ ACC ] STREAM LISTENING 211022 private/virtual
unix 2 [ ACC ] STREAM LISTENING 211026 private/lmtp
unix 2 [ ACC ] STREAM LISTENING 211030 private/cyrus
unix 2 [ ACC ] STREAM LISTENING 211034 private/uucp
unix 2 [ ACC ] STREAM LISTENING 211038 private/ifmail
unix 2 [ ACC ] STREAM LISTENING 211042 private/bsmtp
unix 2 [ ACC ] STREAM LISTENING 211046
private/scalemail-backend
unix 2 [ ACC ] STREAM LISTENING 213210
/var/run/saslauthd/mux
If i try to connect to cyradm with cyradm --user cyrus --auth plain (or
login) --server localhost, I get a:
cyradm: cannot connect to server
Please please ... if there is anyone out there who can help me ... I´ll
spend you a big big beer if you can help me to fix that :-)
Any help is very very appriciated.
Thank you
Daniel
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
More information about the Info-cyrus
mailing list