Fix/re-index draft folder

At the webmail, in Draft folder I have two empty messages what I cannot remove and what stays there even I reboot server.
Is there way to “fix” that folder and/or re-index, so those two empty messages will disappear?

Hello,

Let me know the version of Axigen that you are using.

Also run the below CLI commands and post the output:

<#> update domain YOUR_DOMAIN
<domain#> findinvalidmsg AFFECTED_ACCOUNT details

Regards,
Florin

Axigen Mail Server version 10.3.2.15.0

<#> update domain mydomain.com
+OK: command successful
<domain#> findinvalidmsg jussi.jaaskelainen details
Scanning account jussi.jaaskelainen@mydomain.com:

folder ‘Drafts’
00000090
00000091

scanned 98173 and found 2 bad messages (skipped 0) in 145 folders

Scanned 98173 and found 2 bad messages (skipped 0) in 145 folders of 1 accounts
+OK: command successful

According to the output the 2 messages from Draft folder are corrupted.

To remove them you may run again the findinvalidmsg command whit purge option:

<domain#> findinvalidmsg jussi.jaaskelainen purge

Regards,
Florin

1 Like

Thank you!
That fixed the problem. :wink:

1 Like

Again I have problem with Drafts and this time ‘findinvalidmsg’ command don’t fix the problem… Maybe because system don’t show any message subject lines.

And every time when I’m writing new message, the count of “Draft” folder is increasing…

How could I “recreate” that Draft folder?

If you still encounter the issue, just try to repair the email account on CLI level. Then rename the old accounts as old or bad. Rename the xxxx-repaired account as xxx to act as your main one.

You mean domain command ‘REPAIR Accounts’?
That didn’t ‘repair’ anything or didn’t find any lost messages.

I tried also ‘COMPACT All forced’, that didn’t help. Sometimes FINDINVALIDMSG -command find one message in the ‘Drafts’ folder, but… Count don’t change.

JJussi,

Please follow this steps.

https://www.axigen.com/knowledgebase/Repairing-an-account-using-the-CLI_88.html

It explains everything what I want to say.

After this steps please logon to the repaired account and check if it fixed your issue.

Thank you!
It repaired the problem… Side effect was that 2FA of original account didn’t work and “admin” must remove it before user could get in.

This problem (that there are empty messages at draft -folder) hit user again…

Is there a way to “export” all user’s “Message Filters” (and then import to new user), because if I do that “Repairing-an-account-using-the-CLI_88”, that “new” user don’t have those filters… And it sh*t job to build by hand, those again.

Hello,

Sure, you should be able to restore account’s wmFilter.sieve file from one account to another one (via FTP or FUSE).

But your report is intriguing me as the repair CLI command should preserve those filters so I’ll ask internally if this could be fixed.

Best regards,
Ioan

At the server, only *.sieve file is /var/opt/axigen/filters/wasieve-server.sieve
Knowing one of the users filter names, I tried to grep file what would have it, but only “binary files” found.

Hello,

No, no and again no.

FTP or Fuse backup / restore have nothing to do with Axigen working directory where, as you said, you may find server related filters.

My advice is to check for related KBs and in case you are unable to find them please start a new topic so we could advice you step-by-step how to backup your internal Axigen data so you could later restore them, if needed.

As promissed I’ve double checked internally and those filters are indeed not preserved by repair command so an improvement request was created.

Thx,
Ioan

Hi!
Now I understand.
Yes, I enabled ftp on axigen, and found under user accounts file vmFilter.sieve where there was all user Filters…

Now I can run repair command and get those filters back, just moving that file back with ftp… :wink:

PS. There are few things what would be nice that repair would transfer too…

  • 2FA
  • Signature(s)

Thank you!