Plesk - 'mailmng failed' When Creating Domains

When creating new accounts in Plesk if you see the following error then you will need to check your plesk error logs to see whats the issue is becaue it might be that more dpendencies for qmail need to be installed to for domain creation to work correctly:

Failed domain creation: Unable to update domain data: Failed mail post-configuration: Can't create mail domain servie: mailManager->addDomain() failed: mailmng failed: mailmng: Unable to remove domain from rcpthosts file System error 2: No such file or directory mailmng: Unable to remove domain from virtualdomains file System error 2: No such file or directory

To help correct the dependencies that qmail might be having you can try forcing the install of the following 3 rpms:

psa-courier-imap-add-8.0.0 centos4.2.build80060331.13.i586.rpm
psa-qmail-1.03-centos4.2.build80060331.13.i586.rpm
psa-qmail-rblsmtpd-0.70-centos4.2.build80060331.13.i586.rpm