OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: Can we give an error code for body_checks?
From: Franck Martin (francksopac.org)
Date: Tue Dec 05 2000 - 17:37:13 CST


Lars Hecking wrote:

>
> > > I believe you can only set REJECT or IGNORE for header checks.
> >
> > That's been my experience to date, but I'll swear I ran across
> > something today that told me I could use the numbered codes. I
> > just can't find my way back to that something... It was
> > somewhere in the source release or sample configs or the web
> > site...
>
> main.cf:
> # The header_checks parameter restricts what may appear in message
> # headers. This requires that POSIX or PCRE regular expression support
> # is built-in. Specify "/^header-name: stuff you do not want/ REJECT"
> # in the pattern file. Patterns are case-insensitive by default. Note:
> # specify only patterns ending in REJECT. Patterns ending in OK are
> # mostly a waste of cycles.
> #
>
> RELEASE_NOTES:
> Major changes with snapshot-20000921
> ====================================
> [...]
> The header_checks and body_checks features can now be used to strip
> out unwanted data. Specify IGNORE and the data will disappear.
>
> HTH. HAND.

This is a setp forward, and I'm glad it is there. I guess IGNORE strip
the line not the message ?

However we still need to send back an explanation error. Much better than
"content rejected". Wietse, your advice please ?

Thanks
Cheers.