We recently did OS updates on our node that runs OnDemand. Now, the “email on session start” option doesn’t send an email. We did identify an issue with postfix not being configured correctly but that has been solved. Using this command from another thread: echo “TEST” | mail -s TEST brad.traver
I verified that emails are working. However, whenever I start a job with the “send email on session start” box checked, no email is sent. Nothing shows up in the postfix logs so it seems like OnDemand isn’t even attempting to send an email. I’m not sure what to check next. Thanks!
I don’t think so - I think it’s specific to that job.
But you don’t need to add it to the submit script because when you check that checkbox for email on starting the system passes the CLI flag to sbatch when it submits the job. You can check your /var/log/ondemand-nginx/$USER/error.log for execve commands to confirm.