spamassassin rewrite subject

Discussion in 'Installation/Configuration' started by dimitar, Sep 3, 2007.

  1. dimitar

    dimitar New Member

    Hi All,

    i have a problem on 1 of my domains. The user has setuped his accound as following:
    Spamfilter: ON
    Antivirus: ON
    Spam Strategy: accept
    Spam Hits: 2.0
    Rewrite Subject: ON
    Subject: *****SPAM*****


    ... but unfortunately the spam mails get not the subject rewrited, there is also no sign of spamassassin check in the headers of the spam mail...
    any idea?

    Thanks
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The settings look fine. Please post the content of the .spamassassin.rc file that is in the home directory of the user and also the content of the .procmailrc file, which is in the homedir too.
     
  3. dimitar

    dimitar New Member

    Hi Till,

    .spamassassin.rc:

    Code:
    # SpamAssassin sample procmailrc
    #
    # Pipe the mail through spamassassin (replace 'spamassassin' with 'spamc'
    # if you use the spamc/spamd combination)
    # The condition line ensures that only messages smaller than 250 kB
    # (250 * 1024 = 256000 bytes) are processed by SpamAssassin. Most spam
    # isn't bigger than a few k and working with big messages can bring
    # SpamAssassin to its knees.
    :0fw
    * < 256000
    | /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/spamassassin --prefs-file=/var/www/web43/user/user/.user_prefs
    
    # Mails with a score of 15 or higher are almost certainly spam (with 0.05%
    # false positives according to rules/STATISTICS.txt). Let's put them in a
    # different mbox. (This one is optional.)
    #:0:
    #* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
    #/dev/null
    
    # All mail tagged as spam (eg. with a score higher than the set threshold)
    # is moved to "/dev/null".
    #:0:
    #* ^X-Spam-Status: Yes
    #/dev/null
    
    # Work around procmail bug: any output on stderr will cause the "F" in "From"
    # to be dropped.  This will re-add it.
    :0
    * ^^rom[ ]
    {
      LOG="*** Dropped F off From_ header! Fixing up. "
    
      :0 fhw
      | sed -e '1s/^/F/'
    }
    
    .procmailrc, Hmm there is no such file in the problematic's user home dir!

    That's the content of the user's home dir:

    Code:
    ls -la
    total 116
    drwxrwxr-x  3 www-data           web171  4096 2007-09-03 15:02 .
    drwxrwxr-x 20 user web171  4096 2007-08-05 15:22 ..
    -rw-r--r--  1 root               root     103 2007-09-03 15:02 .antivirus.rc
    -rw-r--r--  1 root               root     797 2007-09-03 15:02 .autoresponder.rc
    -rw-r--r--  1 root               root   67866 2007-09-03 15:02 .html-trap.rc
    -rw-r--r--  1 root               root    3889 2007-09-03 15:02 .local-rules.rc
    -rw-r--r--  1 root               root     204 2007-09-03 15:02 .mailsize.rc
    -rw-r--r--  1 root               root     656 2007-09-03 15:02 .quota.rc
    -rw-r--r--  1 root               root    1155 2007-09-03 15:02 .spamassassin.rc
    -rw-r--r--  1 root               root    2061 2007-09-03 15:02 .user_prefs
    -rw-r--r--  1 root               root      32 2007-09-03 15:02 .vacation.msg
    drwxrwxr-x  2 www-data           web171  4096 2007-06-28 16:33 web
    
    Thanks!
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    It looks like the ls command is from from a website root directory. Is this the users home directory as listed in /etc/passwd ? Is the user the administrator of the website?
     
  5. dimitar

    dimitar New Member

    Yes till, the user is admin of the website and thats his home dir.

    Thanks!
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    What astonishes me then is that the web subdirectory is owned by www-data, if there is a web admin, this directory must be owned by this web admin user.

    Do you have any errors in the ispconfig.log file?
     
  7. dimitar

    dimitar New Member

    No, no errors in the log fle,
    so once again:

    /etc/passwd:

    Code:
    user:x:10122:10043:steen:/var/www/web43:/bin/false
    ls -la /var/www/web43:

    Code:
    total 56
    drwxrwxr-x   8 user web171  4096 2007-09-03 15:02 .
    drwxr-xr-x 196 www-data           web171 16384 2007-09-04 09:25 ..
    drwxrwxr-x   2 user web171  4096 2007-06-28 16:33 cgi-bin
    -rw-------   1 user web43     24 2007-09-03 15:02 .forward
    -rw-rw-r--   1 www-data           web43    618 2007-09-04 04:02 .htpasswd
    drwxrwxr-x   3 user web43   4096 2007-09-02 00:30 log
    drwxrwxr-x   2 user web43   4096 2007-06-28 16:33 phptmp
    -rw-r--r--   1 root               root     528 2007-09-03 15:02 .procmailrc
    drwxrwxr-x   2 user web171  4096 2007-06-28 16:33 ssl
    drwxrwxr-x  20 user web171  4096 2007-08-05 15:22 user
    lrwxrwxrwx   1 root               root      54 2007-09-03 15:02 .vacation.cache -> /var/www/web43/user/user/.vacation.cache
    drwxrwxr-x   4 steen_roensberg.dk web171  4096 2007-06-29 04:01 web
    ls -la /var/www/web43/user/user:

    Code:
    total 116
    drwxrwxr-x  3 www-data           web171  4096 2007-09-03 15:02 .
    drwxrwxr-x 20 user web171  4096 2007-08-05 15:22 ..
    -rw-r--r--  1 root               root     103 2007-09-03 15:02 .antivirus.rc
    -rw-r--r--  1 root               root     797 2007-09-03 15:02 .autoresponder.rc
    -rw-r--r--  1 root               root   67866 2007-09-03 15:02 .html-trap.rc
    -rw-r--r--  1 root               root    3889 2007-09-03 15:02 .local-rules.rc
    -rw-r--r--  1 root               root     204 2007-09-03 15:02 .mailsize.rc
    -rw-r--r--  1 root               root     656 2007-09-03 15:02 .quota.rc
    -rw-r--r--  1 root               root    1155 2007-09-03 15:02 .spamassassin.rc
    -rw-r--r--  1 root               root    2061 2007-09-03 15:02 .user_prefs
    -rw-r--r--  1 root               root      32 2007-09-03 15:02 .vacation.msg
    drwxrwxr-x  2 www-data           web171  4096 2007-06-28 16:33 web
    Thanks!
     
  8. falko

    falko Super Moderator ISPConfig Developer

    What's in /var/www/web43/.procmailrc?
     
  9. dimitar

    dimitar New Member

    hi falko,

    less /var/www/web43/.procmailrc:

    Code:
    ## MAILDIR=$HOME/Maildir/
    ## DEFAULT=$MAILDIR
    ## ORGMAIL=$MAILDIR
    QUOTA=52428800
    INCLUDERC=/var/www/web43/user/user/.mailsize.rc
    INCLUDERC=/var/www/web43/user/user/.quota.rc
    INCLUDERC=/var/www/web43/user/user/.antivirus.rc
    INCLUDERC=/var/www/web43/user/user/.local-rules.rc
    INCLUDERC=/var/www/web43/user/user/.html-trap.rc
    INCLUDERC=/var/www/web43/user/user/.spamassassin.rc
    ## INCLUDERC=/var/www/web43/user/user/.autoresponder.rc
    
     
  10. falko

    falko Super Moderator ISPConfig Developer

    Looks ok... :confused:
     

Share This Page