1

Topic: Server Error: UID THREAD: Internal error occured

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.3
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version: Ubuntu 22.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Mysql
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro? non pro
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Dear Guys,

I need your help fixing the "Server Error: UID THREAD: Internal error occured". This happen after copying the user's mailbox from bluehost.

The created email is working and i can send and received emails. but the moment i copied the mailbox (cur) folder into the iredmail user's Maildir (cur) folder it's giving me error "Server Error: UID THREAD: Internal error occured" and if i deleted the copied files it will work again.

Steps I have done:
-users mailbox under /var/vmail/vmail1/domain/usemailbox is owned by vmail:vmail and every folder inside Maildir with the correct permission and even do full permission on all the folder and sub-folder but the same error.
-restarted all the services (dovecot,postfix,mariadb,nginx,iredapd)

Thanks.
JunG

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Server Error: UID THREAD: Internal error occured

Try to re-index the mailbox after copied:
https://doc.dovecot.org/main/core/man/d … dex.1.html

3

Re: Server Error: UID THREAD: Internal error occured

ZhangHuangbin wrote:

Try to re-index the mailbox after copied:
https://doc.dovecot.org/main/core/man/d … dex.1.html


Hi Zhang,

Thanks for the swift reply.

I am able to execute the doveadm -u emailaddress INBOX after adding the below entry in /etc/dovecot/dovecot.conf
maildir_broken_filename_sizes=yes

but the message has (no subject) as subject and no email content inside.

note: reason for adding the maildir_broken_filename_sizes=yes in /etc/dovecot/dovecot.conf is because  i am getting "Failed: cached message size larger than expected (53142 > 14003, box=INBOX, UID=742) (read reason=)

- I also deleted the dovecot.index

thanks,
JunG