#1  
Old 29th June 2007, 10:15
AlArenal AlArenal is offline
Senior Member
 
Join Date: Feb 2007
Location: Germany
Posts: 104
Thanks: 1
Thanked 5 Times in 5 Posts
Default mail.log rotation

I'm sorry for crossposting, but I need a solution to a problem induced by ISPConfig.

I'm using Debian Etch with ISPC and Postfix on which by default the mail logs are rotated by syslog's cronjob around 06:30 every morning. Problem is, that at 23:00 an ISPC cronjob starts mail_logs.php which does something to mail.log (gather statistics and stuff), copying it from here to there, starting a new one, ... pretty weird and not really documented stuff.

Question:
Can't you use something more spohisticated, leaving the original log files as they are, so ISPC's cron job does not interfer with other cron jobs?

In the meantime:
Is mail_logs.php something so cool I wouldn't want to live without it running every night or may I just throw it out of my crontab?

Thx
Reply With Quote
Sponsored Links
  #2  
Old 30th June 2007, 15:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by AlArenal
In the meantime:
Is mail_logs.php something so cool I wouldn't want to live without it running every night or may I just throw it out of my crontab?
You can remove it from your crontab if you don't care about email traffic statistics in ISPConfig.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 1st July 2007, 16:52
AlArenal AlArenal is offline
Senior Member
 
Join Date: Feb 2007
Location: Germany
Posts: 104
Thanks: 1
Thanked 5 Times in 5 Posts
Default

That's cool, thank you!

BTW, do you plan to redesign this part in ISPConfig 3?
Reply With Quote
  #4  
Old 2nd July 2007, 09:46
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,177
Thanks: 829
Thanked 5,414 Times in 4,257 Posts
Default

I never seen your problem on any other installation, so I guess it must have something to do that cronjobs on your server collide. Please try to run the conjobs at another time so they dont collide.

Quote:
BTW, do you plan to redesign this part in ISPConfig 3?
ISPconfig 3 has a new virtual mail system.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 2nd July 2007, 09:53
Morons Morons is offline
Senior Member
 
Join Date: Aug 2006
Posts: 189
Thanks: 8
Thanked 15 Times in 7 Posts
Cool Traffic Statistics

Quote:
Originally Posted by falko
You can remove it from your crontab if you don't care about email traffic statistics in ISPConfig.
What traffic statistics, how do I get that statistics you speak about?
Reply With Quote
  #6  
Old 2nd July 2007, 10:09
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,177
Thanks: 829
Thanked 5,414 Times in 4,257 Posts
Default

Quote:
Originally Posted by Morons
What traffic statistics, how do I get that statistics you speak about?
The mail traffic statistics are on the statistics tab of the website in ISPConfig like all other traffic stats
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 2nd July 2007, 10:27
Morons Morons is offline
Senior Member
 
Join Date: Aug 2006
Posts: 189
Thanks: 8
Thanked 15 Times in 7 Posts
Thumbs down

Quote:
Originally Posted by till
The mail traffic statistics are on the statistics tab of the website in ISPConfig like all other traffic stats
That statistics for mail is in any case totally not functioning and soe time show zero value, the reason is that ISP rotate the logfiles at mindnite, causing syslog sometime NOT to work at all till the next day 06:23! when syslog can restart it. I saw these gaps in logfiles as I analyse them with some scripts but found them unreliable and full of gaps! Thus far I could not detect the villan! Gotcha!
Reply With Quote
  #8  
Old 9th August 2007, 12:16
Anwe Anwe is offline
Junior Member
 
Join Date: Aug 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Would just like to add...

We are also experiencing this problem. Each day the mail.log gets rotated at 23:59 by ISPConfig and then again by logrotate at 06:25. We're using Debian Etch, Postfix (from etch) and ISPConfig 2.2.13.

Is there a simple way to modify the script to work on a temporary copy? I would rather not deactivate the traffic statistics, customers would probably complain.

Also the mail_logs.php script won't compress old logs, this seems a bit wasteful. I noticed my maillogs for this machine are above 5 GB since about may I do monitor so i would've caught this before it became a problem, but i tend to assume logs are rotated correctly.

Kind regards
Andreas Wettergren
Reply With Quote
  #9  
Old 10th August 2007, 16:34
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

I've added this to our bugtracker.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 23rd August 2007, 12:07
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,177
Thanks: 829
Thanked 5,414 Times in 4,257 Posts
 
Default

Quote:
Is there a simple way to modify the script to work on a temporary copy? I would rather not deactivate the traffic statistics, customers would probably complain.
I checked the mail logs script. ISPConfig works already on a temporary copy and not on the original mail logfile.

Quote:
Also the mail_logs.php script won't compress old logs, this seems a bit wasteful. I noticed my maillogs for this machine are above 5 GB since about may I do monitor so i would've caught this before it became a problem, but i tend to assume logs are rotated correctly.
ISPConfig does not rotate logs, its just analyzes a temporary copy. You should check your log rotate settings to ensure that the mail log is compressed.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
log fie rotation hans2512 Installation/Configuration 1 3rd April 2007 11:29
log files, rotation and emailing them hairydog2 General 65 11th October 2006 13:18
Accesslog daily rotation... Ben Developers' Forum 2 1st August 2006 10:58
mail.log is cut arnaud Installation/Configuration 1 6th July 2006 11:58
mail.log : admispconfig@localhost what is that? lyndros Installation/Configuration 1 29th June 2006 13:07


All times are GMT +2. The time now is 06:54.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.