In the docs on customizing the Exim System Filter File
How to Customize the Exim System Filter File | cPanel & WHM Documentation
there is a reference to "$_from:" which would be the sender's address ("From" in the Exim docs.)
Where is a complete list of all header field names available for use?
Please don't just point to the Exim docs. Have looked through them and there does not seem to be a single, simple consolidated list of such header field names.
Also, when working with files such as /etc/antivirus.empty, and with regards to headers_add and headers_remove, what headers cannot be modified?
Here's an example of one wherein a company rep sends from a personal address, but "From" is re-written from the personal to a corporate email alias. Entries in /etc/valiases would take care of forwarding anything sent to the corporate alias to the actual, personal address. This is for inbound, and works as expected:
# Rewrite From address for Vermont rep
if $header_from: contains "[email protected]"
then
headers add "Actual-From: [Rep-Rewrite] $h_from:"
headers remove From
headers add "From: Vermont Rep <[email protected]>"
headers remove Reply-To
headers add "Reply-To: Vermont Rep <[email protected]>"
endif
Please advise. Thanks!
--
Carl
How to Customize the Exim System Filter File | cPanel & WHM Documentation
there is a reference to "$_from:" which would be the sender's address ("From" in the Exim docs.)
Where is a complete list of all header field names available for use?
Please don't just point to the Exim docs. Have looked through them and there does not seem to be a single, simple consolidated list of such header field names.
Also, when working with files such as /etc/antivirus.empty, and with regards to headers_add and headers_remove, what headers cannot be modified?
Here's an example of one wherein a company rep sends from a personal address, but "From" is re-written from the personal to a corporate email alias. Entries in /etc/valiases would take care of forwarding anything sent to the corporate alias to the actual, personal address. This is for inbound, and works as expected:
# Rewrite From address for Vermont rep
if $header_from: contains "[email protected]"
then
headers add "Actual-From: [Rep-Rewrite] $h_from:"
headers remove From
headers add "From: Vermont Rep <[email protected]>"
headers remove Reply-To
headers add "Reply-To: Vermont Rep <[email protected]>"
endif
Please advise. Thanks!
--
Carl