thornomad/dt-s3-backup — Issue #11: Email incompatible with SELinux
Author: markruys
Created: 2011-11-16 09:47:36+00:00
State: open

If SELinux is enforced, the mailx program has no access to the log files and you'll receive empty mails. To fix it apply:

448c444
< cat ${LOGFILE} | ${MAIL} -s """${EMAIL_SUBJECT}""" $EMAIL_FROM ${EMAIL_TO}
---
> ${MAIL} -s """${EMAIL_SUBJECT}""" $EMAIL_FROM ${EMAIL_TO} < ${LOGFILE}