LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-10-2018, 06:31 AM   #1
cwc
Member
 
Registered: Nov 2004
Location: Tri-Cities, WA
Distribution: Gentoo, Ubuntu, Mint,Fedora
Posts: 71

Rep: Reputation: 16
debian9 box's not getting email notifications at /var/mail/username


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:
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
 
Old 05-12-2018, 07:50 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
How do I enable this on our debian9 boxes?
You need to configure and enable a maiserver.
According to this, the default MTA for debian is exim, so if you want to use mail, you need to configure and then start the exim4 service.
FYI, if you want, you can replace exim with postfix, if you are more familiar with it.

Regards
 
Old 05-23-2018, 04:39 PM   #3
cwc
Member
 
Registered: Nov 2004
Location: Tri-Cities, WA
Distribution: Gentoo, Ubuntu, Mint,Fedora
Posts: 71

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by bathory View Post
You need to configure and enable a maiserver.
According to this, the default MTA for debian is exim, so if you want to use mail, you need to configure and then start the exim4 service.
FYI, if you want, you can replace exim with postfix, if you are more familiar with it.

Regards
thank you!
 
Old 05-23-2018, 06:41 PM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Exim is usually enabled by default on Debian. But success with cron jobs is not reported by email, only errors.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I tell exim to deliver to /home/username/mail/domain/email ? abefroman Linux - Software 1 02-24-2010 02:55 PM
why email INBOX directory is in /var/spool/mail instead of /home/username csjonathan Linux - General 4 11-06-2008 01:14 PM
sendmail error Fetching mail could not lock /var/spool/mail/username sukhdev50 Linux - Networking 0 05-04-2005 03:41 AM
/var/spool/mail/username does not exist stimpsonjcat Debian 3 04-25-2005 12:36 PM
mail in /var/spool/mail/USERNAME blizunt7 Linux - General 6 11-18-2004 01:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration