logs archiveIRC Archive / Freenode / #exim / 2009 / December / 28 / 1
Mystique_
morning
petemc: are you there? :)
trying to figure out how I can reject 'large' messages faster
I have a relay server that takes mail and maxes out @20MB
I contintually have people that upload huge (almost 30M) emails
and when I reject them they just sit in their 'outboxes' and try again in 5 minutes :/
djce
Mystique_: MTA (incoming mail) or MSA (outgoing)?
Mystique_
so i'm not sure how I could force a 5xx error
well their mua is sending to my exim
I'm trying to reject it at my mta
before I take it
which exim does
but then the user (mua) keeps trying again and again..
djce
depends on the MUA, I suspect.
You may get different behaviours depending on whether you reject at MAIL time, or DATA, or post-data; or just accept then bounce.
accept+bounce is most likely to prevent the mua retrying.
and also gives the best opportunity to send a nicely-formatted error back to the user.
so that's probably the best option, unless you suspect that the return addresses aren't valid.
(IMO)
Mystique_
hmm, never thought of that..
djce
In general, the most pragmatic approach is often:
accept+bounce submissions from your own users, using their own return paths;
reject at smtp-time for everything else.
Mystique_
well this is an smtp-auth relay only server..
djce
(oh, and accept whatever you want to accept, of course :-)
Mystique_
I have exim on inbound mx side,
but this is purely smtp-auth relay
my other idea was to try and force exim into esmtp only
so that the SIZE would get sent
but I could not figure out how to do that..
         

djce
yes, that would allow you to reject MAIL based on SIZE=x
but some MUAs may react well to that, and some might not.
If you have a limited MUA base (e.g. all Thunderbird), and that MUA reacts well to rejected MAIL, then fine.
But if not, then that doesn't help.
« prev next »