Re: [exim] Dealing with Yahoo mail RFC violations

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Mike Cardwell
Fecha:  
A: exim-users
Asunto: Re: [exim] Dealing with Yahoo mail RFC violations
On 19/01/2011 18:16, Stuart Gall wrote:

> Yahoo.com set a maximum message size of about 6-7M. When the data hits the maximum size yahoo just drop the connection.
> So although the message is permanently rejected exim will see it as a temporary problem.
>
> I have set a custom retry for yahoo so that the messages do not retry so much and time out sooner. But I am still getting large (by definition) messages stuck in a continual retry cycle which is affecting performance.
>
> Ideally I would like to set a size limit for the yahoo.com domain so that I immediately reject any mail > 5M with a yahoo recipient (and possibly others throwing the baby out with the bath water etc)
> I could set a var in check_rcp for yahoo and check the size in check_content.
>
> Is there a more sensible way to do this, or a better way all together to deal with the problem.


acl_check_rcpt:

   warn domains         = yahoo.com
        set acl_m_yahoo = true


acl_check_data:

   deny condition = $acl_m_yahoo
        condition = ${if >{$message_size}{5M}
        message   = Your message has a Yahoo recipient and is >5MB


The trouble with this is that if a message has multiple recipients that
have yahoo and non-yahoo addresses, then the non-yahoo addresses will
also not get the email. You could of course see that as a feature rather
than a problem...

--
Mike Cardwell https://secure.grepular.com/ https://twitter.com/mickeyc
Professional http://cardwellit.com/ http://linkedin.com/in/mikecardwell
PGP.mit.edu 0018461F/35BC AF1D 3AA2 1F84 3DC3 B0CF 70A5 F512 0018 461F