Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-23-2005, 08:29 PM   #1
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330

Rep: Reputation: 30
error: mail command failed for /var/log/squidguard/squidGuard.log.6

Dear all,

I have a cron job to rotate my squidguard.log and mail it to my e-mail address. But seems like there is a problem in the mailing procedure. Also I set rotate 5 but the rotation of squigguard reached squidguard.log.6

Below is my configuration for /etc/logrotate.d/squidguard:

/var/log/squidguard/squidGuard.log {
rotate 5
# compress
# notifempty

And the error message when I did a "# /usr/sbin/logrotate -f -s /var/lib/logrotate.status /etc/logrotate.conf
gave me:
error: mail command failed for /var/log/squidguard/squidGuard.log.6

I am not sure why it rotates till squidguard.log.6 because I thought if I set "rotate 5" it should rotate the log files to no5.

Please help me with this,
thanks a lot
Old 01-22-2009, 02:24 PM   #2
LQ Newbie
Registered: Aug 2006
Posts: 2

Rep: Reputation: 0
Logrotate required packages

I just stumbled upon a similar problem. It looks like logrotate requires to external packages for the mail and compress commands. These are mailx and ncompress.


yum install mailx ncompress

fixes the problem

Dobromir Velev


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
Squidguard Error zahra79 Linux - Networking 0 05-08-2005 05:34 AM
Error log in /var/log/messages raymond117 Linux - Security 9 01-26-2005 08:17 AM
error: stat of /var/log/ppp/connect-errors failed: No such file or directory Niceman2005 Linux - Newbie 0 01-20-2005 01:29 AM
/var/log/messages shows failed login attempts... plan9 Linux - Security 8 08-08-2004 01:52 PM
Permission denied @ /var/log/mail Thorsten Linux - Software 1 11-03-2003 07:44 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:23 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
Open Source Consulting | Domain Registration