[Exim] msg filter problem: $local_part

Etusivu
Poista viesti
Vastaa
Lähettäjä: Bjoern.Arne.Ramann
Päiväys:  
Vastaanottaja: exim-users
Aihe: [Exim] msg filter problem: $local_part
Hello everbody,

i have a problem with the exim msg-filter. i have exim 3.3 on a openbsd
system and is configured as a mailrelay only.

now i want configure allowed msg sizes. here is the statement in my
filterfile:

-----------------------snip----------------------------
if $message_body_size above "${lookup{$local_part} lsearch*@
{/etc/exim/max-msg-sizes}{$value}}" then
    fail text "Sorry, but your message is too big. You may only send
${lookup{$local_part} lsearch*@ {/etc/exim/max-msg-sizes}{$value}} bytes."
endif
-----------------------snip----------------------------


in max-msg-sizes i have:

-----------------------snip----------------------------
Big-Boss@???:  50M  # My big boss send and receive very big mails
*@mycompany.org          2M   # Default user send and receive normal mails
-----------------------snip----------------------------


I get a error:

-----------------------snip----------------------------
2003-03-21 16:31:50 18wPQq-00034u-00 <= Big-Boss@???
H=mail.mycompany.org [10.10.10.100] P=smtp S=1948926
id=C42B5DDD365E874EBF8E2E6F312BA63F136A@???
2003-03-21 16:31:50 18wPQq-00034u-00 Error in message_filter file:
malformed numerical string ""
2003-03-21 16:32:28 18wPQq-00034u-00 Error in message_filter file:
malformed numerical string ""
-----------------------snip----------------------------

thanks for hints,
bjoern rmann