/root/Maildir/new/ folder filling up with email/log files

4 posts / 0 new
Last post
#1 Sat, 01/17/2015 - 14:49
webterrain

/root/Maildir/new/ folder filling up with email/log files

For some reason I seem to be getting lots of email/log files being generated everyday which get stored in the /root/Maildir/new/ folder - this eventually takes up a lot of space on the server and can grind it to a halt if you dont remember to delete these files every so often.

I tried to attach a couple of examples of the files generated in txt format, but attachments are not working for me at the moment - anyway, they're mostly warnings about resource usage or suspicious activity: here's one extract from the files as an example:

Return-Path: root@jim1.jim1.com X-Original-To: root Delivered-To: root@jim1.jim1.com Received: by jim1.jim1.com (Postfix, from userid 0) id 997B84094D; Sat, 25 Jan 2014 04:00:07 -0500 (EST) From: root@jim1.jim1.com To: root@jim1.jim1.com Subject: lfd on jim1.jim1.com: Excessive resource usage: apache (16793 (Parent PID:16789)) Message-Id: 20140125090007.997B84094D@jim1.jim1.com Date: Sat, 25 Jan 2014 04:00:07 -0500 (EST)

Time: Sat Jan 25 04:00:07 2014 -0500 Account: apache Resource: Process Time Exceeded: 242226 > 1800 (seconds) Executable: /usr/sbin/httpd Command Line: /usr/sbin/httpd PID: 16793 (Parent PID:16789) Killed: No

Anyone know how to stop these from being auto generated so they dont clog up my server?

Sat, 01/17/2015 - 20:00
andreychek

Howdy,

My suggestion would be to setup an email alias for root, that sends all email destined for root to another address.

You can set that up by editing /etc/aliases, and setting the "root" line to point to your preferred email address. Then, save that file, then run the command "newaliases".

-Eric

Tue, 01/20/2015 - 12:11
webterrain

thank you

Thu, 09/03/2015 - 20:48 (Reply to #3)
mesteve

You may try to reconsider your cron job scheduling (system->scheduled cron jobs), some of them may run too often.