Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker not supporting option `--mail-directory' #452

Open
sschuetz2bit opened this issue Mar 1, 2023 · 2 comments
Open

Docker not supporting option `--mail-directory' #452

sschuetz2bit opened this issue Mar 1, 2023 · 2 comments

Comments

@sschuetz2bit
Copy link

When using maildev with the latest docker image i get : Error: unknown option `--mail-directory'

@bjoern-hempel
Copy link

bjoern-hempel commented Apr 10, 2023

In Docker Compose, this parameter works absolutely fine. Here is an example:

version: "3.8"

services:
  maildev:
    image: "maildev/maildev:latest"
    container_name: "maildev"
    hostname: "maildev"
    command: ["--mail-directory=/maildir"]
    volumes:
      - maildev-data:/maildir
    restart: always
    networks:
      - network-internal
    depends_on:
      - php

volumes:
  maildev-data:
    name: "maildev.data"

Be sure to change the directory permissions to the user node afterwards:

docker compose exec -u root maildev sh

Within the container:

chown -R node:node maildir/
chmod -R 775 maildir/

@sschuetz2bit
Copy link
Author

sschuetz2bit commented Apr 10, 2023

We are using it like this:
services:
maildev:
image: "maildev/maildev:latest"
command: [ "/usr/src/app/bin/maildev", "--web-user", "xx", "--web-pass", "xxx", "--web", "80", "--smtp", "25", "--outgoing-port", "465", "--outgoing-host", "xx", "--outgoing-user", "xx", "--outgoing-pass", "xx", "--outgoing-secure", "--incoming-user", "xx", "--incoming-pass", "xx", "--auto-relay", "--auto-relay-rules", "/etc/mailrelay.json" ]

if im now adding --mail-directory=/maildir

i get : Error: unknown option `--mail-directory'

maybe its related to : #420

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants