Exim on Debian Squeeze – How to Remove Version Number

debian-squeezeexim

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@email.com -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

Best Answer

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 \
Related Topic