docker-mailserver/test
Brennan Kinney 40e2d88482
chore: Merge `helpers/sasl.sh` into `helpers/relay.sh` (#2605)
This helper was to support an earlier ENV for SASL auth support. When extracting logic into individual helpers, it was assumed this was separate from relay support, which it appears was not the case.

---

The `SASL_PASSWD` ENV is specified in tests but no longer used. There is no `external-domain.com` relay configured or tested against anywhere in the project.

The ENV was likely used in tests prior to improved relay support that allowed for adding more than a single set of relay credentials.

---

It likewise has no real relevance anywhere else outside of `relay.sh` as it's the only portion of code to operate with it.

It's only relevant for SASL auth as an SMTP client, not the SMTP server (`smtpd`) SASL support that is delegated to Dovecot. Functionality has been completely migrated into `relay.sh` as a result.

Documentation is poor for this ENV, it is unlikely in wide use? Should consider for removal.

---

The ENV has been dependent upon `RELAY_HOST` to actually enable postfix to use `/etc/postfix/sasl_passwd`, thus not likely relevant in existing setups?

---

Migrate `/etc/postfix/sasl_passwd` check from `tests.bats` as it belongs to relay tests.
2022-06-06 10:59:42 +12:00
..
bats@54e965fa9d Revert "check-for-changes: performance improvements + wait for settle (#2104)" 2021-08-28 19:16:34 -04:00
config firewall: replace `iptables` with `nftables` (#2505) 2022-04-05 15:13:59 +02:00
docker-openldap formatting files according to standard (#1619) 2020-09-24 14:54:21 +02:00
linting Remove unnecessary quotes from command substitutions (#2561) 2022-05-05 10:28:38 +02:00
test-files tests(chore): Adjust supported FQDNs in test certs + add wildcard and `acme.json` configs (#2284) 2021-11-03 20:25:25 +00:00
test_helper chore(housekeeping): Create `helpers/change-detection.sh` (#2610) 2022-06-05 11:59:54 +12:00
default_relay_host.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
dovecot_inet_protocol.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
helper-functions.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
mail_changedetector.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
mail_disabled_clamav_spamassassin.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
mail_dnsbl.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
mail_fail2ban.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
mail_fetchmail.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
mail_fetchmail_parallel.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
mail_hostname.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
mail_lmtp_ip.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
mail_pop3.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
mail_postfix_inet.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
mail_postscreen.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
mail_privacy.bats chore: Merge `helpers/sasl.sh` into `helpers/relay.sh` (#2605) 2022-06-06 10:59:42 +12:00
mail_quotas_disabled.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
mail_smtponly.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
mail_spam_bounced.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
mail_spam_junk_folder.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
mail_special_use_folders.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
mail_ssl_letsencrypt.bats feat: Support for Dovecot master accounts (#2535) 2022-05-08 00:28:32 +02:00
mail_ssl_manual.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
mail_time.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
mail_tls_dhparams.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
mail_undef_spam_subject.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
mail_with_imap.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
mail_with_ldap.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
mail_with_mdbox.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
mail_with_postgrey.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
mail_with_postgrey_disabled_by_default.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
mail_with_relays.bats chore: Merge `helpers/sasl.sh` into `helpers/relay.sh` (#2605) 2022-06-06 10:59:42 +12:00
mail_with_sdbox.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
no_container.bats setup.sh: docker_container first, then fall back to docker_image (#2134) 2021-09-06 10:13:12 +00:00
open_dkim.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
permit_docker.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
security_tls_cipherlists.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
sedfile.bats tests(fix): Adjust for local testing conditions (#2606) 2022-05-30 12:53:30 +12:00
test_helper.bats chore(housekeeping): Create `helpers/change-detection.sh` (#2610) 2022-06-05 11:59:54 +12:00
tests.bats chore: Merge `helpers/sasl.sh` into `helpers/relay.sh` (#2605) 2022-06-06 10:59:42 +12:00