[Dovecot] max connects per host?
Johannes Berg
johannes at sipsolutions.net
Mon Mar 17 17:52:45 EET 2008
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 828 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20080317/c57ac83f/attachment.bin
More information about the dovecot
mailing list