• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • 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.

assign and cdb files for qmail

F

Fireinme

Guest
I have a custom script that parses the /var/qmail/users/assign file to create a custom list of email account info. However it runs on the assumption that that assign is properly sorted. And at random intervals, it seems, that file will sort itself.

After reading through much of the qmail documentation, I'm left with a hunch that its plesk that is doing the sorting at some point, (seeing as I am ultimately making my mail system changes through plesk.) However i want to force the sort before i run my script so that it will run properly.

Or if anyone has any idea how to export info from the cdb file which is the live database version of the same file?

Any information is appreciated,
 
Mayby write your own sorting script, like that:

sorting-script.sh /var/qmail/users/assign | custom-script-to-create-a-list-of-email-accounts.sh
 
Trying to stay away

I'm trying to stay away from doing it myself because it would need to be sorted with at least 4 passes all thankfully done in descending order.

The layout of the entries are as follows:
=01-emailaddress:popuser:110:31:/var/qmail/mailnames/domain.com/emailmailbox:::

1st pass: Sort by domain numbers the "01"
2nd pass: Sort by the leading symbol "=" can also be a "+" and "+" should be last.
3rd pass: Sort by "emailmailbox"
4th pass: Sort by "emailaddress" (if aliases are present) but making sure "emailmailbox" is last regardless of sort order.

And since i have about 500 email address across quite a few domains i'd like to make sure i don't break my file as well as make sure what I've visually observed in the assign file is correct as far as what and how it needs to be sorted
 
Back
Top