Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-06-2012, 04:36 PM   #1
Registered: Mar 2011
Posts: 58

Rep: Reputation: 0
Unhappy Emptying the Default Email Account


I am using centos 5 server with WHM/CPANEL installed. I am receiving lot's of cronjob command reports on default mail adress. I need a cronjob for Emptying the Default Email Account every 30 day.

I found this:

echo > /home/user/mail/

I tried it but it did not work. I need a command to clear default mail.

Your help appreciated!!!
Old 03-06-2012, 05:08 PM   #2
Senior Member
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi osmy

How are your emails defined ?
Is it Sendmail's Inbox or Postfix Maildir or something else ? (where are your email messages stored)

Where do you keep the settings for emails,
I am receiving lot's of cronjob command reports on default mail adress....
doesn't really help to find a solution.

What is your default email address (mask your real address if you post it)?
Root , like "" ?
or is it domain default (like: "" ) if you're serving multiple domains ?

Last edited by lithos; 03-06-2012 at 05:09 PM.
Old 03-10-2012, 12:35 PM   #3
Registered: Mar 2011
Posts: 58

Original Poster
Rep: Reputation: 0
It's called defaul e-mail adress on cpanel
Old 03-10-2012, 08:35 PM   #4
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,871
Blog Entries: 18

Rep: Reputation: 3340Reputation: 3340Reputation: 3340Reputation: 3340Reputation: 3340Reputation: 3340Reputation: 3340Reputation: 3340Reputation: 3340Reputation: 3340Reputation: 3340
What is generating the mails, the cron job or cpanel? If it's cron, you could point your jobs' output to /dev/null once you are certain they are working correctly, unless you must monitor the emails. This link has more:

If it's cpanel, let us know; I have some contacts who know it in and out and I'm sure there are folks here who know cpanel very well.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Evolution email: How to remove an email account PaddyJoe Linux - Software 3 08-28-2011 10:15 PM
Postfix: forward all account email within domain to another email account? 18Googol2 Linux - Software 3 03-04-2011 02:10 PM
cyrus email account linux account nobu Linux - Enterprise 0 10-31-2005 04:16 AM
using multiple email programs for one email account kshaffer Linux - Software 1 01-07-2005 06:00 PM
Creating A Second Email Address For Email Account On Sendmail treedstang Linux - Software 1 04-27-2004 11:31 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:55 PM.

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