In goldfish<version>.php, this line:
$conf['q_mailbox_path'] = "SELECT CONCAT('/home/vmail/',
SUBSTRING_INDEX(email,'@',-1), '/', SUBSTRING_INDEX(email,'@',1), '/')
as `path` FROM view_users WHERE `email` = '%m'";
seems to me to assume the mailbox is in /home/vmail/<domain>/
<mailbox>/ when in fact it is in /home/vmail/<domain>/<mailbox>/
Maildir/.
See "mail_location = maildir:/home/vmail/%d/%n/Maildir" in
http://workaround.org/articles/ispmail-etch/#step-6-configure-dovecot
Should the line above not read like this?:
$conf['q_mailbox_path'] = "SELECT CONCAT('/home/vmail/',
SUBSTRING_INDEX(email,'@',-1), '/', SUBSTRING_INDEX(email,'@',1), '/
Maildir/') as `path` FROM view_users WHERE `email` = '%m'";