haraka / haraka-config

Haraka config file loader and parser
https://www.npmjs.com/package/haraka-config
MIT License
10 stars 13 forks source link

smtp.json / smtp.yaml are not loaded properly #69

Closed felixauringer closed 6 months ago

felixauringer commented 1 year ago

Describe the bug

Haraka does not load smtp.yaml or smtp.json if smtp.ini does not exist.

Expected behavior

Haraka should either crash although smtp.json or smtp.yaml is present or it should load one of them.

Observed behavior

The existence of smtp.json or smtp.yaml prevents Haraka from crashing. See this check.

Steps To Reproduce

System Info:

Haraka Haraka.js — Version: 3.0.1
Node v19.7.0
OS Linux 060427c22453 6.2.8-arch1-1 haraka/Haraka#1 SMP PREEMPT_DYNAMIC Wed, 22 Mar 2023 22:52:35 +0000 x86_64 Linux
openssl OpenSSL 3.0.8 7 Feb 2023 (Library: OpenSSL 3.0.8 7 Feb 2023)

Additional context

Haraka runs inside an Alpine Docker container with Alpine version 3.17.2.