Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: [SOLVED] Timeout Policy: Spam message lifetime doesn't work

  1. #1
    eombah is offline Loyal Member
    Join Date
    Nov 2006
    Location
    Netherlands
    Posts
    90
    Rep Power
    8

    Default [SOLVED] Timeout Policy: Spam message lifetime doesn't work

    Hi,

    I just upgraded from 4.5 to 5.0.2 on Ubuntu and it seems that Spam no longer automatically gets deleted from my Junk folder after the amount of days set in the Spam message lifetime, where it did in 4.5. I looked around in the forums and there is some talk on this COS setting vs user settings, but that did not help me.

    Any ideas?

    regards Bart.

  2. #2
    mmorse's Avatar
    mmorse is offline Moderator
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    20

    Default

    In addition to zimbraMailSpamLifetime, there's a new value you probably need to set:
    zmprov ms server.domain.com zimbraMailPurgeSleepInterval 1d
    Update: Or lower like 1h or 1m (which we will make the new default)
    Last edited by mmorse; 03-21-2008 at 07:44 AM.

  3. #3
    eombah is offline Loyal Member
    Join Date
    Nov 2006
    Location
    Netherlands
    Posts
    90
    Rep Power
    8

    Default

    I executed:

    zmprov ms server.domain.com zimbraMailPurgeSleepInterval 1d

    and it immediately purged my spam that was older than 30 days, which is good.
    Then I waited one day to see if it would do this automatically from now on, but it doesn't.

    I ran it as user zimbra. Was that correct? Or should it have been root?
    Or should I make a cron job of this?

    regards Bart.

  4. #4
    deepblue is offline Partner (VAR/HSP)
    Join Date
    Jul 2006
    Location
    Stuttgart / Germany
    Posts
    222
    Rep Power
    8

    Default

    Hi mmorse,

    for me this did not help....
    For testing I have one account with
    zimbraMailSpamLifetime: 1d
    And I have set zimbraMailPurgeSleepInterval to 1d.

    In my mailbox.log I see:

    Code:
    mailbox.log.2008-02-22:2008-02-22 13:18:02,374 INFO  [btpool0-291] [name=zimbra;ip=127.0.0.1;] mailbox - Starting purge thread with sleep interval 86400000ms
    But my testaccount is never being purged...
    Could I trigger the Junkfolder purging?

    Regards
    Thomas
    Last edited by mmorse; 02-26-2008 at 10:58 AM. Reason: oops not mine

  5. #5
    rfoster is offline Active Member
    Join Date
    Aug 2007
    Location
    U.S. Pacific Northwest
    Posts
    25
    Rep Power
    7

    Default I am also seeing spam accumulate

    Despite the COS setting of 30d, I am seeing older spam accumulate in the junk folders. Unlike the OP, I did not see any immediate difference after running the following: zmprov ms mail.domain.com mbraMailPurgeSleepInterval 1d. This started after I upgraded from 4.5.10 to 5.0.2. Is there a work-around?

    When I look at crontab for zimbra user I do not see an entry for zmpurgemessages. Should there be one?

    I did not see a bug report on this. I searched on spam lifetime and spam timeout. Do we need a bug report filed on this?

  6. #6
    deepblue is offline Partner (VAR/HSP)
    Join Date
    Jul 2006
    Location
    Stuttgart / Germany
    Posts
    222
    Rep Power
    8

    Default

    Quote Originally Posted by rfoster View Post
    Despite the COS setting of 30d, I am seeing older spam accumulate in the junk folders. Unlike the OP, I did not see any immediate difference after running the following: zmprov ms mail.domain.com mbraMailPurgeSleepInterval 1d. This started after I upgraded from 4.5.10 to 5.0.2. Is there a work-around?
    Same for me.... no immediate difference after setting zimbraMailPurgeSleepInterval to 1d.

    Quote Originally Posted by rfoster View Post
    I did not see a bug report on this. I searched on spam lifetime and spam timeout. Do we need a bug report filed on this?
    Yes. I think we should....

    BTW: zmpurgemessages does not exist any longer...

    Regards
    Thomas

  7. #7
    rfoster is offline Active Member
    Join Date
    Aug 2007
    Location
    U.S. Pacific Northwest
    Posts
    25
    Rep Power
    7

    Default

    Thomas,

    Thanks for the heads-up about zmpurgemessages.

    Bug 25018 has been added to the database.

    Bob

  8. #8
    mmorse's Avatar
    mmorse is offline Moderator
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    20

    Default

    All: Could you set zimbraMailPurgeSleepInterval to 1h or 1m please? (1m will be the new default)

    To explain it better: There really is no concept of a "purge interval". The purge thread is constantly running, purging mailboxes in memory, one at a time. Between every one-two mailboxes it sleeps for the interval specified by zimbraMailPurgeSleepInterval. I have much fewer mailboxes on my server so 1d is fine for me - set accordingly after you work out the math This is way more robust than the old method & allows for spreading the load out overtime, which is especially nice for larger setups.

    Work on this was done via Bug 13435 - User-definable expiration policy for systems folders where PurgeThread was implemented, which iterates all the mailboxes on the server and purges them one at a time. Mailboxes are only purged if they're loaded into the server cache & the thread sleeps between subsequent purges.
    In short, the current mailbox purge algorithm only affects mailboxes that are in memory - as the theory is that if a mailbox is not in memory, it's not being accessed, not receiving mail, and therefore has less of a need to be purged.
    Bug 20720 - Guarantee that mailboxes will be purged was filed for the issue of wanting a double check - possibly by making use of a zimbraMailLastPurgedTimestamp.

    And yes zmpurgemessages, which used to produce some heavier load, was removed from cron/libexec in Bug 20705 - Remove zmpurgemessages

    Rob: Matt & I have marked Bug 25018 - Spam not being purged from junk folders a dupe for now, as your description when you opened it didn't give mention that you had already tried setting the interval:
    Quote Originally Posted by rob in bug 25018
    With a COS setting of Spam Lifetime = 30d in the Admin web interface, I am seeing older spam accumulate in the junk folders. This started after an upgrade
    from 4.5.10 to 5.0.2.
    Of course then I saw your forum post - should this not work we'll reopen/redirect.

    If you're curious the attribute properties read:
    <attr id="542" name="zimbraMailPurgeSleepInterval" type="duration" cardinality="single" optionalIn="globalConfig,server" flags="serverInherited,domainAdminModifiable" callback="MailboxPurge">
    <globalConfigValue>0</globalConfigValue>
    <desc>Sleep time between subsequent mailbox purges. 0 means that mailbox purging is disabled.</desc>
    </attr>
    I generally set it at the server level, do note that if at any point you set server, it won't inherit from global anymore till it's reset "" - server overrides global - so for instance:
    zmprov ms server.domain.com zimbraMailPurgeSleepInterval 1h
    overrides:
    zmprov mcf zimbraMailPurgeSleepInterval 1m

    You can check your values by:
    zmprov gacf | grep zimbraMailPurgeSleepInterval
    zmprov gs server.domain.com | grep zimbraMailPurgeSleepInterval

    To find out who last got cleaned up simply run:
    zmprov gs server.domain.com | grep zimbraMailLastPurgedMailboxId

    5.0.3 should have: Bug 24823 - expose zimbraMailPurgeSleepInterval in Admin Console. & solve this for others via Bug 23842 - Purging off by default in 5.0 (need upgrade step) -default will be 1m.
    Last edited by mmorse; 02-26-2008 at 11:26 AM.

  9. #9
    rfoster is offline Active Member
    Join Date
    Aug 2007
    Location
    U.S. Pacific Northwest
    Posts
    25
    Rep Power
    7

    Default

    Mike,

    Thanks for the detailed explanation.

    I looked at my mailbox.log and saw that when I earlier set zimbraMailPurgeSleepInterval to 1d it ran the purge on one account (not two) succesfully.

    When I set zimbraMailPurgeSleepInterval to 1m nothing happens. When I run zmprov gacf I get zimbraMailPurgeSleepInterval: 0.

    Bob

  10. #10
    deepblue is offline Partner (VAR/HSP)
    Join Date
    Jul 2006
    Location
    Stuttgart / Germany
    Posts
    222
    Rep Power
    8

    Default

    Quote Originally Posted by mmorse View Post
    All:
    Could you set zimbraMailPurgeSleepInterval to 1h or 1m & see if that has any effect?
    Hi mmorse,

    thanks alot... This changed something for me. BUT:
    I had to set the zimbraMailPurgeSleepInterval to 0 first. After doing so, I had this message in mailbox.log:

    Code:
    2008-02-25 18:53:13,534 INFO  [MailboxPurge] [name=name@some.dom.ain;mid=6;] mailbox - Purge thread was interrupted.  Shutting down.
    After that I set the zimbraMailPurgeSleepInterval to 1m:

    Code:
    2008-02-25 18:53:49,342 INFO  [btpool0-419] [name=zimbra;ip=127.0.0.1;] mailbox - Starting purge thread with sleep interval 60000ms
    2008-02-25 18:53:49,355 INFO  [MailboxPurge] [name=name@domain;mid=7;] mailbox - Purging messages.
    2008-02-25 18:54:51,252 INFO  [MailboxPurge] [name=name2@domain;mid=9;] mailbox - Purging messages.
    2008-02-25 18:55:51,288 INFO  [MailboxPurge] [name=name3@domain;mid=12;] mailbox - Purging messages.
    2008-02-25 18:56:51,328 INFO  [MailboxPurge] [name=name4@domain;mid=17;] mailbox - Purging messages.
    2008-02-25 18:57:51,685 INFO  [MailboxPurge] [name=name5@domain;mid=18;] mailbox - Purging messages.
    2008-02-25 18:58:52,213 INFO  [MailboxPurge] [name=name6@domain;mid=20;] mailbox - Purging messages.
    So it seems, mailboxes are being purge one by one with a Interval of 1m...

    Thanks and regards
    Thomas

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Spam/Ham training under Outlook/Thunderbird/etc.
    By chuckm in forum Administrators
    Replies: 23
    Last Post: 03-18-2009, 11:01 AM
  2. [SOLVED] Away message only work for primary domain?
    By gkra in forum Administrators
    Replies: 1
    Last Post: 02-14-2008, 07:09 PM
  3. [SOLVED] Message Lifetime & Conversations...
    By natrixgli in forum Administrators
    Replies: 3
    Last Post: 09-08-2007, 06:15 PM
  4. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 07:46 PM
  5. Trashed/Spam Message Lifetime
    By soxfan in forum Administrators
    Replies: 20
    Last Post: 10-25-2006, 08:14 AM

Posting Permissions

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