Skip to content

Modified letsencrypt support to add domain name checking in addition to#1509

Merged
erik-wramner merged 1 commit intodocker-mailserver:masterfrom
neuralp:master
May 15, 2020
Merged

Modified letsencrypt support to add domain name checking in addition to#1509
erik-wramner merged 1 commit intodocker-mailserver:masterfrom
neuralp:master

Conversation

@neuralp
Copy link
Copy Markdown
Contributor

@neuralp neuralp commented May 12, 2020

hostname checking. Added necessary tests and renamed original manual
ssl test to a name that supports adding the other SSL tests.

Reference to issue #1274

@erik-wramner
Copy link
Copy Markdown
Contributor

There are changes not only for letsencrypt but also for the other alternatives. Are there real changes there, or is it only indentation? If there are real changes I need to review more carefully.

There are some places where the if and fi are not aligned, probably you have mixed tabs and spaces. Can you fix that, please? I know that the script is full of indentation problems as is, but at least we can make sure the new parts are aligned.

Copy link
Copy Markdown
Contributor

@youtous youtous left a comment

Choose a reason for hiding this comment

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

Thank for the PR!

I've added some suggestion which could improve tests and error handling, some are just improvement seen the previous tests didn't used the suggested things.

I'm not sure how we should handle errors but it seems safer to me to use early return in case of error.

Comment thread test/mail_ssl_letsencrypt.bats Outdated
Comment thread test/mail_ssl_letsencrypt.bats Outdated
Comment thread test/mail_ssl_letsencrypt.bats Outdated
Comment thread target/start-mailserver.sh
Comment thread target/start-mailserver.sh
Comment thread target/start-mailserver.sh
@neuralp
Copy link
Copy Markdown
Contributor Author

neuralp commented May 13, 2020

There are changes not only for letsencrypt but also for the other alternatives. Are there real changes there, or is it only indentation? If there are real changes I need to review more carefully.

There are so(me places where the if and fi are not aligned, probably you have mixed tabs and spaces. Can you fix that, please? I know that the script is full of indentation problems as is, but at least we can make sure the new parts are aligned.

Since I was working on the SSL function, I figured that I would attempt to fix the indentation since it was all over the place. I'll revisit this for the function and make sure that all of the tabs get converted to spaces. Apparently my editor didn't read the .editorconfig.

hostname checking.  Added necessary tests and renamed original manual
ssl test to a name that supports adding the other SSL tests.
@neuralp
Copy link
Copy Markdown
Contributor Author

neuralp commented May 15, 2020

Your suggestions have been taken into account and the PR has been modified to include these suggestions. Please review at your earliest convenience.

@erik-wramner erik-wramner merged commit f19fb9a into docker-mailserver:master May 15, 2020
@erik-wramner
Copy link
Copy Markdown
Contributor

Looks good, thanks!

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.

3 participants