What your config says is:
- if the alert has label typeofalert="statuspal", send it to "
x...@gmail.com" only (with the updated subject header)
(Notice that "continue: true" doesn't make any difference on the final alerting rule. If this rule matches, it would follow onto another rule if there were one, but it won't do the default action)
I don't see any problem, although I'd be inclined to simplify the template to
subject: '{{ if eq .Status "firing" }}DOWN{{ else }}UP{{end}}'
Look at the stdout/stderr output from alertmanager (maybe "journalctl -eu alertmanager" if you're running it under systemd). I think there's a debug mode tool
Trace the resolved E-mails - look at your E-mail logs, look at the logs on the receiver, check your spam folder etc.
You can also look at the counters which alertmanager itself creates (scrape localhost:9093/metrics to see them), to convince yourself that the resolved E-mails *are* being sent.