Re: creating header checks

From: /dev/rob0 (no email)
Date: Fri May 02 2008 - 13:36:18 EDT

  • Next message: Victor Duchovni: "Re: How to copy all incoming and outgoing messages"

    On Thu May 1 2008 10:27:13 John Baker wrote:
    > I have only used headers checks to hold for spam scanning.
    >
    > But today after a phising scam came in purporting to be from our
    > helpdesk I put one like this in to block users from replying:
    >
    > /^To: / REJECT

    That won't match!

    Furthermore it's entirely the wrong tool for the purpose as described.
    Mail routing is done using the envelope recipient, and thus you need a
    check_recipient_access lookup to happen *before* permit_mynetworks and
    permit_sasl_authenticated.

    > And then I get this warning when I run postmap
    > /etc/postfix/header_checks
    >
    > postmap: warning: /etc/postfix/header_checks, line 1: record is in
    > "key: value" format; is this an alias file?

    The FAQ of trying to compile a regexp or pcre file with postmap(1),
    already answered.

    > It appeared from all the information I could find that I was going
    > about this the right way and the check actually does seem to work.

    You didn't find very good information. Try going into one of your
    users' MUAs and hit "reply". Then look at the actual MUA-generated
    "To:" header. Check your expression against that header using
    "postmap -q" or other pcre/regexp tool.

    > But I'm not clear on exactly what is going on. Why do I get this
    > warning and is there a proper way to do this that will make the
    > warning stop when I add a header_check?

    Patient: "Doc, it hurts when I do this."
    Doctor: "So don't do that!"

    -- 
        Offlist mail to this address is discarded unless
        "/dev/rob0" or "not-spam" is in Subject: header
    

  • Next message: Victor Duchovni: "Re: How to copy all incoming and outgoing messages"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD