mailhog / MailHog

Web and API based SMTP testing
MIT License
14k stars 1.06k forks source link

Sending PDF attachment with 'none' logging driver hangs the mailhog container #391

Open kromaaa opened 2 years ago

kromaaa commented 2 years ago

docker-compose:

mailhog:
  image: mailhog/mailhog
  logging:
    driver: 'none'  # disable saving logs
  ports:
    - '8025:8025'

I'm confused and surprised to learn that doing this causes the mailhog container to hang when sending a PDF attachment. It took me a while to narrow it down to the logging driver specifically.

Originally posted by @natearn in https://github.com/mailhog/MailHog/issues/56#issuecomment-931603510

docker-compose version 1.29.2 Docker version 20.10.12 mailhog v1.0.1

jsdevtom commented 2 years ago

I have this problem too.

PietrzakJustyna commented 2 years ago

I noticed the same.

nip3o commented 1 year ago

We experienced this kind of problem even before we added logging to the config, so maybe this bug actually depends on something else, but setting logging like this is one way of making the bug appear.