• Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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