Re: qmail and Cyrus-IMAP Forum: SecurePoint - Qmail Archive Date: 2003, Aug 06 From: Rick Updegrove Dave Sill wrote: >>Rick Updegrove wrote: >> I want to continue to deliver one >>copy to the $HOME/Maildir/ and one to the Cyrus-IMAP so that I may run >>them side by side (on seperate ports) and evaluate them both. >That will work. You could also modify the .procmailrc. Thanks for the advice Dave. I modified the user's .qmail file. | /usr/local/bin/procmail -m -t .procmailrc | /usr/local/bin/qmail2cyrus $LOCAL Here is the /usr/local/bin/qmail2cyrus file. Feel free to comment. #!/bin/sh # /usr/local/bin/qmail2cyrus # get the userid (before the first dash) userid="`echo "${LOCAL%%-*}" | tr "A-Z" "a-z"`" # change dashes to dots mailbox="`echo "$EXT2" | tr "A-Z" "a-z" | sed "s/-/./g"`" if [ "$mailbox" = "" ] then # deliver to INBOX /usr/local/cyrus/bin/deliver "$userid" else # deliver to a folder /usr/local/cyrus/bin/deliver -m "$mailbox" -a "$userid" "$userid" fi # what qmail is expecting case $? in 64|65|66|67|68|76|77|78) exit 100 ;; 0) exit 0 ;; *) exit 111 ;; esac