Skip to content
This repository was archived by the owner on Dec 1, 2024. It is now read-only.

postfix queue file write error after container restart #107

Open
MHofer opened this issue May 3, 2022 · 8 comments
Open

postfix queue file write error after container restart #107

MHofer opened this issue May 3, 2022 · 8 comments

Comments

@MHofer
Copy link

MHofer commented May 3, 2022

after restart the container the mailserver ist dead, postfix error ist "queue file write error"
after create the container it works

@iredmail
Copy link
Owner

iredmail commented May 3, 2022

Did you lose the mounted volumes after restart?

@MHofer
Copy link
Author

MHofer commented May 9, 2022

the folders are connected but they are empty

after a recreation they also remain empty but the server is working

@tpimh
Copy link
Contributor

tpimh commented Jun 8, 2022

For some reason, the restart always fails. I just first remove the container (preserving the volumes), then recreate it, and it starts well.

@MHofer
Copy link
Author

MHofer commented Jun 8, 2022

I had an error with the volumes, which I have corrected, but I still have to recreate the iRedmail container after restarting the server.

@iredmail
Copy link
Owner

iredmail commented Jun 8, 2022

Do you guys run iRedMail Docker with poetainer or any other tool?

@MHofer
Copy link
Author

MHofer commented Jun 9, 2022

i use portainer 2.11.1 and the stable tag

@iredmail
Copy link
Owner

iredmail commented Jun 9, 2022

Did you add any arguments / settings in Portainer to start this container?

@tpimh
Copy link
Contributor

tpimh commented Jul 4, 2022

I just tried with Portainer, and I can reproduce the issue.

Here is my slightly redacted docker-compose yaml:

version: '3.8'
services:
  mailserver:
    image: iredmail/mariadb:stable
    container_name: 'iredmail'
    restart: always
    hostname: mail.example.org
    environment:
      TZ: Europe/Helsinki
      HOSTNAME: mail.example.org
      FIRST_MAIL_DOMAIN: example.org
      FIRST_MAIL_DOMAIN_ADMIN_PASSWORD: redacted
      MLMMJADMIN_API_TOKEN: redacted
      ROUNDCUBE_DES_KEY: redacted
      MYSQL_USE_RANDOM_PASSWORDS: "NO"
      USE_AUTOCONFIG: "YES"
      MYSQL_ROOT_PASSWORD: redacted
      VMAIL_DB_PASSWORD: redacted
      VMAIL_DB_ADMIN_PASSWORD: redacted
      AMAVISD_DB_PASSWORD: redacted
      ROUNDCUBE_DB_PASSWORD: redacted
      IREDAPD_DB_PASSWORD: redacted
      IREDADMIN_DB_PASSWORD: redacted
      FAIL2BAN_DB_PASSWORD: redacted
      SA_BAYES_DB_PASSWORD: redacted
    volumes:
      - iredmail_backup:/var/vmail/backup
      - iredmail_mailboxes:/var/vmail/vmail1
      - iredmail_mlmmj:/var/vmail/mlmmj
      - iredmail_mlmmj-archive:/var/vmail/mlmmj-archive
      - iredmail_imapsieve_copy:/var/vmail/imapsieve_copy
      - iredmail_custom:/opt/iredmail/custom
      - iredmail_ssl:/opt/iredmail/ssl
      - iredmail_mysql:/var/lib/mysql
      - iredmail_clamav:/var/lib/clamav
      - iredmail_sa_rules:/var/lib/spamassassin
      - iredmail_postfix_queue:/var/spool/postfix
volumes:
  iredmail_backup:
  iredmail_mailboxes:
  iredmail_mlmmj:
  iredmail_mlmmj-archive:
  iredmail_imapsieve_copy:
  iredmail_custom:
  iredmail_ssl:
  iredmail_mysql:
  iredmail_clamav:
  iredmail_sa_rules:
  iredmail_postfix_queue:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants