Skip to content

"fatal: no SASL authentication mechanisms" when running SMTP_ONLY=1 #526

@domdorn

Description

@domdorn

I'm trying to get docker-mailserver up and running, so I'm able to send mails from my containers.

I created the server with the following compose file:

`version: '2'
services:

  xxx_mail:
    restart: always
    container_name: xxx_mail
    image: tvial/docker-mailserver:2.1
    hostname: mails
    domainname: xxx.xx
    expose:
      - 25
    ports:
      - "xxx.xxx.xxx.xxx:25:25"
      - "127.0.0.1:143:143"
      - "127.0.0.1:587:587"
      - "127.0.0.1:993:993"
    mem_limit: "512m"
    networks:
      - xxx-mail-backend
    volumes:
      - /data/xxx/mailserver/maildata:/var/mail
      - /data/xxx/mailserver/mailstate:/var/mail-state
      - ./config/:/tmp/docker-mailserver
    environment:
      - ENABLE_SPAMASSASSIN=0
      - ENABLE_CLAMAV=0
      - ENABLE_FAIL2BAN=0
      - ENABLE_POSTGREY=0
      - ONE_DIR=1
      - DMS_DEBUG=0
      - SMTP_ONLY=1
      # SSL: empty means disabled. as we don't have any mailclients (yet), we don't need it.
      #- SSL_TYPE=letsencrypt
      - PERMIT_DOCKER=network

networks:
    xxx-mail-backend:
      external:
        name: xxx-mail-backend

when trying to send a mail from another container (which is in the same network), it fails. in the logs it just says:

Feb 22 00:14:21 mails postfix/smtpd[1000]: error: open database /etc/postfix/vmailbox: No such file or directory
Feb 22 00:14:21 mails postfix/smtpd[1000]: fatal: no SASL authentication mechanisms

from the other container, I'm using ssmtp with mailhub=mail (where mail is the alias mapped into the other container).
there I just get a sendmail: Invalid response SMTP server returned.

Any suggestions? I don't want any virus scanning or anything.. I only want to send mails that are DKIM signed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions