Re: [exim] daemon_smtp_ports

Top Page
Delete this message
Reply to this message
Author: Ian Eiloart
Date:  
To: Graziano
CC: <exim-users@exim.org>
Subject: Re: [exim] daemon_smtp_ports

On 21 Nov 2011, at 08:59, Graziano wrote:

> Hello
>
> I am using following 2 lines in top of exim.conf
>
> local_interfaces = 127.0.0.1
> daemon_smtp_ports = 125
>
> It proxies to my antispam filter (ASSP) over the port 125 ALL the email received from internet .
> It works ok , however I would not pass to my antispam ALL the email , but ONLY the email
> which have an email size lower than 256000 bytes .


I'm confused. daemon_smtp_ports specifies ports for incoming email. That won't help if you are trying to send email TO your ASSP. However, you need to specify the message size in the sending MTA.

Is this Exim sending *TO* the ASSP, or Exim receiving mail *FOR* the ASSP.

On the sending host, you need a router condition that tests $message_size. Something like this:

condition = ${if < {$message_size}{256K}}

This is from an example in section 41.2 of the documentation, for ACLs, but I think you can use it in routers. I'm not sure if it uses the value of the SIZE parameter on the MAIL command, or the real message size. You'll have problems if it's the former.


> Is there a way to do that ?
>
> Thank you
> Graziano
>
> --
> ## List details at https://lists.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://wiki.exim.org/


--
Ian Eiloart
Postmaster, University of Sussex
+44 (0) 1273 87-3148