1

Topic: Disable cron sending emails

==== Required information ====
- iRedMail version: 0.8.4 and 0.8.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Linux/BSD distribution name and version: centos 6
- Related log if you're reporting an issue:
====

Good Day

could someone please help me to disable cron from send emails

when ever a cron job runs it sends a email to postmaster@domain.com,

i have a cron job that runs every minute that mean's that every minute i get a email, this is really annoying

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Disable cron sending emails

Hello

You can change the output by adding at the end the task row 2>&1 > /dev/null

Only if you send mail and returns error.

3

Re: Disable cron sending emails

i dont want to do that

i want to prevent cron from ever sending emails to root

4

Re: Disable cron sending emails

but your solution does work

5

Re: Disable cron sending emails

add in first line:

MAILTO=""

never send email.

6

Re: Disable cron sending emails

If your command in cron job outputs something, cron will mail to the job owner (in your case, root user).