• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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 [email protected] -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 '[email protected]')
6: cuMail.php:654
cuMail->cmdCreate(string '[email protected]')
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