Question about the HOLD header check: why use "Received" ?

Martin Hepworth maxsec at gmail.com
Tue Jan 31 21:20:02 GMT 2012


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

Martin

On Tuesday, 31 January 2012, Joolee <mailscanner at joolee.nl> wrote:
> I don't know why the Received header is used. I'm using a simple line of
"/./ HOLD" myself.
> 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.
>
> On 31 January 2012 20:19, Martijn <mailinglist at mindconnect.nl> wrote:
>>
>> Hello everyone,
>>
>> 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.
>>
>> I was wondering; why exactly is this done (at least by default) using a
regex on the Received header?
>>
>> 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.
>>
>> 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 ( http://www.postfix.org/BUILTIN_FILTER_README.html#what )
which is before several other stages (
http://www.postfix.org/OVERVIEW.html) but I have not yet found
anything confirming that a Received header is
added before the cleanup stage is reached.
>>
>> Just curious :-)
>>
>> --
>> Kind regards,
>> - Martijn
>> --
>> MailScanner mailing list
>> mailscanner at lists.mailscanner.info
>> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>>
>> Before posting, read http://wiki.mailscanner.info/posting
>>
>> Support MailScanner development - buy the book off the website!
>

-- 
-- 
Martin Hepworth
Oxford, UK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20120131/8e95371c/attachment.html


More information about the MailScanner mailing list