I have configured CIS benchmarking, and the setup script sends an email from the build machine as the image is baking which works fine (sSMTP is configured for the purpose via Gmail).
However, by the time I hydrate the AWS AMI, I log in and attempt to send a mail:
$ echo "$(date +%Y-%m-%d::%H:%M): Email test" | mail -s "hello" [email protected]
mail: cannot send message: Process exited with a non-zero status
$ echo $?
36
Obviously, there is something further down in my bench marking script which is causing the problem, but I cannot seem to find anywhere what error 36 is, which would help me diagnose the problem. I double checked the firewall and outbound is working fine on port 587.
0 Answers