Fix errors due to trying to send emails too early

when clamav has not fully come up yet
This commit is contained in:
Martin Schulze 2020-10-19 23:34:39 +02:00
parent 7ae4a73d3b
commit 9471ce7346
1 changed files with 3 additions and 0 deletions

View File

@ -49,6 +49,9 @@ setup_file() {
wait_for_smtp_port_in_container mail
# wait for clamav to be fully setup or we will get errors on the log
repeat_in_container_until_success_or_timeout 60 mail test -e /var/run/clamav/clamd.ctl
# sending test mails
docker exec mail /bin/sh -c "nc 0.0.0.0 25 < /tmp/docker-mailserver-test/email-templates/amavis-spam.txt"
docker exec mail /bin/sh -c "nc 0.0.0.0 25 < /tmp/docker-mailserver-test/email-templates/amavis-virus.txt"