Re: [Exim] exiscan report and virusscan problems

Etusivu
Poista viesti
Vastaa
Lähettäjä: Odhiambo G. Washington
Päiväys:  
Vastaanottaja: SH Solutions
Kopio: exim-users
Aihe: Re: [Exim] exiscan report and virusscan problems
* SH Solutions <info@???> [20040224 16:12]: wrote:
> Hello
>
> after being a litte overcautious for installing clamav and spamassassin and
> pushing every mail through this systems, I finally did it and it worked
> rather good. At least configuration was very easy [using mostly default
> configurations]. What I have that far is:
>
> av_scanner = clamd:/var/run/clamd.ctl
> spamd_address = 127.0.0.1 783
>
>   warn    message        = X-Scan-Mime-Error: $demime_reason
>           demime         = *
>           condition      = ${if >{$demime_errorlevel}{0}{1}{0}}
>   warn    message        = X-Scan-Virus-Found: $malware_name
>           malware        = *
>   warn    message        = X-Spam-Score: $spam_score ($spam_bar)
>           spam           = nobody:true
>   warn    message        = X-Spam-Report: $spam_report
>           spam           = nobody:true

>
> [Current configuraiton is for scanning and tagging only. Dropping of mail
> will be part of the second test phase.]
>
> Now, at first there are two problem:
>
> 1. The Spam-Report looks quite large:
>
> X-Spam-Score: 0.0 (/)
> X-Spam-Report: Spam detection software, running on the system
> "server01.sh-solutions.de", has
>     identified this incoming email as possible spam.  The original
> message
>     has been attached to this so you can view it (if it isn't spam) or
> block
>     similar future email.  If you have any questions, see
>     the administrator of that system for details.
>     Content preview:  On Tue, 2004-02-24 at 12:14 +0000, Philip Hazel
> wrote:
>     > On Tue, 24 Feb 2004, David Woodhouse wrote: > > > Out of interest,
> do
>     you happen to recall if did they explicitly _want_ > > the old data
>     repeated, or would 'return_path_on_delivery' have sufficed > > to
>     satisfy them too? > > Can't remember. [...]
>     Content analysis details:   (0.0 points, 5.0 required)
>     pts rule name              description
>     ---- ----------------------
> --------------------------------------------------

>
> I would prefer something a litte shorter, i.e. only the points-table from
> the end. everything above that pts... line is not required.
> How can I change this?


In local.cf (you obviously know where that file is), you need something
like this:


clear_report_template
report ---- Start Spam Filter report
report Filter analysis score is (_HITS_/_REQD_)
report _SUMMARY_
report ---- End Spam Filter results


> 2. X-Scan-Virus-Found-Headers are omitted if no virus is found. I would like
> to add them with values "No virus found" or "Virus Scanner offline".
> Can this even be archieved? [Same for Mime-Error-Headers]


;-)) Why increase the message_size for no reason? Anyway I leave that to
someone else to answer.


> Secondly, there are two things I'd like to change:
>
> 1. spamd is accessed through TCP/IP. I would like to change this to unix
> sockets as with clamd. Is this possible?


Yes. I believe it is. IIRC, SpamAssassin from 2.6? allows spamd to
listen on a Unix socket. Not that I use that already, but you can
configure it to. I also thing what you are asking for is implemented in
the exiscan version mentioned here:

http://article.gmane.org/gmane.mail.exim.exiscan.user/1410


> 2. I would like to do those scanning processes as part of the delivery
> process, since i anyway will NOT reject mail, but drop them. For me it would
> be easier to do this afterwards because I could do that depending on the
> receipient [let users have filter/not filter settings] and it would not
> delay message reception.


I am doing copy/paste of what Tim Jackson wrote to another poster
recently:

<paste>
http://dman13.dyndns.org/~dman/config_docs/exim-spamassassin/node12.html

(this is for SpamAssassin, I'm sure you could cook up something similar
for virus scanning)

However, if you decide to go down the reinjection route, make sure
you've considered what you are going to do with mails if they are
virus-infected or classified as spam. Hopefully devnull them or move them into a "spam"
folder, not try to bounce them (to avoid collateral spam)..?
</paste>




        cheers
       - wash
+----------------------------------+-----------------------------------------+
Odhiambo Washington                     . WANANCHI ONLINE LTD (Nairobi, KE)  |
<wash at wananchi dot com>              . 1ere Etage, Loita Hse, Loita St.,  |
GSM: (+254) 722 743 223                 . # 10286, 00100 NAIROBI             |
GSM: (+254) 733 744 121                 . (+254) 020 313 985 - 9             |
+---------------------------------+------------------------------------------+
"Oh My God! They killed init! You Bastards!"
                         --from a /. post