Page 3 of 3 FirstFirst 123
Results 21 to 28 of 28

Thread: zmtrainsa broken after upgrade to v 4.0

  1. #21
    neilmc is offline Active Member
    Join Date
    Nov 2005
    Posts
    44
    Rep Power
    9

    Default

    Quote Originally Posted by pepijn
    To verify, I symlinked /opt/zimbra/conf/spamassassin to /etc/mail/spamassassin and reran zmtrainsa for a user who badly needs to train spam. Lo and behold it worked and processed his entire Junk folder.

    ...........snip...........

    Hopefully others can report their findings.

    pepijn.
    Thanks pepijn, that seemed to fix it for us. (no more message about the site rules directory being missing).

  2. #22
    lightman is offline Junior Member
    Join Date
    May 2006
    Posts
    6
    Rep Power
    9

    Default

    Quote Originally Posted by pepijn
    To verify, I symlinked /opt/zimbra/conf/spamassassin to /etc/mail/spamassassin and reran zmtrainsa for a user who badly needs to train spam. Lo and behold it worked and processed his entire Junk folder.

    Hopefully others can report their findings.

    pepijn.

    Creating the symlink also worked for me as well. My server is now processing 2200+ messages on one of my accounts. Thank you for mucking around in the configs and noticing that.

    Phoenix - this seems straight forward, but is there a chance we are messing anything up? I assume that some subsequent version of Zimbra would just have a modified config if it turns out this is the answer.

  3. #23
    KevinH's Avatar
    KevinH is offline Expert Member
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    Anyone file a bug on this?
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  4. #24
    pepijn's Avatar
    pepijn is offline Active Member
    Join Date
    Jul 2006
    Location
    Novi, MI
    Posts
    27
    Rep Power
    9

    Default

    I haven't as of yet, mostly because I'm not sure whether:

    1. I am just providing a workaround for something that is configured by Zimbra someplace else, and this config is missing and was not being recreated during a previous upgrade
    2. There should be a symlink in place at the two locations mentioned in the amavisd script and they somehow did not get recreated during a previous upgrade

    I'd gladly file a bug if it is deemed to be one.

    pepijn.

  5. #25
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    11

    Default

    So a quick check of the amavisd script at /opt/zimbra/amavisd/sbin/amavisd seemed to suggest that by default all rules are looked for at /etc/mail/spamassassin and /usr/local/share/spamassassin:

    Code:
    # DEF_RULES_DIR => '/usr/local/share/spamassassin',
    # LOCAL_RULES_DIR => '/etc/mail/spamassassin',
    the # means the line is commented out, although if there is no other override that indicates the default value. however, zimbra amavis uses /opt/zimbra/conf/amavisd.conf as the config file which is created from /opt/zimbra/conf/amavisd.conf.in each invocation. the sa rules dir is specified by $sa_site_rules_file - what does this say in yours?

  6. #26
    pepijn's Avatar
    pepijn is offline Active Member
    Join Date
    Jul 2006
    Location
    Novi, MI
    Posts
    27
    Rep Power
    9

    Default

    Quote Originally Posted by dijichi2
    the # means the line is commented out, although if there is no other override that indicates the default value. however, zimbra amavis uses /opt/zimbra/conf/amavisd.conf as the config file which is created from /opt/zimbra/conf/amavisd.conf.in each invocation. the sa rules dir is specified by $sa_site_rules_file - what does this say in yours?
    Right, I know it's commented out and as you note it typically indicates a default setting. This is why I am thinking that I'm just providing a workaround for something that should be coming from a Zimbra config file like /opt/zimbra/conf/amavisd.conf. Mine contains the following (logical looking) settings:

    Code:
    $sa_rules_file = '/opt/zimbra/conf/salocal.cf';
    $sa_site_rules_file = '/opt/zimbra/conf/spamassassin';
    $sa_userprefs_file = '/opt/zimbra/conf/sauser.cf';
    Looks like these settings are not making it through to zmtrainsa when it runs.

    pepijn.

  7. #27
    tyco is offline Senior Member
    Join Date
    May 2006
    Posts
    52
    Rep Power
    9

    Default same here on 4.0.2

    hi

    i have the same here on my box running debian sarge with 2.6.x kernel

    Code:
    Learned from 0 message(s) (1 message(s) examined).
    ERROR: the Bayes learn function returned an error, please re-run with -D for more information
    fetchmail: MDA returned nonzero status 25
     not flushed
    reading message user@mydomain.com@localhost.localdomain:46 of 1901 (566 header octets)  (759 body octets) .config: could not find site rules directory
    bayes: cannot open bayes databases /opt/zimbra/amavisd/.spamassassin/bayes_* R/O: tie failed: 
    bayes: cannot open bayes databases /opt/zimbra/amavisd/.spamassassin/bayes_* R/W: tie failed: File exists
    zimbra what is the proper solution?

    thanx

  8. #28
    SeanG is offline Zimbra Employee
    Join Date
    Jan 2006
    Posts
    6
    Rep Power
    9

    Default

    Bugzilla - Wiki - Downloads - Before posting... Search!

Page 3 of 3 FirstFirst 123

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Tomcat broken after upgrade to 4
    By dotslashroot in forum Migration
    Replies: 13
    Last Post: 01-31-2007, 06:05 PM
  2. Replies: 3
    Last Post: 12-18-2006, 11:50 PM
  3. strange email after upgrade (fc3->fc4, zim 3.14-> zim 4.0)
    By tachijuan in forum Administrators
    Replies: 6
    Last Post: 10-20-2006, 08:57 AM
  4. Certificate problem following 3.1.0 -> 4.0 upgrade
    By simonellistonball in forum Migration
    Replies: 5
    Last Post: 09-26-2006, 01:56 PM
  5. nonsecure items popup on ie 6.0 since 4.0 upgrade
    By frostpaw in forum Administrators
    Replies: 10
    Last Post: 09-07-2006, 11:25 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
  •