Re: [Exim] sending all virus e-mails to different alias

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Edgar Lovecraft
Data:  
Para: exim-users
Asunto: Re: [Exim] sending all virus e-mails to different alias
Rejo Zenger wrote:
>
> Hi,
>
> I want to have all the e-mails with virusses filtered to a different
> alias. I have come up with this:
>
> |  acl_check_content:
> |
> |       warn  demime       = *
> |             malware      = *
> |             set acl_c0   = virus
> |             logwrite     = virusstats [...]
> |             message      = Virus found: ($malware_name).

>
> and
>
> |  virus_redirect:
> |    driver        = redirect
> |    condition     = ${if eq{$acl_c0}{virus} {1}{0}}
> |    data          = rejo@???
> |    pipe_transport = address_pipe

>
>
> This does verify virusmesssages, but it does not forward them to the
> specified account. Why not?
>

Try using the $acl_mXXX rather than $acl_cXXX and acl_cXXX holds per
connection information, and off the top of my head, I cannot remember if
the spool files hold acl_c information, but if you are on a newer exim
binary then acl_m should be accesable from Routers.
What version of exim are you running?
--

--EAL--