Technical,
To answer your question:
Can you teach us how to configurate Spamihilator and avast in a chain...
I mean: I want 'first' getting rid of spam and then scan the other messages (the ones really downloaded) with avast.
The following steps should work for most antispam proxies including Spamihilator, Spampal and PopFile etc.
Step one:
Setup the antispam proxy as described in their documentation. Most require you to change the pop server in your mail client from e.g mail.myisp.com to 127.0.0.1 (They all generally will not require you to change the pop server port from the default of 110)
Then each of them have instructions to change the pop user name by including the pop server name, for example if your pop user name was jsmith, Spamihilator requires that you change it to mail.myisp.com&jsmith or Spampal would request the change to jsmith@mail.myisp.com
Once you have setup your mail client to work with your favourite antispam proxy (Spamihilator , Spampal etc) and have tested that it all works, putting avast! in the chain is relatively simple particularily if you want the spamfilter to be the first to filter the mail and then have avast filter it after that.
Edit the avast4.ini file and replace/modify the following lines in the [MailScanner] section to these values:
[MailScanner]
PopListen=127.0.0.1:8110
Trust=127.0.0.1
DefaultPopServer=127.0.0.1:110
Now all you have to do is make one more change in your mail client. Go back to the mail client configuration and change the pop server port from 110 to 8110
This will place avast first in the proxy chain where it is the last to get mail (after being filtered for spam and just before it reaches the inbox in your mail client.
The flow will be:
email client-->127.0.0.1 (port8110)avast--->127.0.0.1 (port110) Antispam proxy--->pop server (mail.myisp.com - port 110)
This setup will also support multiple accounts.
I hope all this makes sense. It should work for all the antispam proxies I mentioned above
Note:
It only gets complicated if you changed the mail client pop3 port to something other then 110 in order to have the antispam proxy work (if it is listening on some other port.) If you did that just make sure when you edit the avasy4.ini file the you also replace the 110 at the end of the DefaultPopServer=127.0.0.1:110 line with the port number. (You would still change the pop port in the mail client from whatever it is to 8110.)
Sean D