On Mon, 2008-03-17 at 17:45 +0200, Timo Sirainen wrote:

> > I know about
> > mail_max_userip_connections in dovecot 1.1
> 
> It should be pretty easy to patch this code to ignore the user and just
> limit IPs. You could basically just remove "user" from struct
> mail_process_group and fix the code to compile. Or even easier:
> 
> static struct mail_process_group *
> mail_process_group_lookup(enum process_type type, const char *user,
>                         const struct ip_addr *ip)
> {
>       user = ""; // use the same empty user for everyone
> 
> // ...
> 
> static struct mail_process_group *
> mail_process_group_create(enum process_type type, const char *user,
>                         const struct ip_addr *ip)
> {
>       struct mail_process_group *group;
> 
>       user = ""; // use the same empty user for everyone

Sounds like

> Probably in future versions.

could be trivially implemented with a "mail_process_group_lookup_key"
setting that defaults to %u :)

johannes

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to