-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
area/scriptsbug/confirmedA bug report whose bug is confirmedA bug report whose bug is confirmedkind/bug/reportA report about a bugA report about a bugservice/postfix
Milestone
Description
π Preliminary Checks
- I tried searching for an existing issue and followed the debugging docs advice, but still need assistance.
π 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.cfand 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
postconfare at the most bottom ofmain.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
Metadata
Metadata
Assignees
Labels
area/scriptsbug/confirmedA bug report whose bug is confirmedA bug report whose bug is confirmedkind/bug/reportA report about a bugA report about a bugservice/postfix