Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
| Nächste Überarbeitung | Vorherige Überarbeitung | ||
|
fortgeschrittene:dovecot-imapd [2009/05/06 12:21] 127.0.0.1 Externe Bearbeitung |
fortgeschrittene:dovecot-imapd [2025/03/16 06:59] (aktuell) ingo_wichmann [Sieve] |
||
|---|---|---|---|
| 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 ===== | ||
| - | Debian ( ab 5.0 ): | + | * Debian ( ab 5.0 ): ''dovecot-imapd'' |
| - | dovecot-imapd | + | * openSuSE ( ab 11.4 ): ''dovecot20'' |
| + | * centOS ( ab 6 ): ''dovecot'' | ||
| - | ===== Minimalkonfiguration Dovecot-IMAP ===== | + | ===== Authentifizierung testen ===== |
| - | ''/etc/dovecot/dovecot.conf'' : ( Debian 5.0 ) | + | doveadm user nutzer15 |
| - | <file> | + | doveadm auth login nutzer15 |
| - | protocols = imap | + | doveadm auth test nutzer15 |
| - | log_timestamp = "%Y-%m-%d %H:%M:%S " | + | |
| - | mail_location = maildir:~/Maildir | + | |
| - | mail_privileged_group = mail | + | |
| - | protocol pop3 { | + | |
| - | pop3_uidl_format = %08Xu%08Xv | + | |
| - | } | + | |
| - | protocol managesieve { | + | |
| - | sieve=~/.dovecot.sieve | + | |
| - | sieve_storage=~/sieve | + | |
| - | } | + | |
| - | auth default { | + | |
| - | mechanisms = plain | + | |
| - | user = root | + | |
| - | } | + | |
| - | </file> | + | |
| ===== testen ===== | ===== testen ===== | ||
| - | ==== IMAP mit telnet ==== | + | Vor dem Testen dem Empfänger eine Mail schicken ... |
| - | telnet localhost 143 | + | |
| + | swaks -f iw@test -t nutzer15@localhost -s localhost | ||
| + | |||
| + | ==== IMAP mit curl ==== | ||
| + | curl -v --url imap://localhost:143 --user testuser | ||
| + | |||
| + | ==== IMAP mit netcat / telnet ==== | ||
| + | netcat -v localhost 143 | ||
| . capability | . capability | ||
| . login nutzer15 villa | . login nutzer15 villa | ||
| Zeile 45: | Zeile 41: | ||
| === Dokumentation === | === Dokumentation === | ||
| * http://acs-wiki.andrew.cmu.edu/twiki/bin/view/Cyrus/ImtestByHand | * http://acs-wiki.andrew.cmu.edu/twiki/bin/view/Cyrus/ImtestByHand | ||
| - | |||
| ==== 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 ===== | ||
| Zeile 59: | Zeile 65: | ||
| Debian Paket: libnet-imap-perl | Debian Paket: libnet-imap-perl | ||
| - | Debian enthält im Paket ''cyrus-doc-2.2'' ein Beispiel-Programm zum Anlegen von Benutzern: syncldap2cyrus.pl | + | ===== Plaintext ===== |
| + | (Nur für vorübergehende Tests) | ||
| + | <file txt /etc/dovecot/conf.d/10-auth.conf> | ||
| + | disable_plaintext_auth = no | ||
| + | </file> | ||
| + | |||
| + | Anschließend sind Zugriffe ohne TLS mit einem Client wie z.B. thunderbird möglich | ||