This discussion is archived
3 Replies Latest reply: Jul 17, 2013 7:29 AM by ned - oracle RSS

Too many addheaders specified

Monk Newbie
Currently Being Moderated

Hi, All!

I have implemented antivirus scanner using milter API.

The messages are tested well. However there is a problem - the system can not add special header!

The error message is

 

Processing errors occurred during delivery:

 

Recipient address: ...@....
  Reason: Error in sieve filter: Too many addheaders specified

 

Is it possible somehow to increase the  number of allowed addheaders?

 

Regards, Monk.

 

 

PS about version

 

Oracle Communications Messaging Server 7u5-28.21(7.0.5.28.0) 64bit (built Apr  8 2013)
libimta.so 7u5-28.21 64bit (built 08:49:56, Apr  8 2013)
Using /opt/sun/comms/messaging64/config/imta.cnf (compiled)
SunOS sf240 5.10 Generic_148888-03 sun4u sparc SUNW,Sun-Fire-V240

  • 1. Re: Too many addheaders specified
    JimKlimov Newbie
    Currently Being Moderated

    How many headers do you have? A config snippet would be relevant, I think.

    On my setup I see I have a couple addheaders, so more than one is possbible; I don't know of a limit though:

     

    spamfilter2_config_file=/opt/SUNWmsgsr/config/clamav.opt

    spamfilter2_library=/opt/SUNWmsgsr/lib/libclamav.so

    spamfilter2_string_action=data:,require ["addheader"];addtag "[PROBABLE VIRUS DETECTED: $U]";addheader "X-Virus-Status: $U";addheader "X-Virus-Scanned: clamd 0.97.8 at ucs.domain.com";

    spamfilter2_null_action=data:,require ["addheader"];addheader "X-Virus-Status: Clean";addheader "X-Virus-Scanned: clamd 0.97.8 at ucs.domain.com";

     

    And I think the tags and headers in my tests were only applied to infected messages, while the checked-clean ones remained unchanged. I am not sure if it is by design or my misconfiguration, we did not pursue this further.

    //Jim   

  • 2. Re: Too many addheaders specified
    Monk Newbie
    Currently Being Moderated

    Here is the config

     

    spamfilter1_library=/opt/sun/comms/messaging64/lib/libmilter.so
    spamfilter1_config_file=/Cluster/mail/config/milter.opt
    spamfilter1_string_action=data:,$M

     

     

    All headers are added by milter.

    All messages after filer should have about 10-15 headers.

  • 3. Re: Too many addheaders specified
    ned - oracle Explorer
    Currently Being Moderated

    This is a simple problem to solve: All you need to do is specify a larger value for the max_addheaders MTA option in your option.dat file. The default value for

    this option is 10, which is why you're running into the limit.

     

    FWIW, I'm going to consider changing things so that system-level sieves are not subjected to this limit. It's really intended to prevent misbehavior in user-level

    sieves.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points