docker-postfix/scripts
Sébastien De Marchi bf84322ca6 Fix sasldb with SMTPD_SASL_USERS env variable
We encountered an issue where the script common-run.sh would fail if the SMTPD_SASL_USERS environment variable was defined. The failure occurred immediately after displaying the "Enable smtpd sasl auth" message, preventing the container from starting correctly.

The root cause was traced to a conditional check for the existence of the /etc/sasl2/sasldb2 file. When the file did not exist, the subsequent `chown` operation was skipped as intended, but the script would still fail due to an undefined behavior in the shell context.

The addition of a debug message "Sasldb configured" before the closing `fi` statement has resolved the issue. This change appears to stabilize the script execution, allowing the container to start as expected.

While the underlying cause is not fully understood and warrants further investigation, this commit serves as a temporary workaround to ensure functionality in environments where SMTPD_SASL_USERS is set.
2024-01-19 10:36:33 +01:00
..
common-run.sh Fix sasldb with SMTPD_SASL_USERS env variable 2024-01-19 10:36:33 +01:00
common.sh Fix: Try fixing the #147 issue and conver it by unit tests 2023-10-29 16:24:22 +01:00
cron.sh Fix for #147: Update daemon_directory based on running distribution 2023-10-29 23:42:37 +01:00
email-anonymizer.py Upd: Add new integration and unit tests 2022-04-10 17:52:12 +02:00
email-anonymizer.sh Add email anonymizer option in case is needed for GDPR 2021-12-07 13:43:13 +01:00
healthcheck.sh Fix for #174: Incrase healthcheck timeout 2024-01-09 17:00:04 +01:00
opendkim.sh Fix for #174: Try to refactor healthcheck 2024-01-09 10:59:04 +01:00
postfix.sh Fix: Remove unneccessary dependendancy on external logrotate image 2023-10-27 09:38:54 +02:00
run.sh Fix for #151 2023-11-01 14:33:44 +01:00