Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung | ||
lpi2:dovecot-imapd [2019/10/30 10:20] ingo_wichmann [Minimalkonfiguration Dovecot-IMAP] |
lpi2:dovecot-imapd [2024/08/09 16:04] (aktuell) |
||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== Installation dovecot-imapd ====== | ====== Installation dovecot-imapd ====== | ||
- | Vorraussetzung: ein SMTP-Server ( z.B. [[postfix-dovecot-imapd]] ) | + | Vorraussetzung: |
+ | |||
+ | * [[dovecot]] | ||
+ | * SMTP-Server übergibt Mails an Dovecot ( z.B. [[postfix-dovecot-imapd]] ) | ||
===== Benötigte Pakete ===== | ===== Benötigte Pakete ===== | ||
Zeile 7: | Zeile 10: | ||
* centOS ( ab 6 ): ''dovecot'' | * centOS ( ab 6 ): ''dovecot'' | ||
- | ===== Minimalkonfiguration Dovecot-IMAP ===== | + | ===== Authentifizierung testen ===== |
- | Default Konfiguration funktioniert out of the box. Ansehen mit: | + | doveadm user nutzer15 |
- | doveconf -N | + | doveadm auth login nutzer15 |
- | + | doveadm auth test nutzer15 | |
- | === Speicherformat für Mails === | + | |
- | Wir empfehlen die Mails im Maildir-Format zu speichern: ((alternative Möglichkeiten: https://wiki.dovecot.org/MailboxFormat)) | + | |
- | + | ||
- | <file txt /etc/dovecot/conf.d/10-mail.conf> | + | |
- | … | + | |
- | mail_location = maildir:~/Maildir | + | |
- | … | + | |
- | </file> | + | |
===== testen ===== | ===== testen ===== | ||
- | Vor dem Testen dem Empfänger eine Mail schicken ... ((Achtung Falle: Maildir muss existieren)) | + | Vor dem Testen dem Empfänger eine Mail schicken ... |
swaks -f iw@test -t nutzer15@localhost -s localhost | swaks -f iw@test -t nutzer15@localhost -s localhost | ||
+ | |||
+ | ==== IMAP mit curl ==== | ||
+ | curl -v --url imap://localhost:143 --user testuser | ||
==== IMAP mit netcat / telnet ==== | ==== IMAP mit netcat / telnet ==== | ||
Zeile 46: | Zeile 44: | ||
==== IMAP mit mutt ==== | ==== IMAP mit mutt ==== | ||
mutt -f imap://nutzer15@localhost | mutt -f imap://nutzer15@localhost | ||
+ | |||
+ | ==== Benutzername and IP Addresse des Clients anzeigen ==== | ||
+ | Mit doveadm: | ||
+ | doveadm who | ||
+ | |||
+ | In der Prozessliste anzeige, so das man das mit ps sieht: | ||
+ | <file txt /etc/dovecot/dovecot.conf> | ||
+ | … | ||
+ | verbose_proctitle = yes | ||
+ | … | ||
+ | </file>((https://doc.dovecot.org/settings/dovecot_core_settings/#verbose_proctitle)) | ||
===== Tools ===== | ===== Tools ===== |