Hi, I have fixed this fault - the following line in my /etc/dovecot/dovecot.conf file was setting the setgid to 5000, and the user id to 5000 also
auth default { ... userdb static { args = uid=5000 gid=5000 home=/home/vmail/%d/%n allow_all_users=yes } ... } I changed these two values to 8 ( the id of mail on my system) and emails are now being delivered to the proper folders thanks Christy