How to make the right exim filter to change FROM address?

paisley

Verified User
Joined
Aug 17, 2013
Messages
63
Hello,

when I forward an email I want to use the forwarder email adress, because I use a SMTP provider which require I only send email from that domainname.

if $h_X-Forwarded-For: contains "@"
then
headers remove From
headers add "From: $h_to:"
deliver $h_to:
finish
endif

I tried something like this, but seems not to work
 
Back
Top