Remove Exim version number
I'm trying to get rid of the version number that you see when you get an email sent from Exim.
Received: from user1 by site.org with local (Exim 4.72)
I'v tried editing smtp_banner in these two files
/etc/exim4/conf.d/main/02_exim4-config_options
/etc/exim4/exim4.conf.template
But deleting the version number from there, then reloading Exim's config doesn't work.
I send my test emails like so:
echo "Message Content" | mail -s "Subject goes here" [email protected] -v
Update 1
comp1:/etc/exim4# ls -l /etc/exim4/ total 96 drwxr-xr-x 9 root root 4096 Jul 30 2010 conf.d -rw-r--r-- 1 root root 76239 Jan 21 08:24 exim4.conf.template -rw-r----- 1 root Debian-exim 204 Sep 30 2008 passwd.client -rw-r--r-- 1 root root 1462 Jan 21 07:39 update-exim4.conf.conf
Open the file /etc/exim.conf
and find the key smtp_banner
, then change that line in this way :
From
smtp_banner = "${primary_hostname} ESMTP Exim ${version_number} \
To
smtp_banner = "${primary_hostname} ESMTP \
smtp_banner modifies the banner displayed to the client upon connection, but it looks like you want to change what's being put in the Received: header.
For that, you'll want to define received_header_text, probably in /etc/exim4/conf.d/main/02_exim4-config_options. The option isn't in the file by default, but per the documentation the default setting is
received_header_text = Received: \
${if def:sender_rcvhost {from $sender_rcvhost\n\t}\
{${if def:sender_ident \
{from ${quote_local_part:$sender_ident} }}\
${if def:sender_helo_name {(helo=$sender_helo_name)\n\t}}}}\
by $primary_hostname \
${if def:received_protocol {with $received_protocol}} \
${if def:tls_cipher {($tls_cipher)\n\t}}\
(Exim $version_number)\n\t\
${if def:sender_address \
{(envelope-from <$sender_address>)\n\t}}\
id $message_exim_id\
${if def:received_for {\n\tfor $received_for}}
So you should be able to just paste the above text into your config, making whatever changes you'd like.