When I replaced dmail with dovcot I found hit the issue that all of the users had entries in their .procmailrc files that referred to /opt/imap/dmail and used this to place their email in different mailboxes.
the command options of the dmail and dovcot also differ, for example, dmail:
:0 rw
* ^To:support@stormagic.com
/opt/imap/dmail username+Support
And the same with dovcot:
:0 rw
* ^To:support@stormagic.com
/usr/lib/dovecot/deliver -m Support
To get round this issue, rather than rewrite everyone's .procmailrc file I created the following dmail script which I saved as /opt/imap/dmail
root@email:~# cat /opt/imap/dmail
#!/bin/bash
DELIVER="/usr/lib/dovecot/deliver"
$DELIVER $(echo "$@"
sed -e 's#[^+]*##' -e 's#+\(.*\)#-m \1#')
Very informative post. Keep up the good work. I would really look forward to your other posts
ReplyDeleteLenovo - IdeaPad Ultrabook 14" Laptop - 8GB Memory - 1TB Hard Drive - Graphite Gray
Lenovo - IdeaPad Ultrabook 14" Laptop - 6GB Memory - 750GB Hard Drive - Graphite Gray