Skip to content

Attempting to use image, not working so far. #2

@jonathon2nd

Description

@jonathon2nd

Hello! Just trying to see what I am doing wrong when attempting to use this image.
We just want inbound with a replay to a service, so should just be a simple setup.

env vars gotten from reading: https://github.com/mlan/docker-postfix?tab=readme-ov-file#usage

mail:
  image:
    repository: mlan/postfix
    pullPolicy: IfNotPresent
    # Overrides the image tag whose default is the chart appVersion.
    tag: "latest"
env:
    FORCE_CONFIG: OVERWRITE
    MAIL_DOMAIN: smtp.example.net
    MAIL_BOXES: "info@example.net abuse@example.net"
    SMTP_RELAY_HOSTAUTH: 127.0.0.1:2525

pv mounted at /srv/

Image

logs showing errors

Mar  4 18:44:56 docker-entrypoint.sh[1] NOTE: mailrelay-mail-relay-5c647fcdcd-4vjds Alpine Linux v3.21 5.14.0-503.19.1.el9_5.x86_64
	postfix	3.9.1
	dovecot	2.3.21.1
postconf: fatal: open /etc/postfix/main.cf: No such file or directory
diff: can't stat '/etc/postfix/postfix-files': No such file or directory
Mar  4 18:44:58 docker-entrypoint.sh[1] NOTE: [postfix] Updating install file: postfix-files
diff: can't stat '/etc/postfix/dynamicmaps.cf.d': Not a directory
rm: can't stat '/etc/postfix/dynamicmaps.cf.d': Not a directory
cp: can't stat '/etc/postfix/dynamicmaps.cf.d': Not a directory
Mar  4 18:44:58 docker-entrypoint.sh[1] NOTE: [postfix] Updating install file: dynamicmaps.cf.d
Mar  4 18:44:58 docker-entrypoint.sh[1] NOTE: Setting syslogd level=5.
Mar  4 18:44:58 docker-service.sh[150] NOTE: Setting up (syslogd) options () cmd (/sbin/syslogd) args (-nO- -l5 -SDt)
mkdir: can't create directory '/etc/dovecot/': No such file or directory
/usr/local/bin/docker-entrypoint.sh: /etc/docker/entry.d/50-dovecot-config: line 77: can't create /etc/dovecot/dovecot.conf: nonexistent directory
/usr/local/bin/docker-entrypoint.sh: /etc/docker/entry.d/50-dovecot-config: line 80: can't create /etc/dovecot/README: nonexistent directory
/usr/local/bin/docker-entrypoint.sh: /etc/docker/entry.d/50-dovecot-config: line 91: can't create /etc/dovecot/conf.d/10-master.conf: nonexistent directory
/usr/local/bin/docker-entrypoint.sh: /etc/docker/entry.d/50-dovecot-config: line 112: can't create /etc/dovecot/conf.d/10-auth.conf: nonexistent directory
Mar  4 18:44:58 docker-entrypoint.sh[1] NOTE: [postfix] Configuring for domains smtp.example.net
postconf: fatal: open /etc/postfix/main.cf.tmp: Not a directory
postconf: fatal: open /etc/postfix/main.cf.tmp: Not a directory
postconf: fatal: open /etc/postfix/main.cf.tmp: Not a directory
postconf: fatal: open /etc/postfix/main.cf.tmp: Not a directory
postconf: fatal: open /etc/postfix/main.cf.tmp: Not a directory
postconf: fatal: open /etc/postfix/main.cf.tmp: Not a directory
postconf: fatal: open /etc/postfix/main.cf.tmp: Not a directory
postconf: fatal: open /etc/postfix/main.cf.tmp: Not a directory
postconf: fatal: open /etc/postfix/main.cf.tmp: Not a directory
postconf: fatal: open /etc/postfix/main.cf.tmp: Not a directory
postconf: fatal: open /etc/postfix/main.cf.tmp: Not a directory
postconf: fatal: open /etc/postfix/main.cf.tmp: Not a directory
postconf: fatal: open /etc/postfix/main.cf.tmp: Not a directory
Mar  4 18:45:12 docker-entrypoint.sh[1] NOTE: [postfix] Configuring SMTP relay: 127.0.0.1:2525
postconf: fatal: open /etc/postfix/main.cf.tmp: Not a directory
postconf: fatal: open /etc/postfix/main.cf.tmp: Not a directory
postconf: fatal: open /etc/postfix/main.cf.tmp: Not a directory
postconf: fatal: open /etc/postfix/main.cf.tmp: Not a directory
/usr/local/bin/docker-entrypoint.sh: /etc/docker/entry.d/60-postfix-config-late: line 178: can't create /etc/postfix/sasl-passwords: nonexistent directory
postmap: fatal: open /etc/postfix/main.cf: Not a directory
Mar  4 18:45:17 docker-entrypoint.sh[1] NOTE: [postfix] Configuring virtual mailboxes.
/usr/local/bin/docker-entrypoint.sh: /etc/docker/entry.d/60-postfix-config-late: line 122: can't create /etc/postfix/virt-users: nonexistent directory
/usr/local/bin/docker-entrypoint.sh: /etc/docker/entry.d/60-postfix-config-late: line 122: can't create /etc/postfix/virt-users: nonexistent directory
postmap: fatal: open /etc/postfix/main.cf: Not a directory
postconf: fatal: open /etc/postfix/main.cf.tmp: Not a directory
Mar  4 18:45:19 docker-entrypoint.sh[1] NOTE: [postfix] No VIRTUAL_TRANSPORT so arranging local mboxes: /var/mail
mkdir: can't create directory '/var/mail': No such file or directory
postconf: fatal: open /etc/postfix/main.cf.tmp: Not a directory
postconf: fatal: open /etc/postfix/main.cf.tmp: Not a directory
postconf: fatal: open /etc/postfix/main.cf.tmp: Not a directory
postconf: fatal: open /etc/postfix/main.cf: Not a directory
postconf: fatal: open /etc/postfix/main.cf: Not a directory
Mar  4 18:46:15 docker-entrypoint.sh[1] NOTE: Configuration update was forced, since we got FORCE_CONFIG=OVERWRITE
postfix: fatal: open /etc/postfix/main.cf: Not a directory
Mar  4 18:46:15 postfix[543]: fatal: open /etc/postfix/main.cf: Not a directory
Fatal: Error reading configuration: stat(/etc/dovecot/dovecot.conf) failed: No such file or directory
Fatal: Error reading configuration: stat(/etc/dovecot/dovecot.conf) failed: No such file or directory
postfix: fatal: open /etc/postfix/main.cf: Not a directory
Mar  4 18:46:16 postfix[547]: fatal: open /etc/postfix/main.cf: Not a directory
Fatal: Error reading configuration: stat(/etc/dovecot/dovecot.conf) failed: No such file or directory
postfix: fatal: open /etc/postfix/main.cf: Not a directory
Mar  4 18:46:17 postfix[550]: fatal: open /etc/postfix/main.cf: Not a directory
Fatal: Error reading configuration: stat(/etc/dovecot/dovecot.conf) failed: No such file or directory
postfix: fatal: open /etc/postfix/main.cf: Not a directory
Mar  4 18:46:18 postfix[552]: fatal: open /etc/postfix/main.cf: Not a directory
Fatal: Error reading configuration: stat(/etc/dovecot/dovecot.conf) failed: No such file or directory
postfix: fatal: open /etc/postfix/main.cf: Not a directory
Mar  4 18:46:19 postfix[554]: fatal: open /etc/postfix/main.cf: Not a directory
Fatal: Error reading configuration: stat(/etc/dovecot/dovecot.conf) failed: No such file or directo

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions