Re: [exim] Varying message size limit according to sending h…

Pàgina inicial
Delete this message
Reply to this message
Autor: ROGERS Richard
Data:  
A: 'exim-users@exim.org'
Assumpte: Re: [exim] Varying message size limit according to sending host?
Phil Pennock wrote:
=========
On 2011-09-08 at 10:14 +0100, ROGERS Richard wrote:
> Is it possible to vary the message size limit according to where the message is received from? I've had a bit of a look at this but it appears that message_size_limit is set globally - is this correct, or is there another way?


+------------------+---------+-------------+------------+
|message_size_limit|Use: main|Type: string*|Default: 50M|
+------------------+---------+-------------+------------+

"*" => expanded string

message_size_limit = ${if match_ip{$sender_host_address}{iplsearch;/some/file}{$value}{50M}}

-Phil

=========

Thanks Phil, that's pretty close to what I need - I will want to modify it to use a hostlist if possible, as I already have

hostlist printer_ips = 10.4.250.0/24 : 10.5.250.0/24 : 10.6.250.0/24 : 10.7.250.0/24 : 10.8.250.0/24 : 10.9.250.0/24 : 10.10.250.0/24 : 10.11.250.0/24 : 10.12.250.0/24 : 10.13.250.0/24 : 10.14.250.0/24 : 10.25.250.0/24 : 10.26.250.0/24 : 10.27.250.0/24 : 10.30.250.0/24 : 10.31.250.0/24 : 10.32.250.0/24 : 10.33.250.0/24 : 10.34.250.0/24 : 10.35.250.0/24 : 10.36.250.0/24 : 10.37.250.0/24 : 10.38.250.0/24 : 10.54.250.0/24 : 10.55.250.0/24 : 10.56.250.0/24 : 10.57.250.0/24 : 10.58.250.0/24 : 10.60.250.0/24 : 10.75.250.0/24 : 10.76.250.0/24 : 10.77.250.0/24 : 10.104.250.0/24 : 10.154.250.0/24 : 10.155.250.0/24 : 10.156.250.0/24

Assuming that can be done, we're home and hosed :-)

Thanks again, and regards

Richard