Dovecot: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Rkr (Diskussion | Beiträge) K (→Sieve-Filter) |
Rkr (Diskussion | Beiträge) |
||
Zeile 36: | Zeile 36: | ||
== Sieve-Filter mit LDA-Plugin == | == Sieve-Filter mit LDA-Plugin == | ||
Siehe [http://wiki.dovecot.org/LDA/Sieve]. Filter-Code in Datei <tt>$HOME/.dovecot.sieve</tt>. | Siehe [http://wiki.dovecot.org/LDA/Sieve]. Filter-Code in Datei <tt>$HOME/.dovecot.sieve</tt>. Beispiel: | ||
<pre><nowiki> | |||
require "fileinto"; | |||
if address :is "to" "aaa@bbb.de" { | |||
fileinto "Test"; | |||
} elsif address :is "to" "ccc@ddd.de" { | |||
fileinto "Test2"; | |||
} elsif exists "X-Spam-Flag" { | |||
fileinto "SPAM"; | |||
} else { | |||
# The rest goes into INBOX | |||
# default is "implicit keep", we do it explicitly here | |||
keep; | |||
} | |||
</nowiki></pre> | |||
== Tipps & Tricks == | == Tipps & Tricks == |
Version vom 11. Juni 2007, 15:19 Uhr
Dovecot ist ein IMAP/POP3 Email-Server.
Installation und Konfiguration
Spezielle Konfiguration
- configure ohne Parameter
- PAM in /etc/pam.d/dovecot (statt pam_unix.so):
auth required pam_unix2.so account required pam_unix2.so
- dovecot.conf ("dovecot -n"):
disable_plaintext_auth: no login_dir: /usr/local/var/run/dovecot/login login_executable: /usr/local/libexec/dovecot/imap-login last_valid_uid: 3000 last_valid_gid: 10000 mail_location: maildir:~/Maildir namespace: type: private separator: / location: maildir:~/Maildir inbox: yes auth default: passdb: driver: pam userdb: driver: passwd
- SSL-Test-Zertifikat & Key erstellen für TLS (port 143), Dateien /etc/ssl/private/dovecot.pem und /etc/ssl/certs/dovecot.pem
sh /opt/pkg/dovecot/dovecot-1.0.0/doc/mkcert.sh
LDA Integration in Postfix
Siehe [3]. main.cf:
mailbox_command = /usr/local/libexec/dovecot/deliver
Sieve-Filter mit LDA-Plugin
Siehe [4]. Filter-Code in Datei $HOME/.dovecot.sieve. Beispiel:
require "fileinto"; if address :is "to" "aaa@bbb.de" { fileinto "Test"; } elsif address :is "to" "ccc@ddd.de" { fileinto "Test2"; } elsif exists "X-Spam-Flag" { fileinto "SPAM"; } else { # The rest goes into INBOX # default is "implicit keep", we do it explicitly here keep; }
Tipps & Tricks
- Konfiguration ausgeben für nicht-default Werte:
dovecot -n