header_checks PREPEND

From: (no name) (no email)
Date: Wed Nov 01 2006 - 05:03:42 EST

  • Next message: Sandy Drobic: "Re: header_checks PREPEND"

    Hi,

    Im looking to prepend [SPAM] to the Subject: of mails that come in with a preassigned X-SpamReason: value of 1..4.

    main.cf:header_checks = pcre:/etc/postfix/header_checks

    And in header_checks:
    /X-SpamReason: Yes, hits=([1..4]\.[0-9]*).*required/ PREPEND Subject: [SPAM]

    However this is overwriting the Subject completely, and Im just getting [SPAM] in the Subject of the mail
    once its received.

    Any idea what I could be doing wrong ?

    postfix-2.1.5-4.2.RHEL4

    alias_database = hash:/etc/aliases
    alias_maps = hash:/etc/aliases
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    daemon_directory = /usr/libexec/postfix
    debug_peer_level = 5
    header_checks = pcre:/etc/postfix/header_checks
    html_directory = no
    inet_interfaces = all
    local_recipient_maps =
    local_transport = error:local mail delivery is disabled
    mail_owner = postfix
    mailq_path = /usr/bin/mailq.postfix
    manpage_directory = /usr/share/man
    mydestination = postfix.hpcds.com
    mynetworks = a.b.c.d
    myorigin = $mydomain
    newaliases_path = /usr/bin/newaliases.postfix
    queue_directory = /var/spool/postfix
    readme_directory = /usr/share/doc/postfix-2.1.5/README_FILES
    relay_domains = hash:/etc/postfix/relay_domains
    relay_recipient_maps = hash:/etc/postfix/relay_recipients
    sample_directory = /usr/share/doc/postfix-2.1.5/samples
    sendmail_path = /usr/sbin/sendmail.postfix
    setgid_group = postdrop
    smtpd_client_restrictions = check_client_access hash:/etc/postfix/access
    transport_maps = hash:/etc/postfix/transport
    unknown_local_recipient_reject_code = 550
    virtual_alias_maps = hash:/etc/postfix/virtual

    Thanks,
    Nick .


  • Next message: Sandy Drobic: "Re: header_checks PREPEND"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD