iredmail / dockerized

Official dockerized iRedMail.
https://www.iredmail.org/
278 stars 71 forks source link

Dovecot fails to start #80

Closed JasperCiti closed 3 years ago

JasperCiti commented 3 years ago

OS: Ubuntu 20.04

root@***:/opt/iredmail# touch iredmail-docker.conf
echo HOSTNAME=mail.***.com >> iredmail-docker.conf
echo FIRST_MAIL_DOMAIN=***.com >> iredmail-docker.conf
echo FIRST_MAIL_DOMAIN_ADMIN_PASSWORD=*** >> iredmail-docker.conf
echo MLMMJADMIN_API_TOKEN=$(openssl rand -base64 32) >> iredmail-docker.conf
echo ROUNDCUBE_DES_KEY=$(openssl rand -base64 24) >> iredmail-docker.conf

mkdir -p data/{backup-mysql,clamav,custom,imapsieve_copy,mailboxes,mlmmj,mlmmj-archive,mysql,sa_rules,ssl,postfix_queue}

root@***:/opt/iredmail# docker run --rm --name iredmail --env-file /opt/iredmail/iredmail-docker.conf --hostname mail.***.com -p 80:80 -p 443:443 -p 110:110 -p 995:995 -p 143:143 -p 993:993 -p 25:25 -p 465:465 -p 587:587 -v /opt/iredmail/data/backup-mysql:/var/vmail/backup/mysql -v /opt/iredmail/data/mailboxes:/var/vmail/vmail1 -v /opt/iredmail/data/mlmmj:/var/vmail/mlmmj -v /opt/iredmail/data/mlmmj-archive:/var/vmail/mlmmj-archive -v /opt/iredmail/data/imapsieve_copy:/var/vmail/imapsieve_copy -v /opt/iredmail/data/custom:/opt/iredmail/custom -v /opt/iredmail/data/ssl:/opt/iredmail/ssl -v /opt/iredmail/data/mysql:/var/lib/mysql -v /opt/iredmail/data/clamav:/var/lib/clamav -v /opt/iredmail/data/sa_rules:/var/lib/spamassassin -v /opt/iredmail/data/postfix_queue:/var/spool/postfix iredmail/mariadb:stable
Unable to find image 'iredmail/mariadb:stable' locally
stable: Pulling from iredmail/mariadb
a70d879fa598: Pull complete
c4394a92d1f8: Pull complete
10e6159c56c0: Pull complete
14e5ebe58ac0: Pull complete
524ddf2114ff: Pull complete
8f7b1710eb0d: Pull complete
e96b3ce06505: Pull complete
92db7f3b3c76: Pull complete
3dd866496c20: Pull complete
dd0b6ea9de6a: Pull complete
6309c455544c: Pull complete
Digest: sha256:f3eb8cab13c0c8eb2630a946709185cffad94c4069e48099c2fa0b16eb6e04a8
Status: Downloaded newer image for iredmail/mariadb:stable
[iRedMail] Remove leftover pid files which may cause service fail to start.
[iRedMail] [Entrypoint] /docker/entrypoints/rsyslog.sh
[iRedMail] [Entrypoint] /docker/entrypoints/mariadb.sh
[iRedMail] Create directory used to store custom config files: /opt/iredmail/custom/mysql.
[iRedMail] Initializing database ...
[iRedMail] Starting temporary MariaDB instance.
2021-10-11 14:28:09 0 [Note] mysqld (mysqld 10.3.25-MariaDB-0ubuntu0.20.04.1-log) starting as process 275 ...
[iRedMail] Create MariaDB root user.
[iRedMail] [Run] /docker/mariadb/pre_start/0-vmail_db.sh
[iRedMail] Create database 'vmail' and tables.
[iRedMail] Grant privileges to SQL user 'vmail' and 'vmailadmin'.
[iRedMail] Create first mail domain: ***.com.
[iRedMail] Add user postmaster@***.com.
[iRedMail] Add (internal) mail forwarding for postmaster@***.com.
[iRedMail] Make sure postmaster@***.com is a global admin.
[iRedMail] [Run] /docker/mariadb/pre_start/amavisd_db.sh
[iRedMail] + Create database amavisd.
[iRedMail] + Create default spam policy.
[iRedMail] [Run] /docker/mariadb/pre_start/fail2ban_db.sh
[iRedMail] + Create database fail2ban.
[iRedMail] [Run] /docker/mariadb/pre_start/iredadmin_db.sh
[iRedMail] + Create database iredadmin.
[iRedMail] [Run] /docker/mariadb/pre_start/iredapd_db.sh
[iRedMail] + Create database iredapd.
[iRedMail] + Enable greylisting.
[iRedMail] [Run] /docker/mariadb/pre_start/roundcube.sh
[iRedMail] + Import /opt/www/roundcubemail/SQL/mysql.initial.sql
[iRedMail] [Run] /docker/mariadb/pre_start/sa_bayes.sh
[iRedMail] + Create database sa_bayes.
[iRedMail] + Import sa_bayes.mysql
[iRedMail] Stopping the temporary mysql instance.
[iRedMail] Stopped the temporary mysql instance.
[iRedMail] [Entrypoint] /docker/entrypoints/dovecot.sh
[iRedMail] Generating self-signed ssl cert under /opt/iredmail/ssl.
Generating a RSA private key
.........................................................................................................++++
.............................++++
writing new private key to '/opt/iredmail/ssl/key.pem'
-----
[iRedMail] Generating dh param file: /opt/iredmail/ssl/dhparam2048.pem. It make take a long time.
Generating DH parameters, 2048 bit long safe prime, generator 2
This is going to take a long time
...
[iRedMail] [Entrypoint] /docker/entrypoints/postfix.sh
Generating DH parameters, 512 bit long safe prime, generator 2
This is going to take a long time
...
[iRedMail] [Entrypoint] /docker/entrypoints/mlmmj.sh
[iRedMail] [Entrypoint] /docker/entrypoints/mlmmjadmin.sh
[iRedMail] [Entrypoint] /docker/entrypoints/iredapd.sh
[iRedMail] [Entrypoint] /docker/entrypoints/antispam.sh
Private RSA key successfully written to file "/opt/iredmail/custom/amavisd/dkim/***.com.pem" (1024 bits, PEM format)
[iRedMail] Run 'sa-update' (required by Amavisd).
Update available for channel updates.spamassassin.org: -1 -> 1894126
http: (curl) GET http://spamassassin.apache.org/updates/MIRRORED.BY, success
http: (curl) GET http://sa-update.ena.com/1894126.tar.gz, success
http: (curl) GET http://sa-update.ena.com/1894126.tar.gz.sha512, success
http: (curl) GET http://sa-update.ena.com/1894126.tar.gz.asc, success
Update was available, and was downloaded and installed successfully
[iRedMail] Run 'freshclam' (required by ClamAV).
Current working dir is /var/lib/clamav/
Can't open mirrors.dat in /var/lib/clamav
It probably doesn't exist yet. That's ok.
Failed to load mirrors.dat; will create a new mirrors.dat
Creating new mirrors.dat
Saved mirrors.dat
ClamAV update process started at Mon Oct 11 14:29:15 2021
Current working dir is /var/lib/clamav/
Querying current.cvd.clamav.net
TTL: 775
fc_dns_query_update_info: Software version from DNS: 0.103.3
DON'T PANIC! Read https://www.clamav.net/documents/upgrading-clamav
Current working dir is /var/lib/clamav/
check_for_new_database_version: No local copy of "daily" database.
query_remote_database_version: daily.cvd version from DNS: 26319
daily database available for download (remote version: 26319)
Retrieving https://database.clamav.net/daily.cvd
downloadFile: Download source:      https://database.clamav.net/daily.cvd
downloadFile: Download destination: /var/lib/clamav/tmp.b3ac770882/clamav-bcdb2eb658372999232cf22e13b27131.tmp
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.103.2 Recommended version: 0.103.3
*   Trying 104.16.218.84:443...
* TCP_NODELAY set
* Connected to database.clamav.net (104.16.218.84) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use h2
* Server certificate:
*  subject: C=US; ST=California; L=San Francisco; O=Cloudflare, Inc.; CN=sni.cloudflaressl.com
*  start date: Jul 15 00:00:00 2021 GMT
*  expire date: Jul 14 23:59:59 2022 GMT
*  subjectAltName: host "database.clamav.net" matched cert's "database.clamav.net"
*  issuer: C=US; O=Cloudflare, Inc.; CN=Cloudflare Inc ECC CA-3
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x55d78f7d8a90)
> GET /daily.cvd HTTP/2
Host: database.clamav.net
user-agent: ClamAV/0.103.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64, UUID: e79d1fc4-b596-4730-9d25-48ccd9b9d92b)
accept: */*
connection: close

* old SSL session ID is stale, removing
* Connection state changed (MAX_CONCURRENT_STREAMS == 256)!
< HTTP/2 200
< date: Mon, 11 Oct 2021 14:29:15 GMT
< content-type: application/octet-stream
< content-length: 56261254
< last-modified: Sun, 10 Oct 2021 08:18:00 GMT
< etag: "6162a1b8-35a7a86"
< expires: Tue, 12 Oct 2021 02:29:15 GMT
< cache-control: public, max-age=43200
< cf-cache-status: HIT
< age: 2176
< accept-ranges: bytes
< expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
< strict-transport-security: max-age=15552000
< x-content-type-options: nosniff
< server: cloudflare
< cf-ray: 69c8c791ec3d4eaf-FRA
<
* Connection #0 to host database.clamav.net left intact
The daily.cvd database downloaded from https://database.clamav.net is older than the version advertised in the DNS TXT record.
Received an older daily CVD than was advertised. We'll keep it and try updating to the latest version with CDIFFs.
updatedb: Running g_cb_download_complete callback...
download_complete_callback: Download complete for database : /var/lib/clamav/tmp.b3ac770882/clamav-bcdb2eb658372999232cf22e13b27131.tmp-daily.cvd
download_complete_callback:   fc_context->bTestDatabases   : 1
download_complete_callback:   fc_context->bBytecodeEnabled : 1
Testing database: '/var/lib/clamav/tmp.b3ac770882/clamav-bcdb2eb658372999232cf22e13b27131.tmp-daily.cvd' ...
Loading signatures from /var/lib/clamav/tmp.b3ac770882/clamav-bcdb2eb658372999232cf22e13b27131.tmp-daily.cvd
Properly loaded 1938389 signatures from /var/lib/clamav/tmp.b3ac770882/clamav-bcdb2eb658372999232cf22e13b27131.tmp-daily.cvd
Database test passed.
daily.cvd updated (version: 26318, sigs: 1938389, f-level: 90, builder: raynman)
Received an older daily CVD than was advertised. We'll retry so the incremental update will ensure we're up-to-date.
check_for_new_database_version: Local copy of daily found: daily.cvd.
query_remote_database_version: daily.cvd version from DNS: 26319
daily database available for update (local version: 26318, remote version: 26319)
Retrieving https://database.clamav.net/daily-26319.cdiff
downloadFile: Download source:      https://database.clamav.net/daily-26319.cdiff
downloadFile: Download destination: ./clamav-b675bc512dfb58fc14117b027182a1a9.tmp
*   Trying 104.16.218.84:443...
* TCP_NODELAY set
* Connected to database.clamav.net (104.16.218.84) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use h2
* Server certificate:
*  subject: C=US; ST=California; L=San Francisco; O=Cloudflare, Inc.; CN=sni.cloudflaressl.com
*  start date: Jul 15 00:00:00 2021 GMT
*  expire date: Jul 14 23:59:59 2022 GMT
*  subjectAltName: host "database.clamav.net" matched cert's "database.clamav.net"
*  issuer: C=US; O=Cloudflare, Inc.; CN=Cloudflare Inc ECC CA-3
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x55d78f82ab80)
> GET /daily-26319.cdiff HTTP/2
Host: database.clamav.net
user-agent: ClamAV/0.103.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64, UUID: e79d1fc4-b596-4730-9d25-48ccd9b9d92b)
accept: */*
connection: close

* old SSL session ID is stale, removing
* Connection state changed (MAX_CONCURRENT_STREAMS == 256)!
< HTTP/2 200
< date: Mon, 11 Oct 2021 14:29:32 GMT
< content-type: application/octet-stream
< content-length: 12001
< last-modified: Mon, 11 Oct 2021 08:18:00 GMT
< etag: "6163f338-2ee1"
< expires: Tue, 11 Oct 2022 14:25:48 GMT
< cache-control: public, max-age=31535776
< cf-cache-status: HIT
< age: 21683
< accept-ranges: bytes
< expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
< strict-transport-security: max-age=15552000
< x-content-type-options: nosniff
< server: cloudflare
< cf-ray: 69c8c7fb2cc04dd0-FRA
<
* Connection #0 to host database.clamav.net left intact
cdiff_apply: Parsed 181 lines and executed 181 commands
updatedb: Running g_cb_download_complete callback...
download_complete_callback: Download complete for database : /var/lib/clamav/tmp.b3ac770882/clamav-3300d86e0893a284c98b93a8e9998f29.tmp-daily.cld
download_complete_callback:   fc_context->bTestDatabases   : 1
download_complete_callback:   fc_context->bBytecodeEnabled : 1
Testing database: '/var/lib/clamav/tmp.b3ac770882/clamav-3300d86e0893a284c98b93a8e9998f29.tmp-daily.cld' ...
Loading signatures from /var/lib/clamav/tmp.b3ac770882/clamav-3300d86e0893a284c98b93a8e9998f29.tmp-daily.cld
Properly loaded 1938514 signatures from /var/lib/clamav/tmp.b3ac770882/clamav-3300d86e0893a284c98b93a8e9998f29.tmp-daily.cld
Database test passed.
daily.cld updated (version: 26319, sigs: 1938514, f-level: 90, builder: raynman)
fc_update_database: daily.cld updated.
Current working dir is /var/lib/clamav/
check_for_new_database_version: No local copy of "main" database.
query_remote_database_version: main.cvd version from DNS: 62
main database available for download (remote version: 62)
Retrieving https://database.clamav.net/main.cvd
downloadFile: Download source:      https://database.clamav.net/main.cvd
downloadFile: Download destination: /var/lib/clamav/tmp.b3ac770882/clamav-6797e7b9ffe9fef702ba3fab5de6e927.tmp
*   Trying 104.16.218.84:443...
* TCP_NODELAY set
* Connected to database.clamav.net (104.16.218.84) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use h2
* Server certificate:
*  subject: C=US; ST=California; L=San Francisco; O=Cloudflare, Inc.; CN=sni.cloudflaressl.com
*  start date: Jul 15 00:00:00 2021 GMT
*  expire date: Jul 14 23:59:59 2022 GMT
*  subjectAltName: host "database.clamav.net" matched cert's "database.clamav.net"
*  issuer: C=US; O=Cloudflare, Inc.; CN=Cloudflare Inc ECC CA-3
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x55d78f8758f0)
> GET /main.cvd HTTP/2
Host: database.clamav.net
user-agent: ClamAV/0.103.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64, UUID: e79d1fc4-b596-4730-9d25-48ccd9b9d92b)
accept: */*
connection: close

* old SSL session ID is stale, removing
* Connection state changed (MAX_CONCURRENT_STREAMS == 256)!
< HTTP/2 200
< date: Mon, 11 Oct 2021 14:29:41 GMT
< content-type: application/octet-stream
< content-length: 170479789
< last-modified: Thu, 16 Sep 2021 12:32:00 GMT
< etag: "61433940-a2950ad"
< cf-cache-status: HIT
< age: 22072
< expires: Tue, 12 Oct 2021 02:29:41 GMT
< cache-control: public, max-age=43200
< accept-ranges: bytes
< expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
< strict-transport-security: max-age=15552000
< x-content-type-options: nosniff
< server: cloudflare
< cf-ray: 69c8c835dd15dfc3-FRA
<
* Connection #0 to host database.clamav.net left intact
updatedb: Running g_cb_download_complete callback...
download_complete_callback: Download complete for database : /var/lib/clamav/tmp.b3ac770882/clamav-6797e7b9ffe9fef702ba3fab5de6e927.tmp-main.cvd
download_complete_callback:   fc_context->bTestDatabases   : 1
download_complete_callback:   fc_context->bBytecodeEnabled : 1
Testing database: '/var/lib/clamav/tmp.b3ac770882/clamav-6797e7b9ffe9fef702ba3fab5de6e927.tmp-main.cvd' ...
Loading signatures from /var/lib/clamav/tmp.b3ac770882/clamav-6797e7b9ffe9fef702ba3fab5de6e927.tmp-main.cvd
Properly loaded 6647427 signatures from /var/lib/clamav/tmp.b3ac770882/clamav-6797e7b9ffe9fef702ba3fab5de6e927.tmp-main.cvd
Database test passed.
main.cvd updated (version: 62, sigs: 6647427, f-level: 90, builder: sigmgr)
fc_update_database: main.cvd updated.
Current working dir is /var/lib/clamav/
check_for_new_database_version: No local copy of "bytecode" database.
query_remote_database_version: bytecode.cvd version from DNS: 333
bytecode database available for download (remote version: 333)
Retrieving https://database.clamav.net/bytecode.cvd
downloadFile: Download source:      https://database.clamav.net/bytecode.cvd
downloadFile: Download destination: /var/lib/clamav/tmp.b3ac770882/clamav-72a133dc3b331982d24471bab5224e1d.tmp
*   Trying 104.16.218.84:443...
* TCP_NODELAY set
* Connected to database.clamav.net (104.16.218.84) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use h2
* Server certificate:
*  subject: C=US; ST=California; L=San Francisco; O=Cloudflare, Inc.; CN=sni.cloudflaressl.com
*  start date: Jul 15 00:00:00 2021 GMT
*  expire date: Jul 14 23:59:59 2022 GMT
*  subjectAltName: host "database.clamav.net" matched cert's "database.clamav.net"
*  issuer: C=US; O=Cloudflare, Inc.; CN=Cloudflare Inc ECC CA-3
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x55d78f86bbe0)
> GET /bytecode.cvd HTTP/2
Host: database.clamav.net
user-agent: ClamAV/0.103.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64, UUID: e79d1fc4-b596-4730-9d25-48ccd9b9d92b)
accept: */*
connection: close

* old SSL session ID is stale, removing
* Connection state changed (MAX_CONCURRENT_STREAMS == 256)!
< HTTP/2 200
< date: Mon, 11 Oct 2021 14:30:06 GMT
< content-type: application/octet-stream
< content-length: 293670
< last-modified: Mon, 08 Mar 2021 15:21:00 GMT
< etag: "604640dc-47b26"
< cf-cache-status: HIT
< age: 22097
< expires: Tue, 12 Oct 2021 02:30:06 GMT
< cache-control: public, max-age=43200
< accept-ranges: bytes
< expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
< strict-transport-security: max-age=15552000
< x-content-type-options: nosniff
< server: cloudflare
< cf-ray: 69c8c8d4d8d2dfcb-FRA
<
* Connection #0 to host database.clamav.net left intact
updatedb: Running g_cb_download_complete callback...
download_complete_callback: Download complete for database : /var/lib/clamav/tmp.b3ac770882/clamav-72a133dc3b331982d24471bab5224e1d.tmp-bytecode.cvd
download_complete_callback:   fc_context->bTestDatabases   : 1
download_complete_callback:   fc_context->bBytecodeEnabled : 1
Testing database: '/var/lib/clamav/tmp.b3ac770882/clamav-72a133dc3b331982d24471bab5224e1d.tmp-bytecode.cvd' ...
Loading signatures from /var/lib/clamav/tmp.b3ac770882/clamav-72a133dc3b331982d24471bab5224e1d.tmp-bytecode.cvd
Properly loaded 92 signatures from /var/lib/clamav/tmp.b3ac770882/clamav-72a133dc3b331982d24471bab5224e1d.tmp-bytecode.cvd
Database test passed.
bytecode.cvd updated (version: 333, sigs: 92, f-level: 63, builder: awillia2)
fc_update_database: bytecode.cvd updated.
[iRedMail] [Entrypoint] /docker/entrypoints/nginx.sh
[iRedMail] [Entrypoint] /docker/entrypoints/phpfpm.sh
[iRedMail] [Entrypoint] /docker/entrypoints/roundcube.sh
[iRedMail] [Entrypoint] /docker/entrypoints/fail2ban.sh
[iRedMail] [Entrypoint] /docker/entrypoints/iredadmin.sh
[iRedMail] CMD: /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
2021-10-11 14:30:07,585 INFO Included extra file "/etc/supervisor/conf.d/amavisd.conf" during parsing
2021-10-11 14:30:07,585 INFO Included extra file "/etc/supervisor/conf.d/clamav.conf" during parsing
2021-10-11 14:30:07,585 INFO Included extra file "/etc/supervisor/conf.d/cron.conf" during parsing
2021-10-11 14:30:07,585 INFO Included extra file "/etc/supervisor/conf.d/dovecot.conf" during parsing
2021-10-11 14:30:07,585 INFO Included extra file "/etc/supervisor/conf.d/fail2ban.conf" during parsing
2021-10-11 14:30:07,585 INFO Included extra file "/etc/supervisor/conf.d/iredadmin.conf" during parsing
2021-10-11 14:30:07,585 INFO Included extra file "/etc/supervisor/conf.d/iredapd.conf" during parsing
2021-10-11 14:30:07,585 INFO Included extra file "/etc/supervisor/conf.d/mariadb.conf" during parsing
2021-10-11 14:30:07,585 INFO Included extra file "/etc/supervisor/conf.d/mlmmjadmin.conf" during parsing
2021-10-11 14:30:07,585 INFO Included extra file "/etc/supervisor/conf.d/nginx.conf" during parsing
2021-10-11 14:30:07,586 INFO Included extra file "/etc/supervisor/conf.d/phpfpm.conf" during parsing
2021-10-11 14:30:07,586 INFO Included extra file "/etc/supervisor/conf.d/postfix.conf" during parsing
2021-10-11 14:30:07,586 INFO Included extra file "/etc/supervisor/conf.d/rsyslog.conf" during parsing
2021-10-11 14:30:07,586 INFO Set uid to user 0 succeeded
2021-10-11 14:30:07,595 INFO RPC interface 'supervisor' initialized
2021-10-11 14:30:07,596 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2021-10-11 14:30:07,596 INFO supervisord started with pid 1
2021-10-11 14:30:08,599 INFO spawned: 'rsyslog' with pid 854
2021-10-11 14:30:08,603 INFO spawned: 'cron' with pid 855
2021-10-11 14:30:08,607 INFO spawned: 'mariadb' with pid 856
2021-10-11 14:30:08,611 INFO spawned: 'clamav' with pid 857
2021-10-11 14:30:08,616 INFO spawned: 'dovecot' with pid 858
2021-10-11 14:30:08,621 INFO spawned: 'iredadmin' with pid 860
2021-10-11 14:30:08,625 INFO spawned: 'iredapd' with pid 861
2021-10-11 14:30:08,630 INFO spawned: 'mlmmjadmin' with pid 863
2021-10-11 14:30:08,643 INFO spawned: 'amavisd' with pid 865
2021-10-11 14:30:08,647 INFO spawned: 'phpfpm' with pid 866
2021-10-11 14:30:08,651 INFO spawned: 'nginx' with pid 867
2021-10-11 14:30:08,669 INFO spawned: 'postfix' with pid 869
2021-10-11 14:30:08,679 INFO spawned: 'fail2ban' with pid 870
2021-10-11 14:30:08,704 INFO success: rsyslog entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2021-10-11 14:30:08,704 INFO success: cron entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2021-10-11 14:30:08,704 INFO success: mariadb entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2021-10-11 14:30:08,704 INFO success: clamav entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2021-10-11 14:30:08,705 INFO success: dovecot entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2021-10-11 14:30:08,705 INFO success: iredadmin entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2021-10-11 14:30:08,705 INFO success: iredapd entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2021-10-11 14:30:08,705 INFO success: mlmmjadmin entered RUNNINGa state, process has stayed up for > than 0 seconds (startsecs)
2021-10-11 14:30:08,706 INFO success: amavisd entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2021-10-11 14:30:08,706 INFO success: phpfpm entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2021-10-11 14:30:08,706 INFO success: nginx entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2021-10-11 14:30:08,706 INFO success: postfix entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2021-10-11 14:30:08,707 INFO success: fail2ban entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2021-10-11 14:30:08,856 INFO exited: dovecot (exit status 89; not expected)
2021-10-11 14:30:08,884 INFO spawned: 'dovecot' with pid 882
2021-10-11 14:30:09,051 INFO success: dovecot entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2021-10-11 14:30:09,414 INFO exited: dovecot (exit status 89; not expected)
2021-10-11 14:30:09,420 INFO spawned: 'dovecot' with pid 973
2021-10-11 14:30:09,442 INFO success: dovecot entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2021-10-11 14:30:09,543 INFO exited: dovecot (exit status 89; not expected)
2021-10-11 14:30:09,550 INFO spawned: 'dovecot' with pid 983
2021-10-11 14:30:09,558 INFO success: dovecot entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2021-10-11 14:30:10,640 INFO exited: dovecot (exit status 89; not expected)
2021-10-11 14:30:11,643 INFO spawned: 'dovecot' with pid 1101
2021-10-11 14:30:11,644 INFO reaped unknown pid 620
2021-10-11 14:30:12,647 INFO success: dovecot entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
iredmail commented 3 years ago

Login to the docker container, check Dovecot log files under /var/log/, we need the detailed error message for troubleshooting.

JasperCiti commented 3 years ago

I have re-run the docker run command. This time it seems to freeze after "fail2ban entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)"

dovecot.log:

Oct 11 17:52:47 mail dovecot: master: Dovecot v2.3.7.2 (3c910f64b) starting up for pop3, imap, sieve, lmtp

imap.log:

Oct 11 17:56:24 mail dovecot: imap-login: Disconnected (no auth attempts in 1 secs): user=<>, rip=197.229.143.138, lip=172.17.0.2, TLS handshaking: SSL_accept() failed: error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca: SSL alert number 48
Oct 11 17:56:24 mail dovecot: imap-login: Disconnected (no auth attempts in 1 secs): user=<>, rip=197.229.143.56, lip=172.17.0.2, TLS handshaking: SSL_accept() failed: error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca: SSL alert number 48
Oct 11 17:56:25 mail dovecot: imap-login: Disconnected (no auth attempts in 2 secs): user=<>, rip=197.229.143.52, lip=172.17.0.2, TLS handshaking: SSL_accept() failed: error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca: SSL alert number 48
Oct 11 17:59:54 mail dovecot: imap-login: Disconnected (no auth attempts in 1 secs): user=<>, rip=165.49.29.78, lip=172.17.0.2, TLS handshaking: SSL_accept() failed: error:14094412:SSL routines:ssl3_read_bytes:sslv3 alert bad certificate: SSL alert number 42
Oct 11 17:59:54 mail dovecot: imap-login: Disconnected (no auth attempts in 1 secs): user=<>, rip=165.49.29.78, lip=172.17.0.2, TLS handshaking: SSL_accept() failed: error:14094412:SSL routines:ssl3_read_bytes:sslv3 alert bad certificate: SSL alert number 42
Oct 11 17:59:54 mail dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=165.49.29.78, lip=172.17.0.2, TLS handshaking: SSL_accept() failed: error:14094412:SSL routines:ssl3_read_bytes:sslv3 alert bad certificate: SSL alert number 42
Oct 11 18:04:28 mail dovecot: imap-login: Disconnected (no auth attempts in 1 secs): user=<>, rip=197.229.143.123, lip=172.17.0.2, TLS handshaking: SSL_accept() failed: error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca: SSL alert number 48
Oct 11 18:04:28 mail dovecot: imap-login: Disconnected (no auth attempts in 1 secs): user=<>, rip=197.229.143.144, lip=172.17.0.2, TLS handshaking: SSL_accept() failed: error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca: SSL alert number 48
Oct 11 18:04:28 mail dovecot: imap-login: Disconnected (no auth attempts in 1 secs): user=<>, rip=197.229.143.144, lip=172.17.0.2, TLS handshaking: SSL_accept() failed: error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca: SSL alert number 48

lda.log

Oct 11 17:57:49 mail dovecot: lda(postmaster@***.com)<957><Z2gSFB17ZGG9AwAA7212zg>: save: box=INBOX, uid=2, msgid=<4HSmbh1j61z1spg3@mail.***.com>, size=8641, from=root <root@mail.***.com>, subject=Details of this iRedMail container, flags=()
Oct 11 17:57:49 mail dovecot: lda(postmaster@***.com)<957><Z2gSFB17ZGG9AwAA7212zg>: from=root@mail.***.com, envelope_sender=root@mail.***.com, subject=Details of this iRedMail container, msgid=<4HSmbh1j61z1spg3@mail.***.com>, size=8641, delivery_time=67ms, saved mail to INBOX
iredmail commented 3 years ago

This time it seems to freeze after "fail2ban entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)"

Dovecot service seems ok now. What's the fail2ban error in its log file?