-
|
Hi, I'm trying to configure an SMTP server so that a printer on my LAN can send documents by email. SMTP server does not need to be publicly accessible. Steps I followed:
I checked The error I can see in the logs (when trying from the printer or using swaks) are : Container logs (testing using swaks on the server) : I used the following compose file: services:
mailserver:
image: ghcr.io/docker-mailserver/docker-mailserver:latest
container_name: mailserver
hostname: mail.domain.com
env_file: mailserver.env
ports:
- "465:465" # ESMTP (implicit TLS)
- "587:587" # ESMTP (explicit TLS => STARTTLS)
- "25:25"
volumes:
- ./docker-data/dms/mail-data/:/var/mail/
- ./docker-data/dms/mail-state/:/var/mail-state/
- ./docker-data/dms/mail-logs/:/var/log/mail/
- ./docker-data/dms/config/:/tmp/docker-mailserver/
- /etc/localtime:/etc/localtime:ro
- /home/thibaut/nginx/data/certbot/conf:/etc/letsencrypt
restart: always
stop_grace_period: 1m
healthcheck:
test: "ss --listening --tcp | grep -P 'LISTEN.+:smtp' || exit 1"
timeout: 3s
retries: 0Any help appreciated, thanks EDIT, I tested TLS config like this to check if it's working: |
Beta Was this translation helpful? Give feedback.
Answered by
thi-baut
Oct 5, 2023
Replies: 1 comment 6 replies
-
This isn't helpful. What ENV have you set? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

I tried to change SMTP_ONLY to 0 and it looks like it's going through (I'm not receiving email probably because of lack of DKIM config, DNS issue etc. "Cannot assign requested address" error but I think I can manage from here). This is likely a bug with the user not being properly setup/created with this parameter set to 1