Skip to content

Podman-compose unable to start up docker-mailserver #2630

@leonidas-o

Description

@leonidas-o

Description

Got a VM running with: Rocky Linux, VERSION="8.6 (Green Obsidian)"
podman version 4.0.2, podman-composer version 0.1.7dev
Went for podmans rootless mode: https://docker-mailserver.github.io/docker-mailserver/edge/config/advanced/podman/#installation-in-rootless-mode

Prepared the VM with the following commands:

mkdir -p /srv/docker-mailserver/{mail-data,mail-state,mail-logs,config}
restorecon -vv -F -r /
systemctl enable --now --user podman.socket
curl -LO https://raw.github.com/docker-mailserver/docker-mailserver/v11.0.0/docker-compose.yml
curl -LO https://raw.github.com/docker-mailserver/docker-mailserver/v11.0.0/mailserver.env
# Updated the docker-compose.yml according to my needs
vi docker-compose.yml
docker-compose.yml
services:
  mailserver:
    image: harbor.mydomain.com/dh/mailserver/docker-mailserver:11.0.0
    container_name: mailserver
    # If the FQDN for your mail-server is only two labels (eg: example.com),
    # you can assign this entirely to `hostname` and remove `domainname`.
    hostname: docker-mailserver
    domainname: mydomain.com
    env_file: mailserver.env
    # More information about the mail-server ports:
    # https://docker-mailserver.github.io/docker-mailserver/edge/config/security/understanding-the-ports/
    # To avoid conflicts with yaml base-60 float, DO NOT remove the quotation marks.
    ports:
      - "10025:25"    # SMTP  (explicit TLS => STARTTLS)
      - "10143:143"  # IMAP4 (explicit TLS => STARTTLS)
      - "10465:465"  # ESMTP (implicit TLS)
      - "10587:587"  # ESMTP (explicit TLS => STARTTLS)
      - "10993:993"  # IMAP4 (implicit TLS)
    environment:
      - LOG_LEVEL=debug
      - PERMIT_DOCKER=none
      - SPOOF_PROTECTION=1
      - ENABLE_CLAMAV=1
      - ENABLE_DNSBL=1
      - ENABLE_FAIL2BAN=1
      - SSL_TYPE=manual
      - SSL_CERT_PATH=/tmp/dms/custom-certs/mydomain.com.cer
      - SSL_KEY_PATH=/tmp/dms/custom-certs/mydomain.com.key
      - ENABLE_SPAMASSASSIN=1
      - ENABLE_SPAMASSASSIN_KAM=1
      - MOVE_SPAM_TO_JUNK=1
      - ENABLE_LDAP=1
      # use starttls everywhere, use port 389, protocol must not be ldaps://
      - LDAP_START_TLS=yes
      - LDAP_SERVER_HOST=myldapservice.mydomain.com
      - LDAP_SEARCH_BASE=cn=users,cn=accounts,dc=mydomain,dc=com
      - LDAP_BIND_DN=uid=docker-mailserver-admin,cn=users,cn=accounts,dc=mydomain,dc=com
      # LDAP_BIND_PW is set inside access.sh script
      - LDAP_BIND_PW
      - LDAP_QUERY_FILTER_USER=(&(mail=%s)(mailEnabled=TRUE))
      - LDAP_QUERY_FILTER_GROUP=(&(mailGroupMember=%s)(mailEnabled=TRUE))
      - LDAP_QUERY_FILTER_ALIAS=(&(mailAlias=%s)(mailEnabled=TRUE))
      - LDAP_QUERY_FILTER_DOMAIN=(&(|(mail=*@%s)(mailalias=*@%s)(mailGroupMember=*@%s))(mailEnabled=TRUE))
      - DOVECOT_TLS=yes
      - DOVECOT_AUTH_BIND=yes
      - DOVECOT_USER_FILTER=(&(objectClass=PostfixBookMailAccount)(mail=%n))
      - DOVECOT_USER_ATTRS=homeDirectory=home,qmailUID=uid,qmailGID=gid,mailMessageStore=mail
      - DOVECOT_PASS_ATTRS=uid=user,userPassword=password
      - ENABLE_POSTGREY=1
      - ENABLE_SASLAUTHD=1
      - SASLAUTHD_MECHANISMS=ldap
      - SASLAUTHD_LDAP_START_TLS=yes
      - SASLAUTHD_LDAP_FILTER=(&(mail=%u)(mailEnabled=TRUE))
    volumes:
      - /srv/docker-mailserver/mail-data/:/var/mail/
      - /srv/docker-mailserver/mail-state/:/var/mail-state/
      - /srv/docker-mailserver/mail-logs/:/var/log/mail/
      - /srv/docker-mailserver/config/:/tmp/docker-mailserver/
      - /etc/localtime:/etc/localtime:ro
      - /srv/acme/:/tmp/dms/custom-certs/:ro
    restart: always
    stop_grace_period: 1m
    cap_add:
      - NET_ADMIN
      - SYS_PTRACE
    restart: always
echo 'export DOCKER_HOST="unix:///var/run/user/$(id -u)/podman/podman.sock"' >> ~/.bashrc
source /srv/docker-mailserver/access.sh
podman-compose up --detach mailserver

I had a few denials, so I put SELinux into permissive mode: setenforce 0.

Logs

On LOG_LEVEL=info I had even more errors than on LOG_LEVEL=debug.

Excerpt log on LOG_LEVEL=info:

Adding user postfix to group sasl
[ WARNING ]  No DKIM key(s) provided - check the documentation on how to get your keys
Device "eth0" does not exist.
[  ERROR  ]  Detecting the container IP address failed
[  ERROR  ]  Network Setup [docker_permit] | NETWORK_INTERFACE appears to be misconfigured, please verify.
[  ERROR  ]  Shutting down
2022-06-08 20:27:26,186 WARN received SIGTERM indicating exit request
[   INF   ]  Welcome to docker-mailserver 11.0.0
[   INF   ]  Initializing setup
[   INF   ]  Checking configuration
[   INF   ]  Configuring mail server
...
Adding user postfix to group sasl
[ WARNING ]  No DKIM key(s) provided - check the documentation on how to get your keys
Nameservers 10.0.2.3,10.2.1.3
[  ERROR  ]  No difference after call to 'sed' in 'sedfile' (sed -i -r s|^(smtpd_tls_chain_files =).*|\1 /etc/dms/tls/key /etc/dms/tls/cert| /etc/postfix/main.cf)
[  ERROR  ]  No difference after call to 'sed' in 'sedfile' (sed -i -r -e s|^(ssl_key =).*|\1 </etc/dms/tls/key| -e s|^(ssl_cert =).*|\1 </etc/dms/tls/cert| /etc/dovecot/conf.d/10-ssl.conf)
Device "eth0" does not exist.
[  ERROR  ]  Detecting the container IP address failed
[  ERROR  ]  Network Setup [docker_permit] | NETWORK_INTERFACE appears to be misconfigured, please verify.
[  ERROR  ]  Shutting down
2022-06-08 20:27:45,127 WARN received SIGTERM indicating exit request
Full log (LOG_LEVEL=debug)
podman-compose up --detach mailserver
using podman version: podman version 4.0.2
podman pod create --name=dockermailserverdeployment --share net -p 10143:143 -p 10587:587 -p 10993:993 -p 10465:465 -p 10025:25
3d9d99b122e1eb5c2fe5d9ad7ac423cfd...
0
podman run --name=mailserver -d --pod=dockermailserverdeployment --label io.podman.compose.config-hash=123 --label io.podman.compose.project=dockermailserverdeployment --label io.podman.compose.version=0.0.1 --label com.docker.compose.container-number=1 --label com.docker.compose.service=mailserver --cap-add NET_ADMIN --cap-add SYS_PTRACE --env-file /home/MYUSER/docker-mailserver-deployment/mailserver.env -e LOG_LEVEL=debug -e PERMIT_DOCKER=none -e SPOOF_PROTECTION=1 -e ENABLE_CLAMAV=1 -e ENABLE_DNSBL=1 -e ENABLE_FAIL2BAN=1 -e SSL_TYPE=manual -e SSL_CERT_PATH=/tmp/dms/custom-certs/mydomain.com.cer -e SSL_KEY_PATH=/tmp/dms/custom-certs/mydomain.com.key -e ENABLE_SPAMASSASSIN=1 -e ENABLE_SPAMASSASSIN_KAM=1 -e MOVE_SPAM_TO_JUNK=1 -e ENABLE_LDAP=1 -e LDAP_START_TLS=yes -e LDAP_SERVER_HOST=myldapservice.mydomain.com -e LDAP_SEARCH_BASE=cn=users,cn=accounts,dc=mydomain,dc=com -e LDAP_BIND_DN=uid=docker-mailserver-admin,cn=users,cn=accounts,dc=mydomain,dc=com -e LDAP_BIND_PW -e LDAP_QUERY_FILTER_USER=(&(mail=%s)(mailEnabled=TRUE)) -e LDAP_QUERY_FILTER_GROUP=(&(mailGroupMember=%s)(mailEnabled=TRUE)) -e LDAP_QUERY_FILTER_ALIAS=(&(mailAlias=%s)(mailEnabled=TRUE)) -e LDAP_QUERY_FILTER_DOMAIN=(&(|(mail=*@%s)(mailalias=*@%s)(mailGroupMember=*@%s))(mailEnabled=TRUE)) -e DOVECOT_TLS=yes -e DOVECOT_AUTH_BIND=yes -e DOVECOT_USER_FILTER=(&(objectClass=PostfixBookMailAccount)(mail=%n)) -e DOVECOT_USER_ATTRS=homeDirectory=home,qmailUID=uid,qmailGID=gid,mailMessageStore=mail -e DOVECOT_PASS_ATTRS=uid=user,userPassword=password -e ENABLE_POSTGREY=1 -e ENABLE_SASLAUTHD=1 -e SASLAUTHD_MECHANISMS=ldap -e SASLAUTHD_LDAP_START_TLS=yes -e SASLAUTHD_LDAP_FILTER=(&(mail=%u)(mailEnabled=TRUE)) -v /srv/docker-mailserver/mail-data/:/var/mail/ -v /srv/docker-mailserver/mail-state/:/var/mail-state/ -v /srv/docker-mailserver/mail-logs/:/var/log/mail/ -v /srv/docker-mailserver/config/:/tmp/docker-mailserver/ -v /etc/localtime:/etc/localtime:ro -v /srv/acme/:/tmp/dms/custom-certs/:ro --add-host mailserver:127.0.0.1 --add-host mailserver:127.0.0.1 --hostname docker-mailserver --restart always harbor.mydomain.com/dh/mailserver/docker-mailserver:11.0.0
150017706efc105ea9a5206a416a5bb3d8435c...
0
[MYSUER@docker-mailserver docker-mailserver-deployment]$ podman logs -f mailserver
[   INF   ]  Welcome to docker-mailserver 11.0.0
[   INF   ]  Initializing setup
[  DEBUG  ]  Registering functions
[   INF   ]  Checking configuration
[  DEBUG  ]  Checking that hostname/domainname is provided or overridden
[  DEBUG  ]  Domain has been set to mydomain.com
[  DEBUG  ]  Hostname has been set to docker-mailserver.mydomain.com
[   INF   ]  Configuring mail server
[  DEBUG  ]  Setting up default variables
[  DEBUG  ]  Setting file and directory permissions
[  DEBUG  ]  Setting up Dovecot
[  DEBUG  ]  Spam messages will be moved to the Junk folder
[  DEBUG  ]  Setting up Dovecot dhparam
[  DEBUG  ]  Setting up Dovecot quota
[  DEBUG  ]  Setting up Dovecot Local User
[  DEBUG  ]  Setting up LDAP
 
Config'O'mat. Version 0.0.0
-------------------
Got the ENV_PREFIX: LDAP_
Got the CONF_FILE:  /etc/postfix/ldap-users.cf
-------------------
 
Starting to do overrides:
  >> /etc/postfix/ldap-users.cf: query_filter_group = (&(mailGroupMember=%s)(mailEnabled=TRUE))
  >> /etc/postfix/ldap-users.cf: saslauthd_ldap_tls_cacert_dir = 
  >> /etc/postfix/ldap-users.cf: saslauthd_ldap_password = 
  >> /etc/postfix/ldap-users.cf: saslauthd_ldap_filter = (&(mail=%u)(mailEnabled=TRUE))
  >> /etc/postfix/ldap-users.cf: query_filter_alias = (&(mailAlias=%s)(mailEnabled=TRUE))
  >> /etc/postfix/ldap-users.cf: saslauthd_ldap_start_tls = yes
  >> /etc/postfix/ldap-users.cf: server_host = myldapservice.mydomain.com
  >> /etc/postfix/ldap-users.cf: saslauthd_ldap_tls_cacert_file = 
  >> /etc/postfix/ldap-users.cf: saslauthd_ldap_bind_dn = 
  >> /etc/postfix/ldap-users.cf: saslauthd_ldap_password_attr = 
  >> /etc/postfix/ldap-users.cf: saslauthd_ldap_mech = 
  >> /etc/postfix/ldap-users.cf: start_tls = yes
  >> /etc/postfix/ldap-users.cf: query_filter = (&(mail=%s)(mailEnabled=TRUE))
  >> /etc/postfix/ldap-users.cf: query_filter_domain = (&(|(mail=*@%s)(mailalias=*@%s)(mailGroupMember=*@%s))(mailEnabled=TRUE))
  >> /etc/postfix/ldap-users.cf: saslauthd_ldap_auth_method = 
  >> /etc/postfix/ldap-users.cf: saslauthd_ldap_tls_check_peer = 
  >> /etc/postfix/ldap-users.cf: search_base = cn=users,cn=accounts,dc=mydomain,dc=com
  >> /etc/postfix/ldap-users.cf: saslauthd_ldap_server = 
  >> /etc/postfix/ldap-users.cf: query_filter_user = (&(mail=%s)(mailEnabled=TRUE))
  >> /etc/postfix/ldap-users.cf: bind_pw = h...
  >> /etc/postfix/ldap-users.cf: saslauthd_ldap_search_base = 
  >> /etc/postfix/ldap-users.cf: bind_dn = uid=docker-mailserver-admin,cn=users,cn=accounts,dc=mydomain,dc=com
 
Config'O'mat. Version 0.0.0
-------------------
Got the ENV_PREFIX: LDAP_
Got the CONF_FILE:  /etc/postfix/ldap-groups.cf
-------------------
 
Starting to do overrides:
  >> /etc/postfix/ldap-groups.cf: query_filter_group = (&(mailGroupMember=%s)(mailEnabled=TRUE))
  >> /etc/postfix/ldap-groups.cf: saslauthd_ldap_tls_cacert_dir = 
  >> /etc/postfix/ldap-groups.cf: saslauthd_ldap_password = 
  >> /etc/postfix/ldap-groups.cf: saslauthd_ldap_filter = (&(mail=%u)(mailEnabled=TRUE))
  >> /etc/postfix/ldap-groups.cf: query_filter_alias = (&(mailAlias=%s)(mailEnabled=TRUE))
  >> /etc/postfix/ldap-groups.cf: saslauthd_ldap_start_tls = yes
  >> /etc/postfix/ldap-groups.cf: server_host = myldapservice.mydomain.com
  >> /etc/postfix/ldap-groups.cf: saslauthd_ldap_tls_cacert_file = 
  >> /etc/postfix/ldap-groups.cf: saslauthd_ldap_bind_dn = 
  >> /etc/postfix/ldap-groups.cf: saslauthd_ldap_password_attr = 
  >> /etc/postfix/ldap-groups.cf: saslauthd_ldap_mech = 
  >> /etc/postfix/ldap-groups.cf: start_tls = yes
  >> /etc/postfix/ldap-groups.cf: query_filter = (&(mailGroupMember=%s)(mailEnabled=TRUE))
  >> /etc/postfix/ldap-groups.cf: query_filter_domain = (&(|(mail=*@%s)(mailalias=*@%s)(mailGroupMember=*@%s))(mailEnabled=TRUE))
  >> /etc/postfix/ldap-groups.cf: saslauthd_ldap_auth_method = 
  >> /etc/postfix/ldap-groups.cf: saslauthd_ldap_tls_check_peer = 
  >> /etc/postfix/ldap-groups.cf: search_base = cn=users,cn=accounts,dc=mydomain,dc=com
  >> /etc/postfix/ldap-groups.cf: saslauthd_ldap_server = 
  >> /etc/postfix/ldap-groups.cf: query_filter_user = (&(mail=%s)(mailEnabled=TRUE))
  >> /etc/postfix/ldap-groups.cf: bind_pw = h...
  >> /etc/postfix/ldap-groups.cf: saslauthd_ldap_search_base = 
  >> /etc/postfix/ldap-groups.cf: bind_dn = uid=docker-mailserver-admin,cn=users,cn=accounts,dc=mydomain,dc=com
 
Config'O'mat. Version 0.0.0
-------------------
Got the ENV_PREFIX: LDAP_
Got the CONF_FILE:  /etc/postfix/ldap-aliases.cf
-------------------
 
Starting to do overrides:
  >> /etc/postfix/ldap-aliases.cf: query_filter_group = (&(mailGroupMember=%s)(mailEnabled=TRUE))
  >> /etc/postfix/ldap-aliases.cf: saslauthd_ldap_tls_cacert_dir = 
  >> /etc/postfix/ldap-aliases.cf: saslauthd_ldap_password = 
  >> /etc/postfix/ldap-aliases.cf: saslauthd_ldap_filter = (&(mail=%u)(mailEnabled=TRUE))
  >> /etc/postfix/ldap-aliases.cf: query_filter_alias = (&(mailAlias=%s)(mailEnabled=TRUE))
  >> /etc/postfix/ldap-aliases.cf: saslauthd_ldap_start_tls = yes
  >> /etc/postfix/ldap-aliases.cf: server_host = myldapservice.mydomain.com
  >> /etc/postfix/ldap-aliases.cf: saslauthd_ldap_tls_cacert_file = 
  >> /etc/postfix/ldap-aliases.cf: saslauthd_ldap_bind_dn = 
  >> /etc/postfix/ldap-aliases.cf: saslauthd_ldap_password_attr = 
  >> /etc/postfix/ldap-aliases.cf: saslauthd_ldap_mech = 
  >> /etc/postfix/ldap-aliases.cf: start_tls = yes
  >> /etc/postfix/ldap-aliases.cf: query_filter = (&(mailAlias=%s)(mailEnabled=TRUE))
  >> /etc/postfix/ldap-aliases.cf: query_filter_domain = (&(|(mail=*@%s)(mailalias=*@%s)(mailGroupMember=*@%s))(mailEnabled=TRUE))
  >> /etc/postfix/ldap-aliases.cf: saslauthd_ldap_auth_method = 
  >> /etc/postfix/ldap-aliases.cf: saslauthd_ldap_tls_check_peer = 
  >> /etc/postfix/ldap-aliases.cf: search_base = cn=users,cn=accounts,dc=mydomain,dc=com
  >> /etc/postfix/ldap-aliases.cf: saslauthd_ldap_server = 
  >> /etc/postfix/ldap-aliases.cf: query_filter_user = (&(mail=%s)(mailEnabled=TRUE))
  >> /etc/postfix/ldap-aliases.cf: bind_pw = h...
  >> /etc/postfix/ldap-aliases.cf: saslauthd_ldap_search_base = 
  >> /etc/postfix/ldap-aliases.cf: bind_dn = uid=docker-mailserver-admin,cn=users,cn=accounts,dc=mydomain,dc=com
 
Config'O'mat. Version 0.0.0
-------------------
Got the ENV_PREFIX: LDAP_
Got the CONF_FILE:  /etc/postfix/ldap-domains.cf
-------------------
 
Starting to do overrides:
  >> /etc/postfix/ldap-domains.cf: query_filter_group = (&(mailGroupMember=%s)(mailEnabled=TRUE))
  >> /etc/postfix/ldap-domains.cf: saslauthd_ldap_tls_cacert_dir = 
  >> /etc/postfix/ldap-domains.cf: saslauthd_ldap_password = 
  >> /etc/postfix/ldap-domains.cf: saslauthd_ldap_filter = (&(mail=%u)(mailEnabled=TRUE))
  >> /etc/postfix/ldap-domains.cf: query_filter_alias = (&(mailAlias=%s)(mailEnabled=TRUE))
  >> /etc/postfix/ldap-domains.cf: saslauthd_ldap_start_tls = yes
  >> /etc/postfix/ldap-domains.cf: server_host = myldapservice.mydomain.com
  >> /etc/postfix/ldap-domains.cf: saslauthd_ldap_tls_cacert_file = 
  >> /etc/postfix/ldap-domains.cf: saslauthd_ldap_bind_dn = 
  >> /etc/postfix/ldap-domains.cf: saslauthd_ldap_password_attr = 
  >> /etc/postfix/ldap-domains.cf: saslauthd_ldap_mech = 
  >> /etc/postfix/ldap-domains.cf: start_tls = yes
  >> /etc/postfix/ldap-domains.cf: query_filter = (&(|(mail=*@%s)(mailalias=*@%s)(mailGroupMember=*@%s))(mailEnabled=TRUE))
  >> /etc/postfix/ldap-domains.cf: query_filter_domain = (&(|(mail=*@%s)(mailalias=*@%s)(mailGroupMember=*@%s))(mailEnabled=TRUE))
  >> /etc/postfix/ldap-domains.cf: saslauthd_ldap_auth_method = 
  >> /etc/postfix/ldap-domains.cf: saslauthd_ldap_tls_check_peer = 
  >> /etc/postfix/ldap-domains.cf: search_base = cn=users,cn=accounts,dc=mydomain,dc=com
  >> /etc/postfix/ldap-domains.cf: saslauthd_ldap_server = 
  >> /etc/postfix/ldap-domains.cf: query_filter_user = (&(mail=%s)(mailEnabled=TRUE))
  >> /etc/postfix/ldap-domains.cf: bind_pw = h...
  >> /etc/postfix/ldap-domains.cf: saslauthd_ldap_search_base = 
  >> /etc/postfix/ldap-domains.cf: bind_dn = uid=docker-mailserver-admin,cn=users,cn=accounts,dc=mydomain,dc=com
 
Config'O'mat. Version 0.0.0
-------------------
Got the ENV_PREFIX: LDAP_
Got the CONF_FILE:  /etc/postfix/ldap-senders.cf
-------------------
 
Starting to do overrides:
  >> /etc/postfix/ldap-senders.cf: query_filter_group = (&(mailGroupMember=%s)(mailEnabled=TRUE))
  >> /etc/postfix/ldap-senders.cf: saslauthd_ldap_tls_cacert_dir = 
  >> /etc/postfix/ldap-senders.cf: saslauthd_ldap_password = 
  >> /etc/postfix/ldap-senders.cf: saslauthd_ldap_filter = (&(mail=%u)(mailEnabled=TRUE))
  >> /etc/postfix/ldap-senders.cf: query_filter_alias = (&(mailAlias=%s)(mailEnabled=TRUE))
  >> /etc/postfix/ldap-senders.cf: saslauthd_ldap_start_tls = yes
  >> /etc/postfix/ldap-senders.cf: server_host = myldapservice.mydomain.com
  >> /etc/postfix/ldap-senders.cf: saslauthd_ldap_tls_cacert_file = 
  >> /etc/postfix/ldap-senders.cf: saslauthd_ldap_bind_dn = 
  >> /etc/postfix/ldap-senders.cf: saslauthd_ldap_password_attr = 
  >> /etc/postfix/ldap-senders.cf: saslauthd_ldap_mech = 
  >> /etc/postfix/ldap-senders.cf: start_tls = yes
  >> /etc/postfix/ldap-senders.cf: query_filter = 
  >> /etc/postfix/ldap-senders.cf: query_filter_domain = (&(|(mail=*@%s)(mailalias=*@%s)(mailGroupMember=*@%s))(mailEnabled=TRUE))
  >> /etc/postfix/ldap-senders.cf: saslauthd_ldap_auth_method = 
  >> /etc/postfix/ldap-senders.cf: saslauthd_ldap_tls_check_peer = 
  >> /etc/postfix/ldap-senders.cf: search_base = cn=users,cn=accounts,dc=mydomain,dc=com
  >> /etc/postfix/ldap-senders.cf: saslauthd_ldap_server = 
  >> /etc/postfix/ldap-senders.cf: query_filter_user = (&(mail=%s)(mailEnabled=TRUE))
  >> /etc/postfix/ldap-senders.cf: bind_pw = h...
  >> /etc/postfix/ldap-senders.cf: saslauthd_ldap_search_base = 
  >> /etc/postfix/ldap-senders.cf: bind_dn = uid=docker-mailserver-admin,cn=users,cn=accounts,dc=mydomain,dc=com
 
Config'O'mat. Version 0.0.0
The file could not be found: /etc/postfix/maps/sender_login_maps.ldap. Exiting ...
 
Config'O'mat. Version 0.0.0
-------------------
Got the ENV_PREFIX: DOVECOT_
Got the CONF_FILE:  /etc/dovecot/dovecot-ldap.conf.ext
-------------------
 
Starting to do overrides:
  >> /etc/dovecot/dovecot-ldap.conf.ext: pass_filter = (&(objectClass=PostfixBookMailAccount)(mail=%n))
  >> /etc/dovecot/dovecot-ldap.conf.ext: dn = uid=docker-mailserver-admin,cn=users,cn=accounts,dc=mydomain,dc=com
  >> /etc/dovecot/dovecot-ldap.conf.ext: auth_bind = yes
  >> /etc/dovecot/dovecot-ldap.conf.ext: base = cn=users,cn=accounts,dc=mydomain,dc=com
  >> /etc/dovecot/dovecot-ldap.conf.ext: mailbox_format = maildir
  >> /etc/dovecot/dovecot-ldap.conf.ext: user_filter = (&(objectClass=PostfixBookMailAccount)(mail=%n))
  >> /etc/dovecot/dovecot-ldap.conf.ext: pass_attrs = uid=user,userPassword=password
  >> /etc/dovecot/dovecot-ldap.conf.ext: tls = yes
  >> /etc/dovecot/dovecot-ldap.conf.ext: inet_protocols = all
  >> /etc/dovecot/dovecot-ldap.conf.ext: uris = ldap://myldapservice.mydomain.com
  >> /etc/dovecot/dovecot-ldap.conf.ext: dnpass = h2rh9YozesREtQ7PRqCU
  >> /etc/dovecot/dovecot-ldap.conf.ext: user_attrs = homeDirectory=home,qmailUID=uid,qmailGID=gid,mailMessageStore=mail
[  DEBUG  ]  Configuring Postgrey
[  DEBUG  ]  Setting up SASLAUTHD
Adding user postfix to group sasl
[  DEBUG  ]  Setting up Fail2Ban
[  DEBUG  ]  Setting up DKIM
[ WARNING ]  No DKIM key(s) provided - check the documentation on how to get your keys
[  DEBUG  ]  Setting up SSL
[  DEBUG  ]  TLS configured with 'modern' ciphers
[  DEBUG  ]  Configuring certificates using key /tmp/dms/custom-certs/mydomain.com.key and cert /tmp/dms/custom-certs/mydomain.com.cer
[  DEBUG  ]  Setting up PERMIT_DOCKER option
Device "eth0" does not exist.
[  ERROR  ]  Detecting the container IP address failed
[  ERROR  ]  Network Setup [docker_permit] | NETWORK_INTERFACE appears to be misconfigured, please verify.
[  ERROR  ]  Shutting down
2022-06-08 20:53:13,097 WARN received SIGTERM indicating exit request

I don't understand where the error message Device "eth0" does not exist is coming from?

eth0 exists:

$ ip a

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00...
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether c6:83:88:...
    inet 10.2.2.2/24 brd 10.2.2.255 scope global noprefixroute eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::c483:88ff:fe12:7ffb/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever

Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/questionSomeone asked a question - feel free to answermeta/help wantedThe OP requests help from others - chime in! :Dmeta/needs triageThis issue / PR needs checks and verification from maintainerspriority/low

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions