<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>I'm sorry, I really thing you are over-engineering the problem. In as simple a language that I can, this is what happens in postfix:</p>
<ol>
<li>An SMTP connecting is made. Postfix accepts the initial HELO, Mail From and Rcpt To.</li>
<li>Postfix supplies this information to PostGrey</li>
<li>Postgrey does a lookup of the sending server (I think it does it by host name from the EHLO but it might be by IP address), and the from address.</li>
<li>If it finds no entries, it adds one with the current time stamp, and rejects the SMTP connection with a "temporarily unavailable" message.</li>
<li>If it finds an entry, it checks the stored time stamp against the current time. If it is over the delay setting, it allows it and updates the timestamp.</li>
<li>Somewhere along the way there is a cleanup task that removes old entries.</li>
</ol>
<p>That's it. It is that simple. That is why PostGray can be a 'bit stupid' with some mail systems that use multiple relays on resends.</p>
<p>Regards,</p>
<p>Marco</p>
<p><br /></p>
<p>On 2020-03-03 14:31, Henrik Morsing wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"><span style="white-space: nowrap;">On Tue, Mar 03, 2020 at 02:28:55PM +0000, Marco van Beek wrote:</span>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><span style="white-space: nowrap;">When it connects again it just does the maths and if it is more than 300 seconds it lets it through.</span><br /> </blockquote>
<br /> <span style="white-space: nowrap;">Since what? If it's stateless, what will it compare the 300 seconds to? </span><br /> <br /> <span style="white-space: nowrap;">It's just impossible, but nevermind, I will figure it out.</span><br /> <br /> Thanks<br /> Henrik</div>
</blockquote>
</body></html>