Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
| Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung | ||
|
lpi2:dovecot-imapd [2014/02/27 00:45] ingo_wichmann [Perl-Modul für imap] |
lpi2:dovecot-imapd [2025/03/16 06:59] (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 ===== | ||
| - | Debian ( ab 5.0 ): | + | * Debian ( ab 5.0 ): ''dovecot-imapd'' |
| - | dovecot-imapd | + | * openSuSE ( ab 11.4 ): ''dovecot20'' |
| + | * centOS ( ab 6 ): ''dovecot'' | ||
| - | openSuSE ( ab 11.4 ): | + | ===== Authentifizierung testen ===== |
| - | dovecot20 | + | doveadm user nutzer15 |
| - | + | doveadm auth login nutzer15 | |
| - | centOS ( ab 6 ): | + | doveadm auth test nutzer15 |
| - | dovecot | + | |
| - | + | ||
| - | ===== Minimalkonfiguration Dovecot-IMAP ===== | + | |
| - | === Debian 5.0 === | + | |
| - | ''/etc/dovecot/dovecot.conf'' : | + | |
| - | <file> | + | |
| - | protocols = imap | + | |
| - | 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> | + | |
| - | === Debian 6.0 === | ||
| - | ''/etc/dovecot/dovecot.conf'' : | ||
| - | <file> | ||
| - | protocols = imap imaps pop3 pop3s | ||
| - | log_timestamp = "%Y-%m-%d %H:%M:%S " | ||
| - | mail_privileged_group = mail | ||
| - | protocol imap { | ||
| - | } | ||
| - | protocol pop3 { | ||
| - | pop3_uidl_format = %08Xu%08Xv | ||
| - | } | ||
| - | protocol managesieve { | ||
| - | } | ||
| - | auth default { | ||
| - | mechanisms = plain | ||
| - | passdb pam { | ||
| - | } | ||
| - | userdb passwd { | ||
| - | } | ||
| - | user = root | ||
| - | } | ||
| - | dict { | ||
| - | } | ||
| - | plugin { | ||
| - | } | ||
| - | </file> | ||
| - | |||
| - | === openSuSE (ab 11.4) === | ||
| - | openSuSE teilt seine Konfiguration auf Dateien im Verzeichnis ''/etc/dovecot/conf.d/'' auf. Die Vorgabewerte funktionieren: | ||
| - | doveconf -n | ||
| - | <file> | ||
| - | # 2.0.13: /etc/dovecot/dovecot.conf | ||
| - | # OS: Linux 2.6.37.6-0.7-default i686 openSUSE 11.4 (i586) | ||
| - | managesieve_notify_capability = mailto | ||
| - | managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date | ||
| - | passdb { | ||
| - | driver = pam | ||
| - | } | ||
| - | plugin { | ||
| - | sieve = ~/.dovecot.sieve | ||
| - | sieve_dir = ~/sieve | ||
| - | } | ||
| - | ssl = no | ||
| - | userdb { | ||
| - | driver = passwd | ||
| - | } | ||
| - | </file> | ||
| - | |||
| - | (( in openSuSE 11.4 gibt es im Zusammenhang mit AppArmor einen [[https://bugzilla.novell.com/attachment.cgi?id=442387&action=edit|Bug]] )) | ||
| ===== testen ===== | ===== testen ===== | ||
| - | Vor dem Testen dem Empfänger eine Mail schicken ... | + | 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 108: | 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 ===== | ||
| Zeile 117: | Zeile 64: | ||
| Debian Paket: libnet-imap-perl | 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 | ||
| + | |||