September 2009

Exim - Stripping headers for authenticated mail relaying

I solved another interesting problem today and thought it was worth sharing. My 'problem' is that when an authenticated user performs an SMTP relay via exim, I want to strip out the received by lines. This effectively hides their origination IP, which could be a DSL line or some public IP address that would otherwise be blacklisted by the recipient's ISP. For whatever reason this took a long time of Googling and all of the posts about how to do this were references to the exim manual pages.