[Exim] Problem with central-filter...

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Ingo Bertulat
Data:  
Para: exim-users
Asunto: [Exim] Problem with central-filter...
Hi,

I made an redirect_router with a filter to control the maximum messagesize, depending on the
sender, resp. reciepent. It works fine by checking $h_to, but there is a problem with the 'cc'.
If $h_to is allowed to send or recieve a mail with size x, the 'cc' are not checked and the mail
will be delivered to every 'cc', regardless if he is allowed to recieve this big mail.
On the other hand, if $h_to is not allowed to send/recieve such a mail, every delivering to these
'cc' will fail.
Is it possible to check every 'cc'-mailaddress with a filter?

regards,
Ingo
-------------------------------------------------------------

# Exim filter

add 2048 to n0
if ($message_size above $n0) and ($h_from does not contains "Mailer-Daemon")
then
    if(($h_from contains "allowed_sender") or
       ($h_to contains "allowed_reciepent"))
    then
        finish
    else
        fail "messagesize exceeds the maximum size of $n0 byte"
    endif
else
    finish
endif