Dovecot funktioniert nicht und hört offenbar nicht auf die Ports 110, 143, 993 oder 995

583
C.A. Vuyk

Mein neuer Mailserver mit Postfix (3.3.0) und Dovecot (v2.2.33.2) funktioniert noch nicht, da ich das letzte Mal vor ein paar Jahren installiert habe und nun die Konfiguration stark geändert wurde, habe ich z. B. in Dovecot die Protokolle bemerkt werden anders verwaltet. Es läuft auf Ubuntu 18.04.1 x64.

Jetzt sendet der Server nur Mails und empfängt keine. Es muss ein Konfigurationsproblem geben, aber ich kann es nicht finden.

Ich habe die Protokollierung ohne fremde Meldungen (soweit ich sehen konnte) ausprobiert. Andernfalls gibt der Service-Dovecot-Status diese Warnung aus: starting up without any protocols Könnte dies das Problem sein?

netstat -ltnp

Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:10023 0.0.0.0:* LISTEN 1038/postgrey --pid tcp 0 0 127.0.0.1:10024 0.0.0.0:* LISTEN 1217/amavisd-new (m tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN 2551/master tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 963/mysqld tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 937/nginx: master p tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN 2551/master tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 644/systemd-resolve tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 880/sshd tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 2551/master tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 937/nginx: master p tcp6 0 0 2a03:b0c0:0:1010::10023 :::* LISTEN 1038/postgrey --pid tcp6 0 0 ::1:10023 :::* LISTEN 1038/postgrey --pid tcp6 0 0 ::1:10024 :::* LISTEN 1217/amavisd-new (m tcp6 0 0 :::80 :::* LISTEN 937/nginx: master p tcp6 0 0 :::465 :::* LISTEN 2551/master tcp6 0 0 :::22 :::* LISTEN 880/sshd tcp6 0 0 :::25 :::* LISTEN 2551/master tcp6 0 0 :::443 :::* LISTEN 937/nginx: master p 

ufw status

To Action From -- ------ ---- Nginx Full ALLOW Anywhere OpenSSH ALLOW Anywhere 443/tcp ALLOW Anywhere 587/tcp ALLOW Anywhere 25/tcp ALLOW Anywhere 465/tcp ALLOW Anywhere 993/tcp ALLOW Anywhere 995/tcp ALLOW Anywhere 123/tcp ALLOW Anywhere 2812/tcp ALLOW Anywhere 110/tcp ALLOW Anywhere 143/tcp ALLOW Anywhere Nginx Full (v6) ALLOW Anywhere (v6) OpenSSH (v6) ALLOW Anywhere (v6) 443/tcp (v6) ALLOW Anywhere (v6) 587/tcp (v6) ALLOW Anywhere (v6) 25/tcp (v6) ALLOW Anywhere (v6) 465/tcp (v6) ALLOW Anywhere (v6) 993/tcp (v6) ALLOW Anywhere (v6) 995/tcp (v6) ALLOW Anywhere (v6) 123/tcp (v6) ALLOW Anywhere (v6) 2812/tcp (v6) ALLOW Anywhere (v6) 110/tcp (v6) ALLOW Anywhere (v6) 143/tcp (v6) ALLOW Anywhere (v6) 

Service-Taubenschlag-Status

 dovecot.service - Dovecot IMAP/POP3 email server Loaded: loaded (/lib/systemd/system/dovecot.service; enabled; vendor preset: enabled) Active: active (running) since Fri 2018-08-10 16:28:55 CEST; 7s ago Docs: man:dovecot(1) http://wiki2.dovecot.org/ Main PID: 3122 (dovecot) Tasks: 4 (limit: 1152) CGroup: /system.slice/dovecot.service ├─3122 /usr/sbin/dovecot -F ├─3132 dovecot/anvil ├─3133 dovecot/log └─3136 dovecot/config  Aug 10 16:28:55 domain.tld systemd[1]: Started Dovecot IMAP/POP3 email server. Aug 10 16:28:55 domain.tld dovecot[3122]: master: Dovecot v2.2.33.2 (d6601f4ec) starting up without any protocols (core dumps disabled) 
1

1 Antwort auf die Frage

1
JakeGould

Dieser Eintrag im Protokoll - wo es heißt "Starten ohne Protokolle" - ist der große Hinweis:

Aug 10 16:28:55 domain.tld dovecot[3122]: master: Dovecot v2.2.33.2 (d6601f4ec) starting up without any protocols (core dumps disabled) 

Es scheint, als ob Dovecot keine Protokolle kennt, die in Ihrer Installation eingestellt sind. Es wird also so gestartet, wie es ist.

Und laut diesem Kommentar zu einer Antwort auf ServerFault :

Auf Debian gibt es eine !include_try /usr/share/dovecot/protocols.d/*.protocolEinstellung. Diese Protokolle werden beispielsweise durch die Installation entsprechender Pakete automatisch aktiviert dovecot-pop3d.

Das sagt mir also, dass Sie das dovecot-pop3dPaket installieren müssen. Dies wird hier auf der offiziellen Ubuntu-Seite für Dovecot bestätigt, in der es heißt :

Die Installation ist extrem einfach. Installieren Sie einfach die folgenden Pakete:

  1. dovecot-imapd
  2. dovecot-pop3d

Verwenden Sie zum Beispiel apt-get:

sudo apt-get install dovecot-imapd dovecot-pop3d 

Ich empfehle Ihnen also, diese Pakete wie folgt zu installieren:

sudo apt-get install dovecot-imapd dovecot-pop3d 

Ziemlich sicher, nachdem Sie das getan haben, und überprüfen /usr/share/dovecot/protocols.d/Sie dann das Verzeichnis. Dort werden einige .protocolDateien angezeigt. Starten Sie Dovecot einfach neu, und Sie sollten gut sein.