Context
When trying to configure the server, the docker container started but no process were running. When checking the logs with docker logs, I spotted this:
#
#
# docker-mailserver
#
#
Initializing setup
Checking configuration
Configuring mail server
Error: Unless using LDAP, you need at least 1 email account to start the server.
Error: Please fix your configuration. Exiting...
I was sure that I ran the setup.sh as described, so I checked the addmailuser script, and I realized that it expected an account in the form "user@domain", while I just provided "user" after reading the README file.
Expected Behavior
The creation of an email account without a proper domain should be rejected with an error message.
Actual Behavior
The creation succeeded, then the container start but without any service running.
Possible Fix
PR incoming :-)
Steps to Reproduce
1 Follow the README, but omit to add the domain when creating an account:
./setup.sh email add foobar password
2. docker-compose -d up mail
Context
When trying to configure the server, the docker container started but no process were running. When checking the logs with docker logs, I spotted this:
I was sure that I ran the setup.sh as described, so I checked the addmailuser script, and I realized that it expected an account in the form "user@domain", while I just provided "user" after reading the README file.
Expected Behavior
The creation of an email account without a proper domain should be rejected with an error message.
Actual Behavior
The creation succeeded, then the container start but without any service running.
Possible Fix
PR incoming :-)
Steps to Reproduce
1 Follow the README, but omit to add the domain when creating an account:
./setup.sh email add foobar password
2. docker-compose -d up mail