Re: [Exim] Notify message if eMail is frozen

Startseite
Nachricht löschen
Nachricht beantworten
Autor: ODHIAMBO G. Washington
Datum:  
To: EXIM Official Maillist
Betreff: Re: [Exim] Notify message if eMail is frozen
* Jens Strohschnitter <exim-ml@???> [20030811 17:24]: wrote:
> Hi there,
>
> is it possible and how to notify the sender, when a mail was frozen ?
> In our network we freeze all mails that is bigger than 500k with an
> filter:
>
> if $message_size above 500K then
> freeze "Mail too big !!!"
> endif


Why bother to freeze? Why not just reject? Anyway, you can still modify the
filter to do what you want.
I'd rather you reject the messages so that the senders get to know.
A router that can do that is below: Put the router after your
system_aliases router:


reject_by_size:
 driver         = redirect
 condition      = ${if > {$message_size}\
                  {${lookup {$local_part} lsearch \
                  {/usr/local/etc/exim/message_sizes}{$value}{500K}}} \
                  {yes}{no}}
 data           = :fail: Message too big (maximum size accepted is ${lookup {$local_part} \
                  lsearch {/usr/local/etc/exim/message_sizes} {$value} {500K}})
 local_parts    = passwd;$local_part
 allow_fail



The /usr/local/etc/exim/message_sizes can contain user preferred sizes:

*: 500K
user2: 1M



-Wash

--
Odhiambo Washington   <wash@???>  "The box said 'Requires
Wananchi Online Ltd.  www.wananchi.com      Windows 95, NT, or better,'
Tel: +254 2 313985-9  +254 2 313922         so I installed FreeBSD."
GSM: +254 72 743223   +254 733 744121       This sig is McQ!  :-)



Mophobia, n.:
    Fear of being verbally abused by a Mississippian.