I don't know why the Received header is used. I'm using a simple line of "/./ HOLD" myself.<br>A better question is why MailScanner still uses this hack to get access to the E-mail instead of using the normal Postfix API's available.<br>
<br><div class="gmail_quote">On 31 January 2012 20:19, Martijn <span dir="ltr"><<a href="mailto:mailinglist@mindconnect.nl">mailinglist@mindconnect.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello everyone,<br>
<br>
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>
<br>
I was wondering; why exactly is this done (at least by default) using a regex on the Received header?<br>
<br>
Is it never so that Postfix receives mail that doesn'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'ed to Postfix.<br>
<br>
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 "cleanup" stage ( <a href="http://www.postfix.org/BUILTIN_FILTER_README.html#what" target="_blank">http://www.postfix.org/<u></u>BUILTIN_FILTER_README.html#<u></u>what</a> ) which is before several other stages ( <a href="http://www.postfix.org/OVERVIEW.html" target="_blank">http://www.postfix.org/<u></u>OVERVIEW.html</a> ) but I have not yet found anything confirming that a Received header is added before the cleanup stage is reached.<br>
<br>
Just curious :-)<br>
<br>
--<br>
Kind regards,<br>
- Martijn<br><font color="#888888">
-- <br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">mailscanner@lists.mailscanner.<u></u>info</a><br>
<a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/<u></u>mailman/listinfo/mailscanner</a><br>
<br>
Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">http://wiki.mailscanner.info/<u></u>posting</a><br>
<br>
Support MailScanner development - buy the book off the website! </font></blockquote></div><br>