Articles in this section

How to change mail sender header "From" in Postfix on a Plesk server?

kb: how-to Plesk for Linux

Applicable to:

  • Plesk for Linux

Question

How to change the "From" mail header in Postfix on a Plesk server?

Answer

Since there is no functionality to change the sender, you can apply the following workaround to solve your task.

Apply the generic map via Postfix config:

  1. Add to /etc/postfix/main.cf:

    # smtp_generic_maps = hash:/etc/postfix/generic

  2. Create a map:

    # vi /etc/postfix/genericusername@domain.com jdoe@example.com

  3. Generate map:

    # postmap /etc/postfix/generic

  4. Restart the Postfix service:

    # systemctl restart postfix

In this case, the "From" header will be rewritten to jdoe@example.com.

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.