Thanks to visit codestin.com
Credit goes to github.com

Skip to content

bug report: postfix-main.cf is appending warnings to /etc/postfix/main.cfΒ #4145

@loeffelpan

Description

@loeffelpan

πŸ“ 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

  1. Create a postfix-main.cf and add a line referencing a file, that does not exist.
  2. Start the container and let the scripts place the config files in place.
  3. 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions