Debian: cyrus2.2 will nicht starten

Postfix, QMail, Sendmail, Dovecot, Cyrus, Courier, Anti-Spam
rsherzad
Posts: 17
Joined: 2004-04-24 15:12

Debian: cyrus2.2 will nicht starten

Post by rsherzad »

Hallo zusammen,

ich habe nach folgender Anleitung: http://wiki.hetzner.de/index.php/DebianMailserver3 u.A. cyrus2.2 installiert. Leider startet er nicht, auch wenn beim Start keine Fehlermeldung angezeigt wird:

Code: Select all

Debian-50-lenny-64-LAMP:/# /etc/init.d/cyrus2.2 restart
Stopping Cyrus IMAPd: .
Waiting for complete shutdown...
Starting Cyrus IMAPd: cyrmaster.
Es findet sich kein Prozess, der mit "cyr" im Namen beginnt:

Code: Select all

Debian-50-lenny-64-LAMP:/# ps -eaf | grep cyr
root     14106 13381  0 20:28 pts/1    00:00:00 grep cyr
In der /var/log/mail.err heißt es:

Code: Select all

Aug 18 20:15:01 Debian-50-lenny-64-LAMP cyrus/master[14021]: unable to find command or port for service 'squatter'
In der /var/log/mail.log heißt es:

Code: Select all

Aug 18 20:15:01 Debian-50-lenny-64-LAMP cyrus/master[14021]: process started
Aug 18 20:15:01 Debian-50-lenny-64-LAMP cyrus/master[14023]: about to exec /usr/sbin/ctl_cyrusdb
Aug 18 20:15:01 Debian-50-lenny-64-LAMP cyrus/ctl_cyrusdb[14023]: recovering cyrus databases
Aug 18 20:15:01 Debian-50-lenny-64-LAMP cyrus/ctl_cyrusdb[14023]: skiplist: recovered /var/lib/cyrus/mailboxes.db (0 records, 144 bytes) in 0 seconds
Aug 18 20:15:01 Debian-50-lenny-64-LAMP cyrus/ctl_cyrusdb[14023]: skiplist: recovered /var/lib/cyrus/annotations.db (0 records, 144 bytes) in 0 seconds
Aug 18 20:15:01 Debian-50-lenny-64-LAMP cyrus/ctl_cyrusdb[14023]: done recovering cyrus databases
Aug 18 20:15:01 Debian-50-lenny-64-LAMP cyrus/master[14024]: about to exec /usr/sbin/cyr_expire
Aug 18 20:15:01 Debian-50-lenny-64-LAMP cyrus/cyr_expire[14024]: duplicate_prune: pruning back 3 days
Aug 18 20:15:01 Debian-50-lenny-64-LAMP cyrus/cyr_expire[14024]: duplicate_prune: purged 0 out of 0 entries
Aug 18 20:15:01 Debian-50-lenny-64-LAMP cyrus/cyr_expire[14024]: expunged 0 out of 0 messages from 0 mailboxes
Aug 18 20:15:01 Debian-50-lenny-64-LAMP cyrus/master[14025]: about to exec /usr/sbin/tls_prune
Aug 18 20:15:01 Debian-50-lenny-64-LAMP cyrus/tls_prune[14025]: tls_prune: purged 0 out of 0 entries
Aug 18 20:15:01 Debian-50-lenny-64-LAMP cyrus/master[14021]: WARNING: cannot find executable for service 'nntp' -- ignored
Aug 18 20:15:01 Debian-50-lenny-64-LAMP cyrus/master[14021]: unable to find command or port for service 'squatter'
Aug 18 20:15:01 Debian-50-lenny-64-LAMP cyrus/master[14021]: exiting
Die /etc/cyrus.conf sieht folgendermaßen aus:

Code: Select all

# Debian defaults for Cyrus IMAP server/cluster implementation
# see cyrus.conf(5) for more information
#
# All the tcp services are tcpd-wrapped. see hosts_access(5)
# $Id: cyrus.conf 567 2006-08-14 18:19:32Z sven $

START {
	# do not delete this entry!
	recover		cmd="/usr/sbin/ctl_cyrusdb -r"
  
	# this is only necessary if idlemethod is set to "idled" in imapd.conf
	#idled		cmd="idled"

	# this is useful on backend nodes of a Murder cluster
	# it causes the backend to syncronize its mailbox list with
	# the mupdate master upon startup
	#mupdatepush   cmd="/usr/sbin/ctl_mboxlist -m"

	# this is recommended if using duplicate delivery suppression
	delprune	cmd="/usr/sbin/cyr_expire -E 3"
	# this is recommended if caching TLS sessions
	tlsprune	cmd="/usr/sbin/tls_prune"
}

# UNIX sockets start with a slash and are absolute paths
# you can use a maxchild=# to limit the maximum number of forks of a service
# you can use babysit=true and maxforkrate=# to keep tight tabs on the service
# most services also accept -U (limit number of reuses) and -T (timeout)
SERVICES {
	# --- Normal cyrus spool, or Murder backends ---
	# add or remove based on preferences
	imap		cmd="imapd -U 30" listen="imap" prefork=0 maxchild=100
	imaps		cmd="imapd -s -U 30" listen="imaps" prefork=0 maxchild=100
	pop3		cmd="pop3d -U 30" listen="pop3" prefork=0 maxchild=50
	pop3s		cmd="pop3d -s -U 30" listen="pop3s" prefork=0 maxchild=50
	nntp		cmd="nntpd -U 30" listen="nntp" prefork=0 maxchild=100
	#nntps		cmd="nntpd -s -U 30" listen="nntps" prefork=0 maxchild=100
        squatter_1      cmd="/usr/bin/nice -n 19 /usr/sbin/squatter -s" period=120

	# At least one form of LMTP is required for delivery
	# (you must keep the Unix socket name in sync with imap.conf)
	#lmtp		cmd="lmtpd" listen="localhost:lmtp" prefork=0 maxchild=20
	lmtpunix	cmd="lmtpd" listen="/var/run/cyrus/socket/lmtp" prefork=0 maxchild=20
	# ----------------------------------------------

	# useful if you need to give users remote access to sieve
	# by default, we limit this to localhost in Debian
  	sieve		cmd="timsieved" listen="localhost:sieve" prefork=0 maxchild=100

	# this one is needed for the notification services
	notify		cmd="notifyd" listen="/var/run/cyrus/socket/notify" proto="udp" prefork=1

	# --- Murder frontends -------------------------
	# enable these and disable the matching services above, 
	# except for sieve (which deals automatically with Murder)

	# mupdate database service - must prefork at least 1
	# (mupdate slaves)
	#mupdate       cmd="mupdate" listen=3905 prefork=1
	# (mupdate master, only one in the entire cluster)
	#mupdate       cmd="mupdate -m" listen=3905 prefork=1

	# proxies that will connect to the backends
	#imap		cmd="proxyd" listen="imap" prefork=0 maxchild=100
	#imaps		cmd="proxyd -s" listen="imaps" prefork=0 maxchild=100
	#pop3		cmd="pop3proxyd" listen="pop3" prefork=0 maxchild=50
	#pop3s		cmd="pop3proxyd -s" listen="pop3s" prefork=0 maxchild=50
	#lmtp		cmd="lmtpproxyd" listen="lmtp" prefork=1 maxchild=20
	# ----------------------------------------------
}

EVENTS {
	# this is required
	checkpoint	cmd="/usr/sbin/ctl_cyrusdb -c" period=30

	# this is only necessary if using duplicate delivery suppression
	delprune	cmd="/usr/sbin/cyr_expire -E 3" at=0401

	# this is only necessary if caching TLS sessions
	tlsprune	cmd="/usr/sbin/tls_prune" at=0401
	
	# indexing of mailboxs for server side fulltext searches

	# reindex changed mailboxes (fulltext) approximately every other hour
	#squatter_1	cmd="/usr/bin/nice -n 19 /usr/sbin/squatter -s" period=120

	# reindex all mailboxes (fulltext) daily
	#squatter_a	cmd="/usr/sbin/squatter" at=0517
}
Die anderen Prozesse scheinen sauber zu laufen:

Code: Select all

Debian-50-lenny-64-LAMP:/# ps -eaf | grep postfix
root     13958     1  0 20:04 ?        00:00:00 /usr/lib/postfix/master
postfix  13960 13958  0 20:04 ?        00:00:00 pickup -l -t fifo -u -c
postfix  13961 13958  0 20:04 ?        00:00:00 qmgr -l -t fifo -u
root     14041 13381  0 20:19 pts/1    00:00:00 grep postfix

Code: Select all

Debian-50-lenny-64-LAMP:/# ps -eaf | grep saslauthd
root     13878     1  0 20:04 ?        00:00:00 /usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
root     13879 13878  0 20:04 ?        00:00:00 /usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
root     13880 13878  0 20:04 ?        00:00:00 /usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
root     13881 13878  0 20:04 ?        00:00:00 /usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
root     13882 13878  0 20:04 ?        00:00:00 /usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
root     14043 13381  0 20:20 pts/1    00:00:00 grep saslauthd
... und der Connect geht natürlich auch nicht:

Code: Select all

Debian-50-lenny-64-LAMP:/# cyradm --user cyrus --server localhost --auth plain
cyradm: cannot connect to server
Weiß hier jemand Rat? Ich bin Linux-mäßig nicht komplett unbedarft, allerdings in Dingen Postfix/Cyrus nicht wirklich fit.

Vielen Dank!
R.

papabaer
Userprojekt
Userprojekt
Posts: 169
Joined: 2009-05-14 17:40
Location: Halle (Saale)

Re: Debian: cyrus2.2 will nicht starten

Post by papabaer »

rsherzad wrote:

Code: Select all

Aug 18 20:15:01 Debian-50-lenny-64-LAMP cyrus/master[14021]: process started
...
Aug 18 20:15:01 Debian-50-lenny-64-LAMP cyrus/master[14021]: unable to find command or port for service 'squatter'
Aug 18 20:15:01 Debian-50-lenny-64-LAMP cyrus/master[14021]: exiting

Code: Select all

# Debian defaults for Cyrus IMAP server/cluster implementation
# see cyrus.conf(5) for more information
...
        squatter_1      cmd="/usr/bin/nice -n 19 /usr/sbin/squatter -s" period=120
...
Keine Ahnung, was squatter ist (nicht meine Gegend) aber du willst es nutzen und hast es nicht installiert.

Stefan

User avatar
Joe User
Project Manager
Project Manager
Posts: 11141
Joined: 2003-02-27 01:00
Location: Hamburg

Re: Debian: cyrus2.2 will nicht starten

Post by Joe User »

Deine cyrus.conf möchte so geändert werden:
rsherzad wrote:

Code: Select all

...
	#nntp		cmd="nntpd -U 30" listen="nntp" prefork=0 maxchild=100
	#nntps		cmd="nntpd -s -U 30" listen="nntps" prefork=0 maxchild=100
	#squatter_1      cmd="/usr/bin/nice -n 19 /usr/sbin/squatter -s" period=120
...
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.

rsherzad
Posts: 17
Joined: 2004-04-24 15:12

Re: Debian: cyrus2.2 will nicht starten

Post by rsherzad »

Danke euch beiden!
Tatsächlich hat das deaktivieren von nntp und squatter_1 das Problem gelöst. Den nntp brauche ich nicht und auf squatter (indiziert wohl IMAP Ordner für schnellere Suchen) kann ich erst einmal verzichten.

Vielen Dank
R.