diff --git a/target/bin/fetch-aws-ses-mail b/target/bin/fetch-aws-ses-mail index 2ebdc3d8..4377634c 100644 --- a/target/bin/fetch-aws-ses-mail +++ b/target/bin/fetch-aws-ses-mail @@ -1,5 +1,9 @@ #!/bin/bash +if [ -z "$AWS_SES_KEY_ID" ] || [ -z "$AWS_SES_SECRET" ]; then + exit 0; # AWS mail fetching is not configured +fi + find /var/mail -maxdepth 1 -name '*.*' |while read -r domainPath; do domain=${domainPath##*/};