Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25

Thread: [SOLVED] junk mail cleanup

  1. #11
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    Re-reading that I realize you may be asking if it records the exact mail removed - never checked - but you can enable some more logging (see this post) and find out.

  2. #12
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    Quote Originally Posted by Priyantha Bleeker View Post
    Mmm
    I don't really understand I think

    I've setup the following:
    'Spam message lifetime: 1day'

    And this is the output on the console:

    [zimbra@eigenwijze-1 ~]$ zmprov gs eigenwijze-1.linux.iu.nl | grep zimbraMailPurgeSleepInterval
    zimbraMailPurgeSleepInterval: 0

    How can I change it to the right ?
    Mail over the 'lifetime' will be removed when the purge thread hits it - the user inherits the COS value unless you set it explicitly on the user's account:

    COS Level-
    Check by:
    zmprov gc COSName | grep Lifetime
    Set by:
    zmprov mc COSName zimbraMailTrashLifetime 30d
    zmprov mc COSName zimbraMailSpamLifetime 30d

    OR User Level-
    Check by:
    zmprov ga user@domain.com | grep Lifetime
    Set by:
    zmprov ma user@domain.com zimbraMailTrashLifetime 30d
    zmprov ma user@domain.com zimbraMailSpamLifetime 30d

    The purge thread itself:
    Check by:
    zmprov gs server.domain.com | grep zimbraMailPurgeSleepInterval
    Set by:
    zmprov ms server.domain.com zimbraMailPurgeSleepInterval 1m

    0 on any of those disables automatic purging for that machine/account

    So really it's a but of math logic -say you have:
    -6 users
    -zimbraMailTrashLifetime 30d
    -zimbraMailPurgeSleepInterval 1d
    -A message in the trash of account 5 that's 31 days old - this mail is now 'capable of being removed' as it's over the zimbraMailTrashLifetime.

    Day 32: Mailboxes 1/2 are purged
    Day 33: Mailboxes 2/3/4 (I'm not gonna nail down this timing right now - 3 gets purged for sure)
    Day 34: Mailboxes 4/5/6 are purged

    So really that message in account 5's trash technically stayed around till day 34.

    This allows for better scaling rather than just everyone in one big cron job putting load on the server - for instance you could decide to purge 1400 accounts per day.
    Last edited by mmorse; 04-14-2008 at 07:46 PM.

  3. #13
    Join Date
    Mar 2007
    Location
    Vancouver, Canada
    Posts
    34
    Rep Power
    8

    Default

    Your info was exactly what I wanted to know. Thanks. For the record:

    zimbra@tantalus:~$ grep Purge log/mailbox.log | grep "jay@thinktek.ca" | tail -3
    2008-04-13 10:42:46,191 INFO [MailboxPurge] [name=jay@thinktek.ca;mid=5;] mailbox - Purging messages.
    2008-04-13 10:57:46,989 INFO [MailboxPurge] [name=jay@thinktek.ca;mid=5;] mailbox - Purging messages.
    2008-04-13 11:12:47,638 INFO [MailboxPurge] [name=jay@thinktek.ca;mid=5;] mailbox - Purging messages.
    zimbra@tantalus:~$

    So it's getting to mine every 15 minutes or so, which IMHO is a bit too frequent (zimbraMailPurgeSleepInterval = 1m) so I have set it to 1h and will re look at it.

    Thanks again!

    Jay

  4. #14
    Join Date
    Oct 2007
    Posts
    31
    Rep Power
    7

    Default

    Quote Originally Posted by mmorse View Post
    Mail over the 'lifetime' will be removed when the purge thread hits it - the user inherits the COS value unless you set it explicitly on the user's account:

    COS Level-
    Check by:
    zmprov gc COSName | grep Lifetime
    Set by:
    zmprov mc COSName zimbraMailTrashLifetime 30d
    zmprov mc COSName zimbraMailSpamLifetime 30d

    OR User Level-
    Check by:
    zmprov ga user@domain.com | grep Lifetime
    Set by:
    zmprov ma user@domain.com zimbraMailTrashLifetime 30d
    zmprov ma user@domain.com zimbraMailSpamLifetime 30d

    The purge thread itself:
    Check by:
    zmprov gs server.domain.com | zimbraMailPurgeSleepInterval
    Set by:
    zmprov ms server.domain.com zimbraMailPurgeSleepInterval 1m

    0 on any of those disables automatic purging for that machine/account

    So really it's a but of math logic -say you have:
    -6 users
    -zimbraMailTrashLifetime 30d
    -zimbraMailPurgeSleepInterval 1d
    -A message in the trash of account 5 that's 31 days old - this mail is now 'capable of being removed' as it's over the zimbraMailTrashLifetime.

    Day 32: Mailboxes 1/2 are purged
    Day 33: Mailboxes 2/3/4 (I'm not gonna nail down this timing right now - 3 gets purged for sure)
    Day 34: Mailboxes 4/5/6 are purged

    So really that message in account 5's trash technically stayed around till day 34.

    This allows for better scaling rather than just everyone in one big cron job putting load on the server - for instance you could decide to purge 1400 accounts per day.
    Well when I try to do what you said.
    I get the following;
    [zimbra@$$$$ ~]$ zmprov gc COSName | grep Lifetime
    ERROR: account.NO_SUCH_COS (no such cos: COSName)
    Last edited by Priyantha Bleeker; 04-17-2008 at 02:00 AM.

  5. #15
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by Priyantha Bleeker View Post
    Well when I try to do what you said.
    I get the following;
    [zimbra@eigenwijze-1 ~]$ zmprov gc COSName | grep Lifetime
    ERROR: account.NO_SUCH_COS (no such cos: COSName)
    I assume you did put your Class of Service name in there instead of "COSName"?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  6. #16
    Join Date
    Oct 2007
    Posts
    31
    Rep Power
    7

    Default

    Quote Originally Posted by phoenix View Post
    I assume you did put your Class of Service name in there instead of "COSName"?
    Ah hahaha
    No I didn't
    But what do I have to put there instead of "COSName" ?

  7. #17
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by Priyantha Bleeker View Post
    Ah hahaha
    No I didn't
    But what do I have to put there instead of "COSName" ?
    Well, the default COS is called "default" and if there are any other COS that you've created then you'll have the names. Have a look in the Admin UI under the Class of Service entry and you'll see which COS are defined.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  8. #18
    Join Date
    Oct 2007
    Posts
    31
    Rep Power
    7

    Default

    Ah thanks
    This is the output:
    [zimbra@$$$ ~]$ zmprov gc default | grep Lifetime
    zimbraAdminAuthTokenLifetime: 12h
    zimbraAuthTokenLifetime: 2d
    zimbraMailMessageLifetime: 0
    zimbraMailSpamLifetime: 1d
    zimbraMailTrashLifetime: 1d
    zimbraPasswordLockoutFailureLifetime: 1h
    zimbraPrefInboxReadLifetime: 0
    zimbraPrefInboxUnreadLifetime: 0
    zimbraPrefJunkLifetime: 0
    zimbraPrefSentLifetime: 0
    zimbraPrefTrashLifetime: 0
    [zimbra@eigenwijze-1 ~]$
    Last edited by Priyantha Bleeker; 04-17-2008 at 02:01 AM.

  9. #19
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    Ok, so with those values unless you've set it at the individual level at somepoint as well, your trash & spam are 'capable of being deleted' after one day.
    Defaults for zimbraMailTrash/SpamLifetime are 30d
    Default for zimbraMailPurgeSleepInterval is 1m (you might still need to set this)
    See my prior post again for how to change those values

  10. #20
    Join Date
    Oct 2007
    Posts
    31
    Rep Power
    7

    Default

    Quote Originally Posted by mmorse View Post
    Ok, so with those values unless you've set it at the individual level at somepoint as well, your trash & spam are 'capable of being deleted' after one day.
    Defaults for zimbraMailTrash/SpamLifetime are 30d
    Default for zimbraMailPurgeSleepInterval is 1m (you might still need to set this)
    See my prior post again for how to change those values
    Mmm okay.
    But 'capable of being deleted' is not the same as 'will be deleted' after one day isn't it ? Because that is what I want

Similar Threads

  1. Problems with port 25
    By yogiman in forum Installation
    Replies: 57
    Last Post: 06-13-2011, 01:55 PM
  2. Replies: 7
    Last Post: 02-03-2011, 06:01 AM
  3. server dropped connection
    By ferra in forum Installation
    Replies: 20
    Last Post: 10-06-2008, 04:32 PM
  4. fresh install down may be due to tomcat
    By gon in forum Installation
    Replies: 10
    Last Post: 07-25-2007, 08:09 AM
  5. DynDNS and Zimbra
    By afterwego in forum Installation
    Replies: 30
    Last Post: 04-01-2007, 03:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •