[Exim] Size limiting

Top Page
Delete this message
Reply to this message
Author: S White
Date:  
To: exim-users
Subject: [Exim] Size limiting
Hi!

I hope someone can help me with this one as it's a little sticky.

I run an SMTP relay server for our intranet, accepting mail for the
various departments and delivering it to their own mailservers. The
problem that I am experiencing is that some of the departments have
imposed message size limits lower than others, some departments have a
2meg limit where the others generally permit messages up to 5meg in size.

Where this becomes a problem is in users within a department having
messages larger than their own size limit mailed to them. The relay server
must accept the message, spool it, attempt delivery and then bounce it
right back. This problem becomes compounded when the departmental server
(MS Exchange in one particular problem case) either crashes or is taken
down. My spool fills up real fast under those circumstances.

What I need is a way to tell our relay that it has differing mail sizes
that it will accept based on the eventual destination of the message,
rejecting messages that exceed the size limits set. Logically, the best
place to do this would be in a router definition but I haven't been able
to find how. Setting up a seperate transport definition for a particular
router associated with a department and setting the size limit there
appears to be possible *but* is that size setting checked when a message
is received or only when delivery is attempted by exim?

Any ideas on how I might get this to work would be appreciated.

Regards,
- Sean.

--
~/.signature not found: forging one.