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:
-
Add to
/etc/postfix/main.cf
:# smtp_generic_maps = hash:/etc/postfix/generic
-
Create a map:
# vi /etc/postfix/genericusername@domain.com jdoe@example.com
-
Generate map:
# postmap /etc/postfix/generic
-
Restart the Postfix service:
# systemctl restart postfix
In this case, the "From" header will be rewritten to jdoe@example.com.
Comments
0 comments
Please sign in to leave a comment.