1

Topic: internal server error and mails fail to send or receive after update

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.7.4
- Deployed with the downloadable installer
- Linux/BSD distribution name and version: Debian GNU/Linux 12 (bookworm)
- Store mail accounts in PGSQL
- Web server: Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I had renewed my certs did an update with apt which warned me about a configuration file being supplanted (don't remember which) and I just clicked to preserve the existing version. After reboot Roundqube, Admin panel and Sogo were gone and no mails could be sent or received, but Thunderbird still connected to the server without a warning. Postgresql service is running.

Typical log readings:

dovecot.log
2026-05-27T18:56:47.711403+02:00 mail dovecot: master: Error: service(auth): command startup failed, throttling for 60.000 secs
2026-05-27T18:56:47.711519+02:00 mail dovecot: auth: Fatal: master: service(auth): child 437726 killed with signal 11 (core dumps disabled - https://dovecot.org/bugreport.html#coredumps)
2026-05-27T19:08:13.264417+02:00 mail dovecot: auth: Error: pgsql(127.0.0.1): Connect failed to database vmail: Connection refused
2026-05-27T19:08:13.264642+02:00 mail dovecot: auth: Error: #011Is the server running on that host and accepting TCP/IP connections? (state: connecting)
(state: connecting)
2026-05-02T23:58:05.840354+02:00 mail dovecot: master: Error: service(auth): command startup failed, throttling for 60.000 secs
2026-05-02T23:58:05.840428+02:00 mail dovecot: auth: Fatal: master: service(auth): child 814369 killed with signal 11 (core dumps disabled - https://dovecot.org/bugreport.html#coredumps)

mail.log
2026-05-24T04:14:43.171167+02:00 mail postfix/pickup[4100496]: warning: maildrop/4gHZvY1z4Pz3PV9: error writing 4gNMz71Bngz3V2t: queue file write error
2026-05-24T04:14:44.172584+02:00 mail postfix/pickup[4100496]: warning: 4gNMz81CYYz3V2t: message has been queued for 22 days
2026-05-24T04:14:44.172841+02:00 mail postfix/pickup[4100496]: 4gNMz81CYYz3V2t: uid=0 from=<root>
2026-05-24T04:14:44.173177+02:00 mail postfix/cleanup[4101952]: warning: proxy:pgsql:/etc/postfix/pgsql/sender_bcc_maps_user.cf lookup error for "root@mail.east-central.eu"
2026-05-24T04:14:44.173267+02:00 mail postfix/cleanup[4101952]: warning: 4gNMz81CYYz3V2t: sender_bcc_maps map lookup problem -- message not accepted, try again later
2026-05-24T04:14:44.173331+02:00 mail postfix/pickup[4100496]: warning: maildrop/4g6mL96QqJz3F6s: error writing 4gNMz81CYYz3V2t: queue file write error

php-fpm.log
2026-05-01T10:34:34.036649+02:00 mail php-fpm[642]: [NOTICE] [pool inet] child 567234 exited with code 0 after 1800.004866 seconds from start
2026-05-01T10:34:34.036984+02:00 mail php-fpm[642]: [NOTICE] [pool inet] child 570529 started
127.0.0.1 -  01/May/2026:10:34:36 +0200 "GET /status" 200
2026-05-01T10:34:37.027863+02:00 mail php-fpm[642]: [NOTICE] [pool inet] child 567244 exited with code 0 after 1800.001214 seconds from start
2026-05-01T10:34:37.028167+02:00 mail php-fpm[642]: [NOTICE] [pool inet] child 570540 started
127.0.0.1 -  01/May/2026:10:34:39 +0200 "GET /status" 200
2026-05-01T10:34:40.021674+02:00 mail php-fpm[642]: [NOTICE] [pool inet] child 567274 exited with code 0 after 1799.983776 seconds from start
2026-05-01T10:34:40.021907+02:00 mail php-fpm[642]: [NOTICE] [pool inet] child 570542 started
127.0.0.1 -  01/May/2026:10:34:42 +0200 "GET /status" 200
127.0.0.1 -  01/May/2026:10:34:45 +0200 "GET /status" 200
127.0.0.1 -  01/May/2026:10:34:48 +0200 "GET /status" 200

postgresql-15-main.log

2026-04-27 03:07:24.800 CEST [4149419] fail2ban@fail2ban STATEMENT:  INSERT INTO banned (
            ip, ports, protocol, jail,
            hostname, country, rdns,
            failures, loglines)
        VALUES (
            '36.189.207.209', '22', 'tcp', 'sshd',
            'mail', 'CN, China', ';; communications error to 46.38.225.230#53: timed out
    ;; communications error to 46.38.225.230#53: timed out
    ;; communications error to 46.38.225.230#53: timed out
    ;; communications error to 46.38.252.230#53: timed out
    ;; communications error to 2a03:4000:0:1::e1e6#53: timed out
    ;; no servers could be reached',
            '5', 'MjAyNi0wNC0yN1QwMzowNjo1Ny43NjYzMzArMDI6MDAgbWFpbCBzc2hkWzQxNDkzMTddOiBGYWls
    ZWQgcGFzc3dvcmQgZm9yIHJvb3QgZnJvbSAzNi4xODkuMjA3LjIwOSBwb3J0IDIwOTcgc3NoMiAy
    MDI2LTA0LTI3VDAzOjA3OjAxLjMyODIzNiswMjowMCBtYWlsIHNzaGRbNDE0OTMyMV06IHBhbV91...

...

2026-04-27 21:26:25.702 CEST [793] LOG:  checkpoint complete: wrote 17 buffers (0.1%); 0 WAL file(s) added, 0 removed, 0 recycled; write=1.608 s, sync=0.002 s, total=1.613 s; sync files=12, longest=0.001 s, average=0.001 s; distance=22 kB, estimate=546 kB
2026-04-27 21:31:24.794 CEST [793] LOG:  checkpoint starting: time
2026-04-27 21:31:25.803 CEST [793] LOG:  checkpoint complete: wrote 11 buffers (0.1%); 0 WAL file(s) added, 0 removed, 0 recycled; write=1.004 s, sync=0.002 s, total=1.010 s; sync files=11, longest=0.001 s, average=0.001 s; distance=10 kB, estimate=492 kB
2026-04-27 21:36:24.898 CEST [793] LOG:  checkpoint starting: time
2026-04-27 21:36:25.908 CEST [793] LOG:  checkpoint complete: wrote 11 buffers (0.1%); 0 WAL file(s) added, 0 removed, 0 recycled; write=1.006 s, sync=0.002 s, total=1.011 s; sync files=11, longest=0.001 s, average=0.001 s; distance=11 kB, estimate=444 kB
2026-04-27 21:41:25.006 CEST [793] LOG:  checkpoint starting: time
2026-04-27 21:41:26.034 CEST [793] LOG:  checkpoint complete: wrote 11 buffers (0.1%); 0 WAL file(s) added, 0 removed, 0 recycled; write=1.006 s, sync=0.013 s, total=1.029 s; sync files=11, longest=0.010 s, average=0.002 s; distance=9 kB, estimate=401 kB
2026-04-27 21:41:31.652 CEST [755] LOG:  received fast shutdown request
2026-04-27 21:41:31.653 CEST [755] LOG:  aborting any active transactions
2026-04-27 21:41:31.654 CEST [82459] iredapd@iredapd FATAL:  terminating connection due to administrator command
2026-04-27 21:41:31.654 CEST [82456] amavisd@amavisd FATAL:  terminating connection due to administrator command
2026-04-27 21:41:31.654 CEST [81813] iredapd@iredapd FATAL:  terminating connection due to administrator command
2026-04-27 21:41:31.654 CEST [4148607] amavisd@amavisd FATAL:  terminating connection due to administrator command
2026-04-27 21:41:31.656 CEST [81807] vmail@vmail FATAL:  terminating connection due to administrator command
2026-04-27 21:41:31.657 CEST [82446] iredapd@iredapd FATAL:  terminating connection due to administrator command
2026-04-27 21:41:31.658 CEST [81795] vmail@vmail FATAL:  terminating connection due to administrator command
2026-04-27 21:41:31.659 CEST [81809] amavisd@amavisd FATAL:  terminating connection due to administrator command
2026-04-27 21:41:31.661 CEST [82444] vmail@vmail FATAL:  terminating connection due to administrator command
2026-04-27 21:41:31.662 CEST [81796] amavisd@amavisd FATAL:  terminating connection due to administrator command
2026-04-27 21:41:31.662 CEST [82445] amavisd@amavisd FATAL:  terminating connection due to administrator command
2026-04-27 21:41:31.664 CEST [82458] iredapd@iredapd FATAL:  terminating connection due to administrator command
2026-04-27 21:41:31.665 CEST [82454] vmail@vmail FATAL:  terminating connection due to administrator command
2026-04-27 21:41:31.668 CEST [3731144] amavisd@amavisd FATAL:  terminating connection due to administrator command
2026-04-27 21:41:31.668 CEST [3646058] amavisd@amavisd FATAL:  terminating connection due to administrator command
2026-04-27 21:41:31.672 CEST [3589246] amavisd@amavisd FATAL:  terminating connection due to administrator command
2026-04-27 21:41:31.674 CEST [305388] sogo@sogo FATAL:  terminating connection due to administrator command
2026-04-27 21:41:31.675 CEST [305691] sogo@sogo FATAL:  terminating connection due to administrator command
2026-04-27 21:41:31.675 CEST [305364] sogo@sogo FATAL:  terminating connection due to administrator command
2026-04-27 21:41:31.681 CEST [755] LOG:  background worker "logical replication launcher" (PID 803) exited with exit code 1
2026-04-27 21:41:31.700 CEST [793] LOG:  shutting down
2026-04-27 21:41:31.700 CEST [793] LOG:  checkpoint starting: shutdown immediate
2026-04-27 21:41:31.704 CEST [793] LOG:  checkpoint complete: wrote 0 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.001 s, sync=0.001 s, total=0.004 s; sync files=0, longest=0.000 s, average=0.000 s; distance=0 kB, estimate=361 kB
2026-04-27 21:41:31.721 CEST [755] LOG:  database system is shut down
2026-04-27 21:42:57.622 CEST [122671] FATAL:  could not load private key file "/etc/letsencrypt/live/mail.east-central.eu/privkey.pem": Permission denied
2026-04-27 21:42:57.623 CEST [122671] LOG:  database system is shut down
pg_ctl: could not start server
Examine the log output.
2026-04-27 21:42:59.046 CEST [122912] FATAL:  could not load private key file "/etc/letsencrypt/live/mail.east-central.eu/privkey.pem": Permission denied
2026-04-27 21:42:59.046 CEST [122912] LOG:  database system is shut down
pg_ctl: could not start server
Examine the log output.
2026-04-27 21:46:38.747 CEST [754] FATAL:  could not load private key file "/etc/letsencrypt/live/mail.east-central.eu/privkey.pem": Permission denied
2026-04-27 21:46:38.751 CEST [754] LOG:  database system is shut down
pg_ctl: could not start server
Examine the log output.
2026-04-27 22:25:54.676 CEST [747] FATAL:  could not load private key file "/etc/letsencrypt/live/mail.east-central.eu/privkey.pem": Permission denied
2026-04-27 22:25:54.680 CEST [747] LOG:  database system is shut down
pg_ctl: could not start server
Examine the log output.

PLEASE HELP!

Post's attachments

Screenshot 2026-05-27 at 20-36-45 Internal Error.png
Screenshot 2026-05-27 at 20-36-45 Internal Error.png 22.43 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

----

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