Mail sent with curl fails DKIM
Whilst testing a bash script I'm writing that sends notification emails via MXRoute SMTP using just
curl, I noticed that DKIM is failing. I'm receiving the email with no issues, and SPF is passing.
"Regular" emails aren't failing.
The only thing I've noticed in the headers is:
X-ACL-Warn: Adding Message-ID header because it is missing!
Am I overlooking anything?
smtpBody="Testing email from script" curl --url smtps://$smtpHost:$smtpPort --ssl-reqd \ --mail-from $fromAddress \ --mail-rcpt $toAddress \ --user $smtpUser:$smtpPass \ -H "Subject: $smtpSubject" \ -H "From: $fromName <$fromAddress>" -H "To: $toAddress" \ -F "=$smtpBody"