postfix-users November 2011 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: mime header checks

Re: mime header checks

From: K bharathan <kbharatan_at_nospam>
Date: Tue Nov 15 2011 - 21:10:07 GMT
To: postfix users list <postfix-users@postfix.org>

On Tue, Nov 15, 2011 at 10:47 PM, Jeroen Geilman <jeroen@adaptr.nl> wrote:

> On 2011-11-15 21:13, K bharathan wrote:
>
>> hi all
>> added a following regular expression for mime_header check
>>
>> /^Subject:.*LOANS OFFER/ REJECT spam #1
>> if i understand correctly cleanup service is doing the rejection; how
>> can i stop notify the sender; is there any difference in mime_header check
>> and header_check
>>
>
> header_checks and mime_header_checks do exactly what they say.
> If your header checks reject mail, the sender will be notified.
>
> If this is not what you want to do, specify a different action, such as
> DISCARD.
>
>
> --
> J.
>
> thanks i'll try discard action

i've put two checks together as follows in the main.cf:

mime_header_checks = pcre:/etc/postfix/mime_header_checks
header_checks = regexp:/etc/postfix/header_checks

if i put the expression /^Subject:.*LOANS OFFER/ REJECT in header_checks
it does not work but if i put the same in mime_header_checks it works
even though maps are different; i think i miss soemthing obvious