Michael Holzt wrote:
>> This occurs about 50 times in a row in the same process with the same 
>> remote address. Why should rcpt_ok be run last (that's what it says 
>> inside the file)? After all this is a pretty basic and cheap test.
>>     
>
> No. rcpt_ok _finally_ decides to accept or reject a message. It must
> therefore be run last, because there can not be a rcpt-hooking plugin
> after it.
>
> But i also think that it might make sense to remove the relay checking
> code from rcpt_ok and put in a separate plugin, e.g. called check_relay.
> This could then be run first in the rcpt-queue and deny all unauthorized
> relayings. rcpt_ok should probably be reduced to just what the name 
> implies: returning OK for each and every mail (but this could then also
> be made the default in qpsmtpd).
>   
mmh, I've disabled rcpt_ok for my config.
I'm not using rcpthosts nor allowing relaying over qpsmtpd.

check_relay would be a much better name :)

-- 
Jens


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to