1

Topic: 500 error in SOGo log after log out ("expunge")

============ Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.6 MYSQL edition.
- Linux/BSD distribution name and version: Ubuntu 16.04.2 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hey,

I'm seeing 500 error in SOGo log after user logs out:

# cat /var/log/sogo/sogo.log | grep -C 2 500
Jun 21 08:27:16 sogod [15294]: IP "GET /SOGo/so/email@address.tld/logoff HTTP/1.1" 302 0/0 0.010 - - 0
Jun 21 08:27:16 sogod [15294]: IP "GET /SOGo/so/ HTTP/1.1" 200 8432/0 0.021 27285 69% 0
Jun 21 08:27:16 sogod [15292]: IP "POST /SOGo/so/email@address.tld/Mail/0/folderINBOX/expunge HTTP/1.1" 500 36/0 0.187 - - 0
[...]

Jun 21 12:28:40 sogod [15294]: IP "GET /SOGo/so/another@emailaddress.tld/logoff HTTP/1.1" 302 0/0 0.006 - - 0
Jun 21 12:28:40 sogod [15294]: IP "GET /SOGo/so/ HTTP/1.1" 200 8432/0 0.014 27285 69% 0
Jun 21 12:28:40 sogod [15292]: IP "POST /SOGo/so/another@emailaddress.tld/Mail/0/folderINBOX/expunge HTTP/1.1" 500 36/0 0.176 - - 0
[...]

Jun 22 01:05:35 sogod [1748]: IP "GET /SOGo/so/another@emailaddress.tld/logoff HTTP/1.1" 302 0/0 0.029 - - 72K
Jun 22 01:05:35 sogod [1748]: IP "GET /SOGo/so/ HTTP/1.1" 200 8438/0 0.058 27287 69% 20K
Jun 22 01:05:35 sogod [1747]: IP "POST /SOGo/so/another@emailaddress.tld/Mail/0/folderTrash/expunge HTTP/1.1" 500 36/0 0.186 - - 0

There doesn't seem to be an actual problem with the mailboxes as far as I'm concerned and the user can't see the error message. Do you know what causes this? Is it something to be concerned about, or can I just ignore the error?

Thank you.

----

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

2

Re: 500 error in SOGo log after log out ("expunge")

sirpumpkin wrote:

Jun 22 01:05:35 sogod [1747]: IP "POST /SOGo/so/another@emailaddress.tld/Mail/0/folderTrash/expunge HTTP/1.1" 500 36/0 0.186 - - 0

Any error in Dovecot log file? If no error, it's better post to SOGo mailing list to report this issue.

3

Re: 500 error in SOGo log after log out ("expunge")

Interestingly, there is currently no logging happening at all for dovecot and fail2ban:

-rw-------  1 vmail   vmail          0 Jun 18 06:25 dovecot-imap.log
-rw-r--r--  1 syslog  adm       287440 Jun 18 06:25 dovecot-imap.log.1.gz
-rw-------  1 vmail   vmail          0 Jun 18 06:25 dovecot-lda.log
-rw-r--r--  1 syslog  adm         2477 Jun 18 03:30 dovecot-lda.log.1.gz
-rw-------  1 vmail   vmail          0 Jun 18 06:25 dovecot.log
-rw-r--r--  1 syslog  adm          680 Jun 16 13:52 dovecot.log.1.gz
-rw-------  1 vmail   vmail          0 Jun 18 06:25 dovecot-pop3.log
-rw-r--r--  1 syslog  adm       352558 Jun 18 06:25 dovecot-pop3.log.1.gz
-rw-------  1 vmail   vmail          0 Jun 18 06:25 dovecot-sieve.log
-rw-r--r--  1 syslog  adm          244 Jun 11 14:42 dovecot-sieve.log.1.gz

I guess this is the correct solution? http://www.iredmail.org/forum/topic1272 … issue.html

4

Re: 500 error in SOGo log after log out ("expunge")

Yes, please fix it by following the link.