[exim] User filters in Exim 4: "save" action

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Manuel Molina Cuberos
Date:  
À: exim-users
Sujet: [exim] User filters in Exim 4: "save" action

Hello all!

Here at Ya.com we're ending a transition of some machines from Exim 3.34
to Exim 4.62. Almost everything working now, I have one issue with
filters I think someone in this list should already solved.

We're using LDAP to extract the mailbox data of each recipient. This is
working fine, but once the email reach the mailbox, if the user have
some kind of foldering filters like:


# Exim filter <<== do not edit or remove this line!
if $header_subject contains "badsubject" then
logwrite "$tod_log filtering a mail to the spam folder"
save Maildir/.F1165853268
else
logwrite "$tod_log email not filtered"
endif


I put logwrite data to show that the condition was met. If I delete the
"save" line, then the email wasn't delivered, but with the line, the
email is delivered to the standard location specified in our configuration:


begin routers
filters:
driver = redirect
allow_filter
user = mta
check_ancestor
no_check_local_user
directory_transport = local_delivery
no_expn
file = ${extract {mailMessageStore}{$h_EXTRALDAP:}{$value}}/.filter
file_transport = local_delivery
ignore_eacces
ignore_enotdir
modemask = 002
pipe_transport = transport_pipe
reply_transport = auto_reply
retry_use_local_part
no_verify

# ...
# ...

begin transports

local_delivery:
driver = appendfile
maildir_format
no_create_directory
directory = "${extract {mailMessageStore}{$h_EXTRALDAP:}{${value}Maildir/}}"
quota = "${extract {mailQuota}{$h_EXTRALDAP:}{${value}}}"
quota_warn_threshold = "90%"
quota_warn_message = "\
To: $local_part@$domain\n\
Subject: Some quota warning.\n\n\
Automatically generated message.... \\n"
delivery_date_add
envelope_to_add
return_path_add
user = mta
group = mta
mode = 0660
headers_remove = EXTRALDAP : X-Spam-Checker-Version : X-Spam-Level


I have to note that the equivalent configuration on Exim 3.34 is working
now, and in the case of a foldering filter, the argument of "save"
command bypasses the standard location of the user's mailbox.

I know Exim 3.34 is not supported now, but I'm in need of a hint to
force the filter to deliver the message properly.

Thanks in advance,

--
Manuel Molina Cuberos

Administrador de Sistemas
Área Técnica

T-Online Telecommunications Spain, S.A.U
Grupo Deutsche Telekom
Edificio Gorbea 4
Avda. Bruselas, 20 3ª planta
28108 Alcobendas – Madrid
Telf: +34 911 41 7931
Fax +34 911 41 7700

Este mensaje puede contener información confidencial dirigida únicamente
a su destinatario. Si usted no es el destinatario de este mensaje, según
consta en el mismo, por favor destruya el mensaje y advierta al
remitente del error respondiendo a este mensaje por correo electrónico.
No está autorizada la copia o entrega de este mensaje a quienes no son
destinatarios del mismo.