I am trying to do a simple setup for a local mail server.
Fetchmail should get the mails from my POP3 account, sieve (Dovecot-plugin) should sort them into different folders and Dovecot should present the whole thing via IMAP to my local client machines.
The first part (getting the mails) works without a problem (with procmail being configured to use Maildir format), all the mails are downloaded to the inbox. The last part works also, I can connect to the server with Claws-Mail and see the mails.
What is not working is actually the main reason I am setting up the mail server: sorting the mails to different folders with Dovecot's sieve plugin. I am trying this now for several hours, but it simply doesn't work.
Can anyone give me a hint what I am doing wrong?
My configuration:
/etc/fetchmailrc:
Code:
set daemon 60
set syslog
set postmaster "tobi"
poll pop.mail.yahoo.de with proto POP3 and options uidl user "tobisgd" there with password "XXXXX" is tobi here keep
mda "/usr/bin/procmail -d %T"
(Password XXXXed out)
/etc/procmailrc:
Code:
SHELL="/bin/bash"
SENDMAIL="/usr/sbin/sendmail -oi -t"
LOGFILE="/var/log/procmail.log"
DEFAULT="$HOME/Mail/"
MAILDIR="$HOME/Mail/"
/etc/dovecot/dovecot.conf:
Code:
protocols = imaps lda
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_location = maildir:~/Mail
mail_privileged_group = mail
protocol imap {
}
protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
}
protocol managesieve {
}
protocol lda {
mail_plugins = sieve
mail_plugin_dir = /usr/lib/dovecot/modules/lda
}
auth default {
mechanisms = plain
passdb pam {
}
userdb passwd {
}
user = root
}
dict {
}
plugin {
sieve=~/.dovecot.sieve
sieve_dir=~/sieve
}
(Comments stripped out)
~/.forward:
Code:
| /usr/lib/dovecot/deliver
I simply can't figure out why it is not working.