Re: [courier-users] Remove Received headers in outgoing authed email?
Brought to you by:
mrsam
From: Sam V. <mr...@co...> - 2014-09-24 22:33:19
|
Jeff Potter writes: > > Hi List, > > How do we remove the initial Received header in outgoing email from our > servers, or at least mask out the IP address of our sending user? > > We have an instance of smtpd running specifically for authenticated users > (AUTH_REQUIRED=1). I looked through mailing lists; no luck; and I tried > TCPDOPTS="-nodnslookup -noidentlookup”, but also no luck. There is no built-in switch to turn this off, but looking around the config files, there might be a way to hack the startup scripts. In the esmtpd configuration file, replace PORT="25" with something like this PORT="25 /usr/bin/env TCPREMOTEIP=127.0.0.1 TCPREMOTEHOST=localhost" This might work in your specific situation only – a dedicated outbound-only server that requires authentication. $PORT is passed to couriertcpd, right before the path to the courieresmtpd executable. This should make the startup script execute env, which will clear out the environment variables before invoking courieresmtpd. |