Re: [exim] retry rules with regular expressions

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Stuart Gall
Fecha:  
A: exim-users
Cc: Zbigniew Szalbot
Asunto: Re: [exim] retry rules with regular expressions

On 3 Nov 2006, at 12:29, Philip Hazel wrote:

> On Fri, 3 Nov 2006, Zbigniew Szalbot wrote:
>
>> I would like to handle shorter retry times to all yahoo domains. I
>> know I
>> could use the pattern
>> yahoo.com
>> yahoo.ca
>> etc.
>>
>> Is this the only way to go or can I somehow specify yahoo.* to
>> match all
>> yahoo domains and specify shorter max-mail-in-queue time for it?
>
> No. Exim provides only *.something for "ends with". If you want
> anything
> more complicated you have to use a regex. Even for "begins with". :-)
> You could try ^[^@]+@yahoo\. as a pattern (wrap it in \N...\N).
>
> ... and of course you'll just have to hope that somebody completely
> unrelated to Yahoo! doesn't have a domain called
> yahoo.their.top.domain,
> but I guess it wouldn't really matter much if they did.


If you could be bothered you could gather a list of all the yahoo MX
records. (or at least all the ones relevant to your mailing list)
and then write a custom retry rule for them.

See retries section of the config file

>
> -- 
> Philip Hazel            University of Cambridge Computing Service
> Get the Exim 4 book:    http://www.uit.co.uk/exim-book

>
> --
> ## List details at http://www.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://www.exim.org/eximwiki/
>