[qmailtoaster] qmail logfile archiving

2010-10-12 Thread PJF
Hi,

I need to keep at least 1 month of all mail logs, everything that logs via:

/var/qmail/supervise/*/log

I'm hoping I can use something like logrotate to rotate out logfiles, or
have the same functionality of rotated out logs...

Looking at the log/run files I see it reads some settings for multilog from:

LOGSIZE=`cat /var/qmail/control/logsize`
LOGCOUNT=`cat /var/qmail/control/logcount`

Should I just up the logsize? I've got plenty of disk space.

I'm going over the miltilog man page and it is not obvious to me what the
most efficient way of accomplishing this is :)

Any suggestions or a point in the right direction would be appreciated.

Thanks in advance.

--
PJF


-
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
Vickers Consulting Group offers Qmailtoaster support and installations.
  If you need professional help with your setup, contact them today!
-
 Please visit qmailtoaster.com for the latest news, updates, and packages.
 
  To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
 For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com




RE: [qmailtoaster] qmail logfile archiving

2010-10-12 Thread PJF
Martin,

Actually - that will work just fine, thanks for the clarification.

I've upped it to 100MB and will have it clean them out once a month.

Thanks!

--
PJF

 -Original Message-
 From: Martin Waschbüsch [mailto:mar...@waschbuesch.de]
 Sent: Tuesday, October 12, 2010 10:01 AM
 To: qmailtoaster-list@qmailtoaster.com
 Subject: Re: [qmailtoaster] qmail logfile archiving
 
 Hi there,
 
 the two values are just variables used to do this:
 
 The s command is used to specify the maximum size of each file before
 it gets renamed, and the n command to specify the maximum number of
 old log files which may exist before they are deleted. For example...
 
 multilog t n16 s1048576 ./main
 
 This allows each file to grow up to 1MB (1048576 bytes) and allows up
 to 16 files to exist before the oldest files are deleted.
 
 So, the way you currently have it, you could have 'logcount' files of a
 'logsize' file size before overwriting old log data,
 
 Your main problem is going to be that neither of these values has
 anything whatsoever to do with timestamps - how far your log reaches
 into the past totally depends on the amount of data logged. You could
 try setting logcount to something *really* large, though and then
 periodically delete all log files older than the desired amount of time
 logged...
 
 like: find /path/to/files* -mtime +30 -delete
 
 Martin
 
 --
 Martin Waschbüsch
 IT-Dienstleistungen
 Lautensackstr. 16
 80687 München
 
 Telefon: +49 89 57005708
 Fax: +49 89 57868023
 Mobil: +49 170 2189794
 mar...@waschbuesch.de
 http://martin.waschbuesch.de
 
 Am 12.10.2010 um 18:44 schrieb PJF:
 
  Hi,
 
  I need to keep at least 1 month of all mail logs, everything that
 logs via:
 
  /var/qmail/supervise/*/log
 
  I'm hoping I can use something like logrotate to rotate out logfiles,
 or
  have the same functionality of rotated out logs...
 
  Looking at the log/run files I see it reads some settings for
 multilog from:
 
  LOGSIZE=`cat /var/qmail/control/logsize`
  LOGCOUNT=`cat /var/qmail/control/logcount`
 
  Should I just up the logsize? I've got plenty of disk space.
 
  I'm going over the miltilog man page and it is not obvious to me what
 the
  most efficient way of accomplishing this is :)
 
  Any suggestions or a point in the right direction would be
 appreciated.
 
  Thanks in advance.
 
  --
  PJF
 
 
  -
 
  Qmailtoaster is sponsored by Vickers Consulting Group
 (www.vickersconsulting.com)
 Vickers Consulting Group offers Qmailtoaster support and
 installations.
   If you need professional help with your setup, contact them
 today!
  -
 
  Please visit qmailtoaster.com for the latest news, updates, and
 packages.
 
   To unsubscribe, e-mail: qmailtoaster-list-
 unsubscr...@qmailtoaster.com
  For additional commands, e-mail: qmailtoaster-list-
 h...@qmailtoaster.com
 
 
 
 
 ---
 --
 Qmailtoaster is sponsored by Vickers Consulting Group
 (www.vickersconsulting.com)
 Vickers Consulting Group offers Qmailtoaster support and
 installations.
   If you need professional help with your setup, contact them
 today!
 ---
 --
  Please visit qmailtoaster.com for the latest news, updates, and
 packages.
 
   To unsubscribe, e-mail: qmailtoaster-list-
 unsubscr...@qmailtoaster.com
  For additional commands, e-mail: qmailtoaster-list-
 h...@qmailtoaster.com
 



-
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
Vickers Consulting Group offers Qmailtoaster support and installations.
  If you need professional help with your setup, contact them today!
-
 Please visit qmailtoaster.com for the latest news, updates, and packages.

  To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
 For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com




[qmailtoaster] migration from qmail/vpopmail to qmailtoaster, vdominfo shows 0 users for all domains.

2010-10-06 Thread PJF
Hi,

I've followed the directions exactly for Migrating from qmail using vpasswd:
(thank you for putting this together)
http://wiki.qmailtoaster.com/index.php/Migrating_from_qmail_that_using_vpass
wd

All accounts have been transferred, over, SQL has been imported, I'm able to
test them in my mail client and login via POP3 and IMAP fine.
qmailadmin and vqadmin work fine, they show all of the users and domains.

The only issue I'm seeing is:

/home/vpopmail/bin/vdominfo will display all of the domains, but shows the
following for every domain:
users:  0

Yet there are of course many users in each domain.

Before I get ready to go live on this new qmailtoaster install I wanted to
make sure nothing is seriously broken.

Any help or suggestions on what I need to do to fix this or where to look
would be greatly appreciated.

Thanks in advance.

--
PJF


-
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
Vickers Consulting Group offers Qmailtoaster support and installations.
  If you need professional help with your setup, contact them today!
-
 Please visit qmailtoaster.com for the latest news, updates, and packages.
 
  To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
 For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com




RE: [qmailtoaster] Re: migration from qmail/vpopmail to qmailtoaster, vdominfo shows 0 users for all domains.

2010-10-06 Thread PJF
Thanks for the quick reply everyone, my first posting to the list and I am
very impressed with all the prompt and knowledgeable responses.

Yeah, I won't be using vqadmin in the future, it's removed now.

QControl looks great, thanks for the heads up. 

--
PJF

 -Original Message-
 From: Joel Eddy [mailto:rje...@iowaconnect.com]
 Sent: Wednesday, October 06, 2010 1:57 PM
 To: qmailtoaster-list@qmailtoaster.com
 Subject: RE: [qmailtoaster] Re: migration from qmail/vpopmail to
 qmailtoaster, vdominfo shows 0 users for all domains.
 
 Just to add my 2cents and that's about all it's worth.
 If you go into the sql database and change the number 21474836nn
 that's in there to say the number of actual accounts it will fix it.
 The NEVER use vqadmin again. It is a pain in the A$$.
 
 I use PHPMyAdmin for my MySQL but you use what ever you're comfy with.
 
 Now for my 2 cents. KILL vqadmin it's busted period and has been for
 years.
 I use QControl, buy the full version like I did if you have multiple
 domains.
 
 /plug
 It's worth it in my opinion. And with that you get the man that knows
 whaaaz
 up with Qmail.
 /end of plug
 
 Okay, I'll get off my soap box now.
 
 Joel
 
 -Original Message-
 From: Eric Shubert [mailto:e...@shubes.net]
 Sent: Wednesday, October 06, 2010 3:33 PM
 To: qmailtoaster-list@qmailtoaster.com
 Subject: [qmailtoaster] Re: migration from qmail/vpopmail to
 qmailtoaster,
 vdominfo shows 0 users for all domains.
 
 PJF wrote:
  Hi,
 
  I've followed the directions exactly for Migrating from qmail using
 vpasswd:
  (thank you for putting this together)
 
 http://wiki.qmailtoaster.com/index.php/Migrating_from_qmail_that_using_
 vpass
  wd
 
  All accounts have been transferred, over, SQL has been imported, I'm
 able
 to
  test them in my mail client and login via POP3 and IMAP fine.
  qmailadmin and vqadmin work fine, they show all of the users and
 domains.
 
  The only issue I'm seeing is:
 
  /home/vpopmail/bin/vdominfo will display all of the domains, but
 shows the
  following for every domain:
  users:  0
 
  Yet there are of course many users in each domain.
 
  Before I get ready to go live on this new qmailtoaster install I
 wanted to
  make sure nothing is seriously broken.
 
  Any help or suggestions on what I need to do to fix this or where to
 look
  would be greatly appreciated.
 
  Thanks in advance.
 
  --
  PJF
 
 
 
 ---
 -
 -
 
 I wouldn't be concerned with it. That value is bogus on my QMT hosts as
 well. I have either 0 or 21474836nn, with no apparent rhyme or reason.
 Some little bug in there I expect, but it doesn't appear to hinder
 operation at all.
 
 FWIW, vqadmin is also broken at this point. It's reportedly ok for
 viewing things, but don't go updating anything with it. I don't even
 install it myself. You don't really need it. If you want a gui tool for
 that sort of thing, have a look at qcontrol.
 
 Since you're new to QMT, I would recommend installing qmailtoaster-plus
 if you haven't already (http://qtp.qmailtoaster.com), and also install
 spamdyke (using the qtp-install-spamdyke script in QTP). There are
 other
 goodies in QTP as well that you'll want to have a look at.
 
 --
 -Eric 'shubes'
 
 
 ---
 -
 -
 Qmailtoaster is sponsored by Vickers Consulting Group
 (www.vickersconsulting.com)
 Vickers Consulting Group offers Qmailtoaster support and
 installations.
   If you need professional help with your setup, contact them
 today!
 ---
 -
 -
  Please visit qmailtoaster.com for the latest news, updates, and
 packages.
 
   To unsubscribe, e-mail: qmailtoaster-list-
 unsubscr...@qmailtoaster.com
  For additional commands, e-mail:
 qmailtoaster-list-h...@qmailtoaster.com
 
 
 
 
 ---
 --
 Qmailtoaster is sponsored by Vickers Consulting Group
 (www.vickersconsulting.com)
 Vickers Consulting Group offers Qmailtoaster support and
 installations.
   If you need professional help with your setup, contact them
 today!
 ---
 --
  Please visit qmailtoaster.com for the latest news, updates, and
 packages.
 
   To unsubscribe, e-mail: qmailtoaster-list-
 unsubscr...@qmailtoaster.com
  For additional commands, e-mail: qmailtoaster-list-
 h...@qmailtoaster.com
 



-
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
Vickers Consulting Group offers Qmailtoaster support and installations.
  If you need professional help with your setup, contact them today