📝 Preliminary Checks
👀 What Happened?
I added a configuration in postfix-main.cf referencing a file like relay_domains = pgsql:/etc/postfix/pgsql-relay-domains.cf.
This referenced file was not in place at time of executing postconf during startup, as it comes later with user-patches.sh.
Now I got errors from postfix as some options in the main.cf are not parsable.
NOTE: I added postfix-pgsql using my own Dockerfile with FROM docker.io/mailserver/docker-mailserver:latest.
👟 Reproduction Steps
- Create a
postfix-main.cf and add a line referencing a file, that does not exist.
- Start the container and let the scripts place the config files in place.
- See error as above because error messages from
postconf are at the most bottom of main.cf
...
virtual_alias_maps = texthash:/etc/postfix/virtual
virtual_mailbox_domains = /etc/postfix/vhost
virtual_mailbox_limit = 0
virtual_mailbox_maps = texthash:/etc/postfix/vmailbox
virtual_transport = lmtp:unix:/var/run/dovecot/lmtp
postconf: warning: open "pgsql" configuration "/etc/postfix/pgsql-relay-domains.cf": No such file or directory
postconf: warning: open "pgsql" configuration "/etc/postfix/pgsql-transport-maps.cf": No such file or directory
🐋 DMS Version
v14.0.0
💻 Operating System and Architecture
Fedora CoreOS
⚙️ Container configuration files
services:
mailserver:
image: localhost/mailserver:latest
build: .
container_name: mailserver
# Provide the FQDN of your mail server here (Your DNS MX record should point to this value)
hostname: mail.kbw3.de
env_file: mailserver.env
# More information about the mail-server ports:
# https://docker-mailserver.github.io/docker-mailserver/latest/config/security/understanding-the-ports/
ports:
- "25:25" # SMTP (explicit TLS => STARTTLS, Authentication is DISABLED => use port 465/587 instead)
- "143:143" # IMAP4 (explicit TLS => STARTTLS)
- "465:465" # ESMTP (implicit TLS)
- "587:587" # ESMTP (explicit TLS => STARTTLS)
- "993:993" # IMAP4 (implicit TLS)
volumes:
- ./dms/mail-data:/var/mail:Z
- ./dms/mail-state:/var/mail-state:Z
- ./dms/mail-logs:/var/log/mail:Z
- ./dms/config:/tmp/docker-mailserver:Z
- ./dms/certs:/etc/certs:Z
restart: unless-stopped
stop_grace_period: 1m
cap_add:
- NET_ADMIN
healthcheck:
test: "ss --listening --tcp | grep -P 'LISTEN.+:smtp' || exit 1"
timeout: 3s
retries: 0
depends_on:
db:
condition: service_healthy
include:
- simplelogin.yaml
- postfix.yaml
networks:
default:
name: mailserver-simplelogin
📜 Relevant log output
2024-07-31T21:35:13.736273+02:00 mail postfix[1095]: fatal: /etc/postfix/main.cf, line 80: missing '=' after attribute name: "postconf: warning: open "pgsql" configuration "/etc/postfix/pgsql-transport-maps.cf": No such file or directory"
Improvements to this form?
No response
📝 Preliminary Checks
👀 What Happened?
I added a configuration in postfix-main.cf referencing a file like
relay_domains = pgsql:/etc/postfix/pgsql-relay-domains.cf.This referenced file was not in place at time of executing postconf during startup, as it comes later with user-patches.sh.
Now I got errors from postfix as some options in the
main.cfare not parsable.NOTE: I added
postfix-pgsqlusing my ownDockerfilewithFROM docker.io/mailserver/docker-mailserver:latest.👟 Reproduction Steps
postfix-main.cfand add a line referencing a file, that does not exist.postconfare at the most bottom ofmain.cf🐋 DMS Version
v14.0.0
💻 Operating System and Architecture
Fedora CoreOS
⚙️ Container configuration files
📜 Relevant log output
Improvements to this form?
No response