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
MAILDEV_AUTO_RELAY environment variable ignored #327
Comments
I rebuilt the docker image available from registry.docker.com and added
And the relay with rules works. It appears that using |
I had the same issue, you can just append configuration to the
|
In my case, I can't modify the entrypoint when pulling from the docker registry and deploying on a container platform. I had to rebuild the image and push a custom image. |
@Maxwell2022, I see you're specifying the entrypoint. Do you or @peterfarrell think that the Also @peterfarrell, should we adjust the documentation to say that the environment variable for |
@djfarrelly IIRC, tried setting the value of This does not work -- it ignores the rules.json file entirely and does not rely:
This does not work -- it tries to rely to an email address named
This works when you pass
|
@djfarrelly I think it may be with how boolean args in env vars are being parsed as mentioned in this comment: |
Just stumbled across this. Any updates? |
@reischlfranz None |
When using MAILDEV_AUTO_RELAY docker var, it's set to an empty string (I think it's not the case when using "--auto-relay". And the code (in index.js file) check if the var is a string or not, but doesn't check is the string is empty. Adding this check can fix I think. |
For me it works by by commenting out command: ["--auto-relay", "--auto-relay-rules=<path-to-rules.json>"] Be careful though, the rule file inside the docs of this repository is not valid, I made a PR to fix that issue. |
But if in order to get working auto-relay is that /data directory must be empty, when I need to restart the service for any reason, all previous /data/*.eml files will be deleted, so the email history will be lost. |
I have
MAILDEV_AUTO_RELAY
set to no value using the docker beta 3 and auto relay is not enabled even though I have rules set. How do I enable auto relay without specifying an email address?The text was updated successfully, but these errors were encountered: