Aller au contenu

Troubleshooting Alertmanager#

Mails notifications KO#

AK/SK verification#

Compare between Alertmanager configuration and Vault:

  • auth_username and access_key
  • smarthost and host
  • from and contact_email
  • secret_smtp and secret_key

Compare with these commands:

kubectl -n monitoring exec -it caascad-alertmanager-0 -c alertmanager -- cat /etc/alertmanager/alertmanager.yml | grep -A 7 email_configs
kubectl -n monitoring exec -it caascad-alertmanager-0 -c alertmanager -- cat /etc/secrets/smtp/secret_smtp
vs

VAULT_ADDR=https://vault.infra-prd.caascad.com vault read secret/aws/smtp

Note

Staging environments do not send e-mails. In those environments, there is no email configuration.

AWS blacklisted destination list#

How to use AWS CLI

Check if destination address is blacklisted:

AWS_PROFILE=caascad-prod aws sesv2 list-suppressed-destinations --region eu-west-3 
To remove address from this list:
AWS_PROFILE=caascad-prod aws sesv2 delete-suppressed-destination aws sesv2 delete-suppressed-destination --region eu-west-3 --email-address <value>