Quote:
Originally Posted by cubittech Furthermore I have now spotted the job in crontab (not sure why I missed it frst time!)... */10 * * * * /opt/zimbra/libexec/zmdisklog
I still don't understand why I don't get the actual emails. |
Thanks cubittech. I had recently upgraded to RHEL 5.4. I tried the sudo fix and it solved the problem for me.
The reason the actual emails do not come through for you may have to do with how cron is sending them. Since the job is run as the user zimbra. The cron daemon is invoking
sendmail -t to submit the emails to zimbra without specifying a domain. New versions of sendmail use the “submit.cf” configuration file when it is invoked as a mail submission program (MSP) with the “-t” switch. With the default submit.cf, email addresses are rewritten to go to the local domain e.g.
zimbra@localhost.localdomain. It also bypasses sendmail's alias file.
For it to reach a Zimbra account, it must be sent to
zimbra@mydomain.com, where mydomain.com is a Zimbra hosted domain and zimbra is an account or alias in the domain.
I noticed this problem when email from logwatch sent to root stopped going to an account in Zimbra somewhere around RHEL4. You might be able to fix it with an explicit
MAILTO in the crontab file. I used a more global fix to get the logwatch emails that involved changing submit.cf. I can post the changes for submit.cf if you want to try that.