Dovecot Problem


RoTeUb

New Member
Hallo,
Ich versuche momentan Froxlor auf meinem Server zum laufen zubekommen und wollte mal fragen ob ihr mir helfen könnt immer wenn ich dovecot restarte kommt die Fehlermeldung:

Code:
Restarting IMAP/POP3 mail server: dovecotFatal: Dovecot is already running with PID 12308 (read from /var/run/dovecot/master.pid)
 failed!

Ich habe den restart schonmal in einzelschritten gemacht aber keine Wirkung, selbes Problem die master.pid änder sich nie ...

Gruß
RoTeUb
 
Die Ausgabe ist:
Code:
UID        PID  PPID  C STIME TTY          TIME CMD
root     12308     1  0 12:30 ?        00:00:00 /usr/sbin/dovecot

Ob das ein Devcote Prozess ist weiss ich nicht ich geh mal davon aus ...
 
Last edited by a moderator:
Dann sollte der nach einem
Code:
/etc/init.d/dovecot stop
auch weg sein. Falls nicht, dann glaubt das Script wohl, dass da kein Dovecot laufen sollte, weil beispielsweise das Configfile /etc/dovecot/dovecot.conf nicht da ist (oder wo auch immer das bei deinem OS liegt). Ein
Code:
sh -x /etc/init.d/dovecot stop
könnte hier mehr zeigen.
 
Hallo,
Nach dem normalen stop befehl ist es leider nicht weg. Der zweite befehl gibt die folgende Ausgabe:

Code:
ssh:# sh -x /etc/init.d/dovecot stop
+ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+ DESC='IMAP/POP3 mail server'
+ NAME=dovecot
+ DAEMON=/usr/sbin/dovecot
+ DAEMON_ARGS=
+ SCRIPTNAME=/etc/init.d/dovecot
+ CONF=/etc/dovecot/dovecot.conf
+ '[' -r /etc/default/dovecot ']'
+ '[' -x /usr/sbin/dovecot ']'
+ '[' -f /etc/dovecot/dovecot.conf ']'
+ . /lib/init/vars.sh
++ '[' -f /etc/default/rcS ']'
++ . /etc/default/rcS
+++ TMPTIME=0
+++ SULOGIN=no
+++ DELAYLOGIN=no
+++ UTC=yes
+++ VERBOSE=no
+++ FSCKFIX=no
+++ RAMRUN=no
+++ RAMLOCK=no
++ '[' -r /proc/cmdline ']'
++ NOSWAP=no
++ '[' '!' -e /proc/cmdline ']'
++ VERBOSE=no
++ '[' '' ']'
++ true
+ . /lib/lsb/init-functions
++ FANCYTTY=
++ '[' -e /etc/lsb-base-logging.sh ']'
++ true
+ '[' '!' -r /etc/dovecot/dovecot.conf ']'
++ sed -r 's/^ *(([^:]+|\[[^]]+]|\*):)?(pop3s?|imaps?)[ \t].*/\3/;t;d' /etc/inet        d.conf
++ sed -r 's/^[ \t]*base_dir[ \t]*=[ \t]*([^ \t]*)/\1/;t;d' /etc/dovecot/dovecot        .conf
+ PIDBASE=$'/var/run/dovecot\r'
+ PIDFILE=$'/var/run/dovecot\rmaster.pid'
+ case "$1" in
+ '[' no '!=' no ']'
+ do_stop
+ start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $'/var/run/d        ovecot\rmaster.pid' --name dovecot
+ RETVAL=1
+ '[' 1 = 2 ']'
+ start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --pidfile $'/var        /run/dovecot\rmaster.pid' --name dovecot
+ '[' 0 = 2 ']'
+ rm -f $'/var/run/dovecot\rmaster.pid'
+ return 1
+ case "$?" in
+ '[' no '!=' no ']'
+ exit 0

dovecot.conf (von Froxlor):
Code:
base_dir = /var/run/dovecot
protocols = imap pop3 imaps pop3s
listen = *
mail_access_groups = vmail
mail_debug = no
## Uncomment this line to allow Plaintext Logins from foreign IP if the Connection doesn't use TLS
disable_plaintext_auth = no

### SSL Settings
### After setting this options, set disable_plaintext_auth to yes (see above)
### and add imaps pop3s to the protocols
#ssl_cert_file = /etc/ssl/server/srv.pem
#ssl_key_file = /etc/ssl/server/srv.key
## This is an example with CACerts class3 cert!
#ssl_ca_file = /path/to/cacert.class3.crt
#ssl_cipher_list = ALL:!LOW:!SSLv2

protocol imap {
	mail_plugins = quota imap_quota
}

protocol pop3 {
    # Uncomment this line if you are migrating from Courier also see Migration from Courier
    pop3_uidl_format = UID%u-%v
    mail_plugins = quota
    
}
protocol lda {
	# postmaster is the one in charge of the mail system. MUST be set to a vailid address!
    postmaster_address = [email protected]
    auth_socket_path = /var/run/dovecot/auth-master
    mail_plugins = quota
    sendmail_path = /usr/sbin/sendmail
}

auth default {
    mechanisms = plain login
    passdb sql {
        args = /etc/dovecot/dovecot-sql.conf
    }
    
    userdb prefetch {
    }
    
    userdb sql {
        args = /etc/dovecot/dovecot-sql.conf
    }
    
    user = vmail
    socket listen {
    	# Postfix uses the client socket for SMTP Auth
        client {
            # Assuming the default Postfix $queue_directory setting
            path = /var/spool/postfix/private/auth
            mode = 0660
            # Assuming the default Postfix user and group
            user = postfix
            group = postfix
        }
        # Note that we're setting a master socket. SMTP AUTH for Postfix and Exim uses client sockets.
        master {
			path = /var/run/dovecot/auth-master
			mode = 0660
			user = vmail
			group = vmail
    }
        
    }
}
plugin {
	quota = maildir
}

Anhang: Wenn ich killall dovecot schreibe wird die Datei gelöscht beim nächstenrestart (nachdem ich ihn dann gestartet habe) selbes Problem ...
 
Deine dovecot.conf enthält Windows-Zeilenumbrüche. Damit kommt das Startup-Script nicht klar.

Zusatz: wenn basedir in der dovecot.conf gesetzt wird, dann müßte das m.E. mit einem / am Ende sein.
 
Last edited by a moderator:
Das mit den Zeilenumbrüchen ist nachvollziebar, habe diese per dos2unix convertiert.

Das andere ist, im init.d gibt es einen Debian Bug das hat mir Dessa im Froxlor Chat gesagt:
"PIDFILE=${PIDBASE:-/var/run/dovecot/}master.pid"
muss in
"PIDFILE=${PIDBASE:-/var/run/dovecot}/master.pid"
geändert werden

Danke & Gruß
RoTeUB
 

Back
Top