1

On a CentOS environment I am setting up, I have no need for email of any kind. I would like to simply disable postfix entirely, however this also disables logging from cron which I do need to have.

Is there, first, a method by which I can get cron logging to work without postfix, or second, limit postfix functionality such that only enough to support cron logging is enabled?

I've no experience with postfix, so I'm shooting in the dark here.

EDIT: I should specify, I need the cron job output (stdout,stderr) in a log file, not just the jobs that were run.

2
  • Which cron jobs are getting sent to you via email? I'd modify the cron job's themselves so that they properly write their logs out instead. The feature that cron sends emails with the results is a catchall for poorly written jobs that do not deal with their own output. You can also do this as described in this AU Q&A: askubuntu.com/questions/500749/….
    – slm
    Commented Jul 17, 2015 at 7:22
  • I was really hoping to not have to modify the scripts or the crontabs, as I know I can add logging to the scripts or output redirection from the jobs in the crontab. I figured that since cron was logging output already, and able to mail it locally, that I could get the same functionality through syslog. However, I have not been able to get that to actually work.
    – GROND
    Commented Jul 17, 2015 at 11:54

1 Answer 1

-1

Why do you want remove your system MTA? This only give you problems, many apps require MTA for right working.

I recomend you don't do that. In addition, the charge on the system is trivial if it don't have activity.

Regards,

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .