hosts_allow plugin

2015-06-09 Thread Chris Dallimore
Hi, I'm still a novice and learning, but I'm playing with 0.95 and have come across an issue with the hosts_allow plugin. Specifically this part in sub in_hosts_allow: $const = Qpsmtpd::Constants::return_code($const) || DECLINED; if ($const

Re: white-listing in hosts_allow plugin

2010-12-15 Thread Jared Johnson
> return DENYSOFT_DISCONNECT, 'Too many connections from your class C' > if ( grep {(ip_to_int($_)&0xff00) == $mask} > @{$arg->{child_addrs}} ) Though this code is still untested in its heavily-modified-from-our-version form, I feel like I should point out that should

Re: white-listing in hosts_allow plugin

2010-12-15 Thread Jared Johnson
> IIRC, the connections-per-ip code isn't in a plugin right now -- it's > part of the main binary -- because it requires some sort of shared > state which we don't have for plugins. The checks do exist in the binaries but they don't have to, you can use $arg{child_addrs} and $arg{remote_ip} in hoo

Re: white-listing in hosts_allow plugin

2010-12-14 Thread Robert Spier
Robin Bowes wrote: > > On 09/12/10 13:10, Robin Bowes wrote: > > Hi, > > > > I'd like to add the capability to white-list in the hosts_allow plugin. > > Specifically, we have a relay that we expect to get multiple connections > > from so I don&#x

Re: white-listing in hosts_allow plugin

2010-12-09 Thread Robin Bowes
On 09/12/10 13:10, Robin Bowes wrote: > Hi, > > I'd like to add the capability to white-list in the hosts_allow plugin. > Specifically, we have a relay that we expect to get multiple connections > from so I don't want to restrict connections from that IP. > > I

white-listing in hosts_allow plugin

2010-12-09 Thread Robin Bowes
Hi, I'd like to add the capability to white-list in the hosts_allow plugin. Specifically, we have a relay that we expect to get multiple connections from so I don't want to restrict connections from that IP. I was looking at the hosts_allow code, trying to work out the best way to impl