Skip to content

other: configure email client error [Disconnected: Connection closed (LIST finished 0.136 secs ago)] #3340

@xiongjiamu

Description

@xiongjiamu

Subject

Other

Description

here is my docker compose file:

version: '3.8'

services:
  mailserver:
    image: docker.io/mailserver/docker-mailserver:latest
    container_name: mailserver
    hostname: mail.***.com
    ports:
      - "25:25"
      - "143:143"
      - "587:587"
      - "993:993"
    volumes:
      - ./dms/mail-data/:/var/mail/
      - ./dms/mail-state/:/var/mail-state/
      - ./dms/mail-logs/:/var/log/mail/
      - ./dms/config/:/tmp/docker-mailserver/
      - /etc/letsencrypt/:/etc/letsencrypt/
      - /etc/localtime:/etc/localtime:ro
    environment:
      - ENABLE_SPAMASSASSIN=1
      - SPAMASSASSIN_SPAM_TO_INBOX=1
      - ENABLE_CLAMAV=1
      - ENABLE_FAIL2BAN=1
      - ENABLE_POSTGREY=1
      - ENABLE_SASLAUTHD=0
      - ONE_DIR=1
    cap_add:
      - NET_ADMIN
    restart: always

after run docker compose , i use this command to add email account:

docker exec -ti <CONTAINER NAME> setup email add x@***.com

then I went to set the email account on my cell phone , use IMAP, the port I use was 143 and 25, index was INBOX, when I set all this, it won't work , and my container logs show following message:

[   INF   ]  Welcome to docker-mailserver 12.1.0
[   INF   ]  Checking configuration
[   INF   ]  Configuring mail server
[ WARNING ]  You need at least one mail account to start Dovecot (120s left for account creation before shutdown)
2023-05-15 10:41:06,050 WARN received SIGTERM indicating exit request
[ WARNING ]  You need at least one mail account to start Dovecot (110s left for account creation before shutdown)
[   INF   ]  Welcome to docker-mailserver 12.1.0
[   INF   ]  Checking configuration
[   INF   ]  Configuring mail server
[ WARNING ]  You need at least one mail account to start Dovecot (120s left for account creation before shutdown)
[ WARNING ]  You need at least one mail account to start Dovecot (110s left for account creation before shutdown)
[ WARNING ]  You need at least one mail account to start Dovecot (100s left for account creation before shutdown)
[ WARNING ]  You need at least one mail account to start Dovecot (90s left for account creation before shutdown)
[ WARNING ]  !! INSECURE !! SSL configured with plain text access - DO NOT USE FOR PRODUCTION DEPLOYMENT
[   INF   ]  Starting daemons
[   INF   ]  mail.***.com is up and running
May 15 10:42:14 mail amavis[677]: starting. /usr/sbin/amavisd-new at mail.xxm.one amavisd-new-2.11.1 (20181009), Unicode aware, LC_CTYPE="C.UTF-8"
May 15 10:42:14 mail amavis[677]: perl=5.032001, user=, EUID: 109 (109);  group=, EGID: 111 111 (111 111)
May 15 10:42:14 mail amavis[677]: Net::Server: Group Not Defined.  Defaulting to EGID '111 111'
May 15 10:42:14 mail amavis[677]: Net::Server: User Not Defined.  Defaulting to EUID '109'
May 15 10:42:14 mail amavis[677]: No ext program for   .zoo, tried: zoo
May 15 10:42:14 mail amavis[677]: No ext program for   .doc, tried: ripole
May 15 10:42:14 mail amavis[677]: No decoder for       .F   
May 15 10:42:14 mail amavis[677]: No decoder for       .doc 
May 15 10:42:14 mail amavis[677]: No decoder for       .zoo 
May 15 10:42:14 mail amavis[677]: Using primary internal av scanner code for ClamAV-clamd
May 15 10:42:14 mail amavis[677]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
May 15 10:43:31 mail dovecot: imap-login: Login: user=<x@***.com>, method=PLAIN, rip=149.**.**.*6, lip=192.**.**.2, mpid=848, session=<z/Wda7L7WJ+VHJu6>
May 15 10:43:32 mail dovecot: imap(mail@***.com)<848><z/Wda7L7WJ+VHJu6>: Disconnected: Connection closed (LIST finished 0.136 secs ago) in=14 out=493 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0

how can I fix this? Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions