Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ClamAV: users

help me add header please

 

 

ClamAV users RSS feed   Index | Next | Previous | View Threaded


scottg at particlesoftware

Jul 26, 2009, 1:41 AM

Post #1 of 2 (553 views)
Permalink
help me add header please

I just tried to replace clamav .94 with the latest clamav 0.95.2.

I'm trying to simply configure it to add a header of "X-Virus-Status:
Infected" when a virus is found and then allow the message to pass
through and be accepted.

In the older clamav I edited the clamav-milter.c source and made it do
exactly what I wanted. now I'm lost because its all new.

Anyone know how to get clamav-milter to simply add a header and do
nothing else? Linux 2.4, sendmail, mimedefang.

thanks

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


edwintorok at gmail

Jul 26, 2009, 1:45 AM

Post #2 of 2 (498 views)
Permalink
Re: help me add header please [In reply to]

On 2009-07-26 11:41, Scott Galambos wrote:
> I just tried to replace clamav .94 with the latest clamav 0.95.2.
>
> I'm trying to simply configure it to add a header of "X-Virus-Status:
> Infected" when a virus is found and then allow the message to pass
> through and be accepted.
>
> In the older clamav I edited the clamav-milter.c source and made it do
> exactly what I wanted. now I'm lost because its all new.
>
> Anyone know how to get clamav-milter to simply add a header and do
> nothing else? Linux 2.4, sendmail, mimedefang.

Set 'AddHeader Yes' or 'AddHeader Add' in clamav-milter.conf, and
'OnInfected Accept'
Then send an eicar test, or clam.exe to see if it all works as you wanted.

# If this option is set to "Replace" (or "Yes"), an "X-Virus-Scanned" and an
# "X-Virus-Status" headers will be attached to each processed message,
possibly
# replacing existing headers.
# If it is set to Add, the X-Virus headers are added possibly on top of the
# existing ones.
# Note that while "Replace" can potentially break DKIM signatures, "Add" may
# confuse procmail and similar filters.
# Default: no
#AddHeader Replace

# The following group of options controls the delievery process under
# different circumstances.
# The following actions are available:
# - Accept
# The message is accepted for delievery
# - Reject
# Immediately refuse delievery (a 5xx error is returned to the peer)
# - Defer
# Return a temporary failure message (4xx) to the peer
# - Blackhole (not available for OnFail)
# Like Accept but the message is sent to oblivion
# - Quarantine (not available for OnFail)
# Like Accept but message is quarantined instead of being delivered
#
# NOTE: In Sendmail the quarantine queue can be examined via mailq -qQ
# For Postfix this causes the message to be placed on hold
#
# Action to be performed on clean messages (mostly useful for testing)
# Default Accept
#OnClean Accept

# Action to be performed on infected messages
# Default: Quarantine
#OnInfected Quarantine

Best regards,
--Edwin
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

ClamAV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.