-
I'm trying to get docker-mailserver up and running.
While I was actively IN THAT DIRECTORY, I changed it to use Here's my services:
mailserver:
image: ghcr.io/docker-mailserver/docker-mailserver:latest
container_name: mailserver
# Provide the FQDN of your mail server here (Your DNS MX record should point to this value)
hostname: mail.home.arpa
env_file: mailserver.env
# More information about the mail-server ports:
# https://docker-mailserver.github.io/docker-mailserver/latest/config/security/understanding-the-p>
ports:
- "25:25" # SMTP (explicit TLS => STARTTLS, Authentication is DISABLED => use port 465/587 i>
- "143:143" # IMAP4 (explicit TLS => STARTTLS)
- "465:465" # ESMTP (implicit TLS)
- "587:587" # ESMTP (explicit TLS => STARTTLS)
- "993:993" # IMAP4 (implicit TLS)
volumes:
- /mnt/docker/mailserver/data/:/var/mail/
- /mnt/docker/mailserver/state/:/var/mail-state/
- /mnt/docker/mailserver/logs/:/var/log/mail/
- /mnt/docker/mailserver/config/:/tmp/docker-mailserver/
- /etc/localtime:/etc/localtime:ro
restart: always
stop_grace_period: 1m
# Uncomment if using `ENABLE_FAIL2BAN=1`:
# cap_add:
# - NET_ADMIN
healthcheck:
test: "ss --listening --tcp | grep -P 'LISTEN.+:smtp' || exit 1"
timeout: 3s
retries: 0 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Please note that this response was created using generative AI, leveraging previously available information from the repository. This information may be helpful. However, it is our strong recommendation that you carefully consider the information before blindly applying it. It seems like you are encountering a common issue where the Docker container does not have the correct permissions or cannot find the specified volume path for the
If these steps do not resolve the issue, consider checking the Docker and Docker Mailserver documentation or forums for similar issues, as it might be a more specific configuration issue related to your system setup. This comment was generated by Glime. |
Beta Was this translation helpful? Give feedback.
-
Looks like the error was from within the DMS container? The path obviously doesn't exist inside there as it's mapped to It's good that the AI bot was able to assist you here, but you didn't say what particular instruction helped? Presumably it was running the DMS I don't think you'd have any permission issues, unless it was related to your filesystem or how you ran Docker that prevented DMS from creating/modifying the file contents. Normally it's a non-issue as it runs as EDIT: Oh, just saw the issue with your picture and how you created the user. Yeah sorry about that, it's an old approach before the |
Beta Was this translation helpful? Give feedback.
Please note that this response was created using generative AI, leveraging previously available information from the repository. This information may be helpful. However, it is our strong recommendation that you carefully consider the information before blindly applying it.
It seems like you are encountering a common issue where the Docker container does not have the correct permissions or cannot find the specified volume path for the
postfix-accounts.cf
file. Here are a few steps and checks to resolve this issue:Permissions and Path Verification: Ensure that the Docker daemon has the necessary permissions to access and write to
/mnt/docker/mailserver/config/
. You can do this by setti…