On Nov 7, 2003, at 6:18 AM, Matt Sergeant wrote:


The current check for whether a client can relay or not is all in code in
check_relay (I extended this to support config files as well as %ENV,
because %ENV won't work with the SelectServer code). I realised that this
code could probably be better placed in the Connection class.

I think it'd make more sense to have a plugin hook for determining if the client is allowed to relay. Maybe have a method in the connection class that'll call the hook and return whether the client is a relayclient or not.


Checking $ENV{RELAYCLIENT} and the config files could maybe be the default in that method -- or maybe it should still be in a plugin.

Maybe having a new sub directory for "relay plugins" like we have the queue/ directory.


- ask


--
http://www.askbjoernhansen.com/



Reply via email to