Results 1 to 5 of 5

Thread: SA: adding a custom header when spam is detected

  1. #1
    CMuelders is offline Intermediate Member
    Join Date
    Nov 2006
    Posts
    24
    Rep Power
    8

    Default SA: adding a custom header when spam is detected

    Hi,

    is it possible to configure SA in a way, that a custom header line is added, when it detects a mail as spam? Specifically: I want it to add "Precedence: junk", not a custom line like "X-Spam..:".

    Any help?

    Christian

  2. #2
    dwmtractor's Avatar
    dwmtractor is offline Moderator
    Join Date
    Jul 2007
    Location
    San Jose, CA
    Posts
    1,027
    Rep Power
    9

    Default

    It's not a header, but the GUI has an option to add a prefix to the subject line. Go to Global Settings, click on the AS/AV tab, and you'll find the field where the subject prefix can be entered. Would this resolve your problem?

  3. #3
    dwmtractor's Avatar
    dwmtractor is offline Moderator
    Join Date
    Jul 2007
    Location
    San Jose, CA
    Posts
    1,027
    Rep Power
    9

    Smile Or to get what you REALLY asked for. . .

    The header that is inserted in the email is done by spamassassin, not by zimbra. You can search for Spamassassin documentation on that.

    I happened across another thread after my last post that you need to remember if you change your header, as opposed to simply adding another custom header to what's already there. If I correctly understand the thread (insiders can correct me), the X-Spam-Flag header is what Zimbra uses to determine if you're looking at spam that is going to the Junk folder or not.

    So, if you change your spam header, you have to let Zimbra know that it's different or it won't know how to handle the spam messages

    At the command line as the zimbra user, type
    Code:
    zmprov gacf | grep zimbraSpamHeader
    and you'll see the X-SPAM header that you're already getting. zmprov mcf would then allow you to change those options to match your new headers (but I'd recommend backing up your /opt/zimbra/conf/spamassassin folder first in case you blow something up)

  4. #4
    Klug's Avatar
    Klug is offline Moderator
    Join Date
    Mar 2006
    Location
    Beaucaire, France
    Posts
    2,292
    Rep Power
    13

    Default

    Christian, you can modify the subject (as dwmtractor suggested) but I'm not sure you can (read : "are allowed by the RFC") to add a line inthe headers that does not begins by X-something.

    What exactly would you like to get ?

  5. #5
    CMuelders is offline Intermediate Member
    Join Date
    Nov 2006
    Posts
    24
    Rep Power
    8

    Default

    Quote Originally Posted by Klug View Post
    Christian, you can modify the subject (as dwmtractor suggested)
    Yes, I know that.
    Quote Originally Posted by Klug View Post
    but I'm not sure you can (read : "are allowed by the RFC") to add a line inthe headers that does not begins by X-something.
    I am not an expert at that, but why is this so? The header I want (see below) seems perfectly valid and is defined.

    Quote Originally Posted by Klug View Post
    What exactly would you like to get ?
    I would like to get "Precedence: junk". The reason is that I forward mail to another mailserver (exchange) and the header-line will make it stop trying to reply to spam.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 13
    Last Post: 07-20-2007, 03:21 AM
  2. Is it started or not
    By kwelipatton in forum Installation
    Replies: 10
    Last Post: 03-28-2006, 11:11 PM
  3. Replies: 13
    Last Post: 10-31-2005, 04:22 PM
  4. Replies: 18
    Last Post: 10-30-2005, 09:12 PM
  5. Certify Error on (re)install
    By rodrigoccurvo in forum Installation
    Replies: 4
    Last Post: 09-23-2005, 09:04 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
  •