• The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

cannot create new mails on domain

V

voodookid

Guest
Hello,

I'm trying to import a large number of mail accounts from CommuniGate server to Plesk 9.2.1 on Debian.
After importing 48123 number of accounts the import stops.
Running the add email command from shell gives me the following error :

hv2m69:~# /opt/psa/bin/mail -c test_mail_3@mydomain.com -cp-access false -mailbox true -passwd alabala
Fatal error: boost::filesystem::basic_filesystem_error<boost::filesystem::basic_path<std::string, boost::filesystem::path_traits> >(boost::filesystem::create_directory)
ERROR: PleskUtilException
mailmng failed: Fatal error: boost::filesystem::basic_filesystem_error<boost::filesystem::basic_path<std::string, boost::filesystem::path_traits> >(boost::filesystem::create_directory)

0: class.MailManager.php:242
MailManager::execWithException(string 'smart_exec', string 'mailmng', array, array, string 'lst')
1: class.MailManager.php:274
MailManager->callMailManager(string 'add-mailname', array)
2: class.MailManager.php:346
MailManager->addMailname(string 'mydomain.com', string 'test_mail_3')
3: MailName.php:976
Mailname->update()
4: cuMail.php:1559
cuMail->applyOptions(array, object of type Mailname)
5: cuMail.php:746
cuMail->_create(string 'test_mail_3@mydomain.com')
6: cuMail.php:654
cuMail->cmdCreate(string 'test_mail_3@mydomain.com')
7: cuMail.php:468
cuMail->execute()
8: mail.php:27

Appears to be some kind of file system restriction.
Did anyone received this error or knows how to disable the restriction ?

Thanks in advanced.
 
Last edited by a moderator:
Hello again,

Found out what the problem was. I have reached the maxim number of sub-folders that can be created in linux : 32000.
This restriction is set in kernel.

Another weird fact is that I have 32,000 sub-folders in /var/qmail/mailnames/domain.com/ and inside psa db I have 48,123 records related to mail accounts.

I have two options here :
- change the kernel limit related to sub-folders - I don't think this is suck a good idea.
- change the qmail folder structure and make master sub-folders names containing just one letter, and inside each of this sub-folders store each account that starts with the specified letter.

What do you think about this second approach, can this be achieved ? Has anyone tried this before ?

Thanks in advance.
 
Back
Top