Because using a hold queue makes it more smtp agnostic rather than having to figure out way ever wacky way postfix or other smtp needs things to works - or in postfixes case whatever wacky way weitse wants postfix to work this week<br>
<br>Martin<br><br>On Tuesday, 31 January 2012, Joolee &lt;<a href="mailto:mailscanner@joolee.nl">mailscanner@joolee.nl</a>&gt; wrote:<br>&gt; I don&#39;t know why the Received header is used. I&#39;m using a simple line of &quot;/./ HOLD&quot; myself.<br>
&gt; A better question is why MailScanner still uses this hack to get access to the E-mail instead of using the normal Postfix API&#39;s available.<br>&gt;<br>&gt; On 31 January 2012 20:19, Martijn &lt;<a href="mailto:mailinglist@mindconnect.nl">mailinglist@mindconnect.nl</a>&gt; wrote:<br>
&gt;&gt;<br>&gt;&gt; Hello everyone,<br>&gt;&gt;<br>&gt;&gt; While installing and documenting my hopefully soon-to-be-fully-operational MailScanner installation, I of course came accross the part where you ask Postfix to put everything in the HOLD queue.<br>
&gt;&gt;<br>&gt;&gt; I was wondering; why exactly is this done (at least by default) using a regex on the Received header?<br>&gt;&gt;<br>&gt;&gt; Is it never so that Postfix receives mail that doesn&#39;t contain a Received header? I could imagine this to happen for example when a website on the same host sends e-mail instead of when e-mail from abroad is SMTP&#39;ed to Postfix.<br>
&gt;&gt;<br>&gt;&gt; Or, is this not an issue because Postfix adds a Received header before it reaches header_check? I have found that header_checks take place in the &quot;cleanup&quot; stage ( <a href="http://www.postfix.org/BUILTIN_FILTER_README.html#what">http://www.postfix.org/BUILTIN_FILTER_README.html#what</a> ) which is before several other stages ( <a href="http://www.postfix.org/OVERVIEW.html">http://www.postfix.org/OVERVIEW.html</a> ) but I have not yet found anything confirming that a Received header is added before the cleanup stage is reached.<br>
&gt;&gt;<br>&gt;&gt; Just curious :-)<br>&gt;&gt;<br>&gt;&gt; --<br>&gt;&gt; Kind regards,<br>&gt;&gt; - Martijn<br>&gt;&gt; --<br>&gt;&gt; MailScanner mailing list<br>&gt;&gt; <a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>
&gt;&gt; <a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>&gt;&gt;<br>&gt;&gt; Before posting, read <a href="http://wiki.mailscanner.info/posting">http://wiki.mailscanner.info/posting</a><br>
&gt;&gt;<br>&gt;&gt; Support MailScanner development - buy the book off the website!<br>&gt;<br><br>-- <br>-- <br>Martin Hepworth<br>Oxford, UK<br>