Hey,
ich möchte gerne auf meinem Debain 7.2 (wheezy) ein funktionierendes Mailsystem mit angenehmer Verwaltungsoberfläche installieren. Dazu habe ich mir das System Postfixadmin ausgesucht. Das System funktioniert bei mir gut. Also die Weboberfläche mit der Datenbank verbunden und postfix mit der Datenbank verbunden. Dovecot zickt bei mir noch ein wenig rum, obwohl eigentlich alle Einstellungen eingestellt sind...
Die Dateirechte sind folgendermaßen gesetzt:
Code:
Benutzer@System:/etc/dovecot$ ls -l
insgesamt 120
drwxr-xr-x 2 root root 4096 Jul 14 21:44 conf.d
-rw-r--r-- 1 root vmail 2673 Oct 10 21:31 dovecot.conf
-rw-r----- 1 root dovecot 410 Feb 5 2013 dovecot-db.conf.ext
-rw-r----- 1 root dovecot 782 Feb 5 2013 dovecot-dict-sql.conf.ext
-rw------- 1 root root 5192 Feb 5 2013 dovecot-ldap.conf.ext
-r-xr-x--- 1 vmail vmail 0 Apr 6 2013 dovecot-master-users-password
-rw-r----- 1 root vmail 330 Jul 14 21:53 dovecot-mysql.conf
-rw-r--r-- 1 root root 742 Oct 10 21:19 dovecot-new.conf
-rw-r--r-- 1 root dovecot 1448 Jul 14 21:44 dovecot.pem
-r-x------ 1 munin munin 505 Apr 6 2013 dovecot-share-folder.conf
-rw-r----- 1 root dovecot 5348 Feb 5 2013 dovecot-sql.conf.ext
-r-x------ 1 munin munin 334 Apr 6 2013 dovecot-used-quota.conf
Meine dovecot.conf sieht so aus:
Code:
protocols = imap imaps
# IMAP Konfiguration
protocol imap {
listen = *:143
# Quota Einstellungen
# mail_plugins = quota imap_quota
}
listen = *
# erzwinge AUTH mit STARTTLS
disable_plaintext_auth = yes
# logging Optionen
log_path = /var/log/dovecot.log
info_log_path = /var/log/dovecot.log
log_timestamp = "%Y-%m-%d %H:%M:%S "
syslog_facility = mail
# mailbox Einstellungen
mail_location = maildir:/var/vmail/%d/%u
mail_privileged_group = mail
mail_debug = no
# gültig ist nur unser vmail-Besitzer
first_valid_uid = 150
last_valid_uid = 150
maildir_copy_with_hardlinks = yes
# IMAP Optionen
protocol imap {
login_executable = /usr/lib/dovecot/imap-login
mail_executable = /usr/lib/dovecot/imap
imap_max_line_length = 65536
mail_plugin_dir = /usr/lib/dovecot/modules/imap
}
# managesieve aktivieren
protocol managesieve {
}
# deliver aktivieren
protocol lda {
postmaster_address = [email protected]
mail_plugins = quota sieve
mail_plugin_dir = /usr/lib/dovecot/modules/lda
deliver_log_format = msgid=%m: %$
sendmail_path = /usr/lib/sendmail
auth_socket_path = /var/run/dovecot/auth-master
}
auth_verbose = no
auth_debug = no
# Authentifizierungs-Info aus Datenbank
auth default {
mechanisms = plain login
passdb sql {
args = /etc/dovecot/dovecot-sql.conf
}
# steigert Performance mit Datenbank
userdb prefetch {
}
userdb sql {
args = /etc/dovecot/dovecot-sql.conf
}
user = nobody
socket listen {
master {
path = /var/run/dovecot/auth-master
mode = 0660
user = postfix
group = mail
}
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}
}
# Quota-Info wird in Datenbank gespeichert
dict {
quotadict = mysql:/etc/dovecot/dovecot-dict-sql.conf
mail_debug = yes
}
Meine dovecot-mysql.conf sieht so aus:
Code:
driver = mysql
connect = host=localhost dbname=Datenbank user=hieruserhindenken password=hierpasswdhindenken
default_pass_scheme = CRYPT-MD5
password_query = SELECT password FROM mailbox WHERE username = '%u'
user_query = SELECT CONCAT('maildir:/var/vmail/',maildir) AS mail, 5000 AS uid, 5000 AS gid FROM mailbox WHERE username = '%u'
Wenn ich mit service dovecot start versuche den Server zu starten, wird mir folgendes gezeigt:
Code:
doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -n > dovecot-new.conf
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:3: 'imaps' protocol is no longer necessary, remove it
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:6: listen=..:port has been replaced by service { inet_listener { port } }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:6: protocol { listen } has been replaced by service { inet_listener { address } }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:50: login_executable has been replaced by service { executable }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:51: mail_executable has been replaced by service { executable }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:61: protocol managesieve {} has been replaced by protocol sieve { }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:78: add auth_ prefix to all settings inside auth {} and remove the auth {} section completely
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:81: passdb sql {} has been replaced by passdb { driver=sql }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:86: userdb prefetch {} has been replaced by userdb { driver=prefetch }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:89: userdb sql {} has been replaced by userdb { driver=sql }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:93: auth_user has been replaced by service auth { user }
doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf: ssl enabled, but ssl_cert not set
doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -n > dovecot-new.conf
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:3: 'imaps' protocol is no longer necessary, remove it
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:6: listen=..:port has been replaced by service { inet_listener { port } }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:6: protocol { listen } has been replaced by service { inet_listener { address } }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:50: login_executable has been replaced by service { executable }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:51: mail_executable has been replaced by service { executable }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:61: protocol managesieve {} has been replaced by protocol sieve { }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:78: add auth_ prefix to all settings inside auth {} and remove the auth {} section completely
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:81: passdb sql {} has been replaced by passdb { driver=sql }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:86: userdb prefetch {} has been replaced by userdb { driver=prefetch }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:89: userdb sql {} has been replaced by userdb { driver=sql }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:93: auth_user has been replaced by service auth { user }
doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf: ssl enabled, but ssl_cert not set
Was kann ich machen, um mein dovecot in das System zu integrieren? Ich bin ziemlich ratlos...
Dankeschön