crontab does not send email notices to /var/mailuser ?

Kernels & Hardware, configuring network, installing services

crontab does not send email notices to /var/mailuser ?

Postby 1885 » 2018-05-08 19:38

We are running an array of crontab processes in an experimatal lab (school)

I do not understand why we are not getting email notifications when a crontab's errors or are successful.

I have a redhat server running and by default I get a notification when a crontab is processed at /var/mail/username

How do I enable this on our debian9 boxes?

Example out on Redhat box:

Code: Select all
Message-Id: <20180508141503.73205C0003A8C@t********.org>
Date: Tue,  8 May 2018 07:15:03 -0700 (PDT)

>From https://github.com/t****/********
   091ea56..947efc5  master     -> origin/master
Updating 091ea56..947efc5
Fast-forward
 documentation/linux/command-line/pingsweep-arp.txt | 3 +++
 1 file changed, 3 insertions(+)
 create mode 100644 documentation/linux/command-line/pingsweep-arp.txt





1885
 
Posts: 111
Joined: 2014-06-05 04:23

Re: crontab does not send email notices to /var/mailuser ?

Postby cronoik » 2018-05-11 19:09

Can you please post your crontab?
Have a nice day!
cronoik
 
Posts: 275
Joined: 2015-05-20 21:17

Re: crontab does not send email notices to /var/mailuser ?

Postby Dai_trying » 2018-05-12 06:35

I use postfix for this and set it up to be local only, this way I receive local mail when cron returns output. Of course if you already have mail transport set up it could be a different problem.
Dai_trying
 
Posts: 548
Joined: 2016-01-07 12:25


Return to System configuration

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable