Changes

From SME Server
Jump to navigationJump to search
1,143 bytes added ,  21:44, 13 April 2019
Created page with "<span id="_top">Qpsmtpd#Plugins</span> = NAME = random_error = DESCRIPTION = This plugin randomly disconnects and issues DENYSOFTs. = #___top..."
<span id="_top">[[Qpsmtpd#Plugins]]</span>
= [[#___top|NAME]] =

random_error

= [[#___top|DESCRIPTION]] =

This plugin randomly disconnects and issues DENYSOFTs.

= [[#___top|CONFIG]] =

one parameter is allowed, which is how often to error, as a percentage of messages. The default is 1. Use a negative number to disable.

2/5 of failures are DENYSOFT_DISCONNECT, 3/5 simply DENYSOFT.

For use with other plugins, scribble the revised failure rate to

<pre> $self-&gt;connection-&gt;notes('random_fail_%');</pre>
= [[#___top|calculating the probability of failure]] =

There are six tests a message must pass to reach the queueing stage, and we wish to provide random failure for each one, with the combined probability being out configuration argument. So we want to solve this equation:

<pre> (1-x) ** 6 = ( 1 - input_number )</pre>
or

<pre> x = 1 - ( (1 - input_number ) ** (1/6) )</pre>
<!-- Generated Sat Apr 13 15:44:20 EDT 2019 using
perldoc -T -ohtml $plugins/$1 \|pandoc -f html -t mediawiki \|sed '1 i\\n\n\n<span id="_top">[[Qpsmtpd#Plugins]]</span>' \|sed -e 's#</d.>##'
-->
----
[[Category:Qpsmtpd|random_error]]

Navigation menu