Re[2]: [Exim] Rejectin' mail a-la postfix header_checks rege…

Top Pagina
Delete this message
Reply to this message
Auteur: Sharun
Datum:  
Aan: Philip Hazel
CC: exim-users
Onderwerp: Re[2]: [Exim] Rejectin' mail a-la postfix header_checks regexp
>> And two wishes for exim 4:
>> 1. configurable timeout before 4xx or 5xx errors (i did it
>> by myself - 3 strings in smtp_in.c, and I think that's not a bad idea)
PH> I don't understand what you mean by this. Do you mean delaying before
PH> sending the response? Exim 4 has a different kind of delay mechanism,
PH> for delaying multiple messages/recipients.


Timeout between errored input (like rcpt to: <uknown@???>) and
4xx or 5xx error message to stdout. Main goal is slow down "bad"
clients

>> 2. configurable max_recipients_for_local_domains (and for
>> relay_domains). Ex: massive mailing-list comes to 100+ recipients for
>> domain, that matches local or relay_domain, we accept all recipientÙ,
>> but customers in host_accept_relay have another max_recipients (about
>> 10 or so)
PH> Exim 4 has no built-in concept of local or relay domains. But I think
PH> you can probably do what you want with the ACL facilities in Exim 4.


You mean i can say:
if dst_domain matches local_domain then max_recipients++ ?

Hmm, i also did the patch to exim-3.33 for single domain:

if ( strstr(receiver,"@ukr.net") != NULL )
    {
        if ( strlen(strstr(receiver,"@ukr.net")) == 8 ) rcpts_local_count++;
    }
// in cycle we can do it for each in local and (or) relay domains


then:
 if (recipients_max > 0 && ++rcount - rcpts_local_count > recipients_max)
    then {recipients_max_limit_reached}


Or something like this