Postfix and header_checks

Discussion in 'Installation/Configuration' started by destine, Nov 28, 2014.

  1. destine

    destine Member

    Hi,
    I need to rewrite From: field for every mail sending out from one domain but I also need disable this rewrite if sending mail come from the same domain. For example betwen two accounts user1@domain.com and user2@domain.com

    I can rewrite in that way, only if i send mail from my webmail but when Im using desktop mail client this rewrite it doesnt work.

    I use generic map like this
    @domain.con contact@domain.com

    and header_checks like this

    /^X-Sender:.*@domain.com/ REPLACE X-Sender: contact@domain.com

    How Can I configure postfix to rewrite also mail sending via mail clinet such as thunderbird or windows live mial

    Any idea?
     

Share This Page