Header_checks Postfix Issue

Discussion in 'Server Operation' started by deepoOoOoz, Sep 16, 2013.

  1. deepoOoOoz

    deepoOoOoz New Member

    Hi all,

    I need to reject envelope message with the following parameters:
    X-Original-To: [email protected]
    Delivered-To: [email protected]
    From: [email protected]

    These were specific names not general names,
    So i made the following in header_checks file

    /etc/postfix/header_checks:

    /^X-Original-To: ([email protected]\.domain-af\.com) +/
    reject forged client name in X-Original-to: header: $1
    /^Delivered-To: ([email protected]\.domain-af\.com) +/
    reject forged client name in Delivered-to: header: $1
    /^From: ([email protected]\.net) +/
    reject forged client name in From: header: $1
    /^Message-ID:.*@(cgremtpprd\.realdomain\.net)/
    reject forged domain name in Message-ID: header: $1


    Is that Ok ?
    should we add if condition to group them all ?
    I need your help please, Thanks in advance :)
     

Share This Page