dmail or tmail are used from inside shell scripts to deliver mail, replace them by Dovecot's MDA (called LDA and residing in /usr/lib/dovecot/deliver in Debian). You need to use the -d option and add the user name since the setuid delivery still has EUID=0. In our case this was necessary in /opt/bin/spamdeliver.sh. (maildrop doesn't work very good here since it needs a filter rules file belonging to the recepient of the mail instead of a simple command line option.)dmail or tmail are used in the .procmailrc, replace them by the Maildir folder itself. Don't forget the trailing slash to tell procmail that this mailbox is a Maildir style folder..muttrc: Replace set tunnel=“ssh -q imap.phys.ethz.ch /etc/rimapd” with set tunnel=“ssh -q imap.phys.ethz.ch /usr/sbin/dovecot –exec-mail imap”. Calling /usr/lib/dovecot/imap directly will ignore the dovecot configuration.DEFAULT and MAILDIR variables in .procmailrc to the right Maildir style INBOX and folders directories./var/mail/$USER to e.g. /var/imap/$USER/INBOX, but this only works if both are in mbox format and not with a Maildir style mailbox as snarf destination. So we deliver directly into the Maildir style INBOX using procmail./var/imap/$USER/new/ with du.