I have been banging my head against the wall trying to solve this problem
all day. I feel like I've read every post that comes up related to
rewriting or hard coding the from header.
1. I have this in /etc/exim4/conf.d/rewrite/31_exim4-config_rewriting
* "User Name <sales@???>" Ffrs
And I know this is being used because if I change sales@??? to
something else, the From header does have that new email in it instead,
still with the www-data username.
I tried setting the GCOS for the www-data user so that the full name field
was "User Name". I also tried this for the Debian-exim user which the
process actually runs as.
I tried putting this add_header in 30_exim4-config_check_rcpt as well as
changing the control variable
accept
hosts = :
control = dkim_disable_verify/submission/sender_retain
add_header = From: User Name <sales@???>
No matter what I do I still see this in the logs:
368 SMTP>> MAIL FROM:<sales@???> SIZE=8682
and this in the raw email:
From: www-data <sales@???>
Can someone please tell me what I'm doing wrong? I'm using this version:
Exim version 4.84_2 #2 built 10-Feb-2018 14:37:59
Thanks so much in advance for any help.
Chad