edit/modify header_check

Discussion in 'Server Operation' started by alex3555, Oct 5, 2021.

  1. alex3555

    alex3555 New Member

    i want to hide ( Received and my ip ) in my header but didint want to hide !
    what the secret to hide Received and my ip in my header because itry more time in header_check but didint want to hide?
    pls help what the secret to hide ?
    or what the version postfix you can hide Received and my ip ?
     
  2. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    What did you try which wasn't working? A pcre or regex map from header_checks should be able to do that, eg.
    Code:
    smtp_header_checks = pcre:/etc/postfix/smtp_header_checks
    with
    Code:
    /^Received: .*/  IGNORE
    in the smtp_header_checks file.

    Note that you almost surely don't want that on your incoming mail on port 25, only mail which you send via port 465 or 587, so instead of setting smtp_header_checks right in main.cf, you configure those two services in master.cf, eg. see https://serverfault.com/a/998993 for how.
     
    alex3555 likes this.
  3. alex3555

    alex3555 New Member

    i have try this but Received and my ip still didnt hide ,
    what is version postfix that allow hide Received and my ip pls ?
     

Share This Page