Re: rcpthosts should be read before RCPT plugin execution
Brought to you by:
pavcio
|
From: Pawel F. <pj...@as...> - 2007-05-27 12:11:21
|
Hi Chris, On Wednesday 23 May 2007 17:30, Christoph Probst wrote: > I haven't looked into the SPP code but I guess that after the RCPT command > the plugins are executed prior to the rcpthosts/morercpthosts check. I > strongly recommend to switch these checks. Well that's not a bug, that's a feature ;-) Actually, the rcpthosts is checked *prior* to executing the plugins, but the result is used *after*. This is to make it possible for a plugin to be aware of this result and optionally skip this rcpthosts check (using the "O" command). I don't remember why I've added it, probably someone requested this, but please give me some more time to meditate on it and come up with an ultimate solution :-). As a temporary workaround, you may write a tiny plugin checking if SMTPRCPTHOSTSOK=1 and exiting with well-known "E553 sorry, that domain isn't in my list (...)". By adding it as first to the chain of plugins, you should minimize the impact of this bug. Any ideas welcome, as always. Bye, -- Pawel Foremski pj...@as... |