Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
lpi2:dovecot-imapd [2019/10/30 11:04] ingo_wichmann |
lpi2:dovecot-imapd [2022/01/09 12:31] |
||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== Installation dovecot-imapd ====== | ||
- | Vorraussetzung: | ||
- | * SMTP-Server übergibt Mails an Dovecot ( z.B. [[postfix-dovecot-imapd]] ) | ||
- | |||
- | ===== Benötigte Pakete ===== | ||
- | * Debian ( ab 5.0 ): ''dovecot-imapd'' | ||
- | * openSuSE ( ab 11.4 ): ''dovecot20'' | ||
- | * centOS ( ab 6 ): ''dovecot'' | ||
- | |||
- | ===== Minimalkonfiguration Dovecot-IMAP ===== | ||
- | Default Konfiguration funktioniert out of the box. Ansehen mit: | ||
- | doveconf -N | ||
- | |||
- | ===== Mehr Logmeldungen ===== | ||
- | Nur wärend der Testphase | ||
- | |||
- | <file txt /etc/dovecot/conf.d/10-logging.conf> | ||
- | … | ||
- | auth_verbose = yes | ||
- | … | ||
- | auth_debug = yes | ||
- | … | ||
- | mail_debug = yes | ||
- | … | ||
- | </file> | ||
- | |||
- | ===== Benutzername and IP Addresse des Clients in ps anzeigen ===== | ||
- | <file txt /etc/dovecot/dovecot.conf> | ||
- | … | ||
- | verbose_proctitle = yes | ||
- | … | ||
- | </file>((https://doc.dovecot.org/settings/dovecot_core_settings/#verbose_proctitle)) | ||
- | |||
- | ===== Authentifizierung testen ===== | ||
- | doveadm auth login nutzer15 | ||
- | doveadm auth test nutzer15 | ||
- | |||
- | ===== testen ===== | ||
- | Vor dem Testen dem Empfänger eine Mail schicken ... | ||
- | |||
- | swaks -f iw@test -t nutzer15@localhost -s localhost | ||
- | |||
- | ==== IMAP mit netcat / telnet ==== | ||
- | netcat -v localhost 143 | ||
- | . capability | ||
- | . login nutzer15 villa | ||
- | . list "" "*" | ||
- | . logout | ||
- | |||
- | === Dokumentation === | ||
- | * [[ http://www.bobpeers.com/technical/telnet_imap | IMAP per telnet ]] | ||
- | |||
- | ==== IMAP mit imtest ==== | ||
- | imtest -a nutzer15 -w villa localhost | ||
- | . capability | ||
- | . list "" "*" | ||
- | . SELECT INBOX | ||
- | . logout | ||
- | === Dokumentation === | ||
- | * http://acs-wiki.andrew.cmu.edu/twiki/bin/view/Cyrus/ImtestByHand | ||
- | |||
- | ==== IMAP mit mutt ==== | ||
- | mutt -f imap://nutzer15@localhost | ||
- | |||
- | ===== Tools ===== | ||
- | * [[ http://freshmeat.net/projects/imapsync/ | Tool zum Migrieren/Syncronisieren von Benutzerkonten ]] | ||
- | * [[ http://www.mulberrymail.com/ | IMAP Mail Client, auch zur Administration geeignet ]] | ||
- | |||
- | ==== Perl-Modul für imap ==== | ||
- | http://search.cpan.org: Net::IMAP | ||
- | |||
- | Debian Paket: libnet-imap-perl | ||
- | |||
- | ===== 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 | ||
- | |||
- | ===== Sieve ===== | ||
- | Pakete: dovecot-sieve dovecot-managesieved | ||
- | |||
- | require "fileinto"; | ||
- | |||
- | # | ||
- | # 2019-2-13 | ||
- | # | ||
- | if header :contains "subject" "Termin" { | ||
- | fileinto "Inbox.Termin"; | ||
- | stop; | ||
- | } | ||