Skip to content

Password creation fix#914

Merged
johansmitsnl merged 6 commits intodocker-mailserver:masterfrom
17Halbe:password
Apr 2, 2018
Merged

Password creation fix#914
johansmitsnl merged 6 commits intodocker-mailserver:masterfrom
17Halbe:password

Conversation

@17Halbe
Copy link
Copy Markdown
Contributor

@17Halbe 17Halbe commented Mar 20, 2018

closes #908

@17Halbe
Copy link
Copy Markdown
Contributor Author

17Halbe commented Mar 20, 2018

The same problem with the tests as on my side. They actually succeed rarely. I don't know why. There is no problem if I run the commands manually.

Comment thread test/tests.bats

./setup.sh -c mail alias del [email protected] [email protected]
run grep "[email protected]" ./config/postfix-virtual.cf
assert_failure
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these lines removed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for reviewing. I have no idea, I was working on too branches at the same time.
👍

@johansmitsnl
Copy link
Copy Markdown
Contributor

johansmitsnl commented Mar 21, 2018

Just to confirm, why is this file being removed? test/config/dovecot-lmtp/userdb

And why do the tests fail?

@akmet
Copy link
Copy Markdown
Contributor

akmet commented Mar 22, 2018

Think this file gets deleted by make clean. There was another PR by @17Halbe last week adding this file after it gets deleted accidentially by the mail summary PR..

@17Halbe
Copy link
Copy Markdown
Contributor Author

17Halbe commented Mar 22, 2018

Yepp I did, and I was wrong. TL;DR: It can be deleted.

The userdb got introduced here #461, became obsolete with #784 and @akmet wisely removed it in #901. I wasn't so wisely and thought it got accidentally deleted. My sincere apologies!

@17Halbe
Copy link
Copy Markdown
Contributor Author

17Halbe commented Mar 22, 2018

However I'm really not happy with those tests. They fail too frequently and I don't know why. Anyone got an idea?
Or shall I just leave them out? Though the creation of the password hash is never being tested and I would like to see that being tested.

@johansmitsnl
Copy link
Copy Markdown
Contributor

@17Halbe I restarted the job several times, do you know why it fails?

@17Halbe
Copy link
Copy Markdown
Contributor Author

17Halbe commented Apr 2, 2018

\o/

But it‘s a dirty fix. It sleeps for 30(!) seconds for either of those two tests. :/
I‘ll leave it like this. I could probably move at least the addmailuser command to the Makefile.
I plan on refactoring the tests anyway in the near future. What do you think?

@johansmitsnl
Copy link
Copy Markdown
Contributor

The sleep is needed indeed to allow the watcher to pickup the changed file.
Sounds good to me.

@johansmitsnl johansmitsnl merged commit 2e06228 into docker-mailserver:master Apr 2, 2018
johansmitsnl added a commit that referenced this pull request Apr 23, 2018
Release 6.0.0

* Implementation of multi-domain relay hosts (#922, #926)
  AWS_SES_HOST and AWS_SES_PORT are deprecated now.
  RELAY_HOST and RELAY_PORT are introduced to replace them.
* Password creation fix (#908, #914)
* Fixes 'duplicate log entry for /var/log/mail/mail.log' (#925, #927)
* fixed cleanup (mail_with_relays didn't get cleaned up) (#930)
* fix line breaks in postfix-summary mail error case (#936)
* Set default virus delete time (#932, #935)
  This defaults to 7 days
* Ensure that the account contains a @ (#923, #924)
* Introducing global filters. (#934)
* add missing env vars to docker-compose.yml (#937)
* set postmaster address to a sensible default (#938, #939,  #940)
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

Successfully merging this pull request may close these issues.

Password with spaces is stripped to first word

3 participants