Re: [Exim] max_msg_size

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Nico Erfurth
Datum:  
To: Bjoern.Arne.Ramann
CC: exim-users
Betreff: Re: [Exim] max_msg_size
Bjoern.Arne.Ramann@??? wrote:
> Hello,
>
> we have Exim 3, and we want to use Exim to configure max_msg_size per
> reciepent and not per sender. Is that posible?


I'm not that good with exim3 anymore (and I encourage anyone to upgrade
to exim4), but this should work in any case.

Set message_size_limit to your maximum allowed value (or to 0 if you
don't want a global limit)

reject_by_size:
   driver = forwardfile
   allow_fail
   condition = ${if > {$message_size}\
                   {${lookup {$local_part} lsearch \
                        {/etc/message_sizes} {$value} {999M}}}\
                  {yes}{no}\
                }
   data = :fail: Message to big (maximum is $value)


/etc/message_sizes should look like

user1: 10M
user2: 30M
user3: 500k


Nico