Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 with local (Exim 4.72)

I'v tried editing smtp_banner in these two files


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" -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
share|improve this question
up vote 5 down vote accepted

Open the file /etc/exim.conf and find the key smtp_banner, then change that line in this way :


smtp_banner = "${primary_hostname} ESMTP Exim ${version_number} \ 


smtp_banner = "${primary_hostname} ESMTP \
share|improve this answer
I don't have a exim.conf file, Debian uses splt config. ls: cannot access /etc/exim.conf: No such file or directory. Check out update one on my org post. – Mint Jan 21 '12 at 9:57
grep version_number -R /etc and find where it's located then – Tom O'Connor Jan 21 '12 at 11:07
Use grep -r smtp_banner /etc/exim/ to find the correct file. – joschi Jan 21 '12 at 11:07
first one comes up with /etc/exim4/conf.d/main/02_exim4-config_options: I'v changed this deleted the version number + restart but it still shows when sending an email. The 2nd one comes up with the two files listed in my org post, which I have already changed and it had no effect. – Mint Jan 22 '12 at 0:20
It is strange there is something wrong in the setup ... The file /etc/exim.conf should exist in a standard setup ... How have you installed Exim ? – aleroot Jan 22 '12 at 7:32

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.

share|improve this answer
I also tried that. Still no luck – Mint Jan 21 '12 at 22:33

you have to edit /etc/exim4/exim4.conf.template:

$ grep  smtp_banner /etc/exim4/*
/etc/exim4/exim4.conf.template:# smtp_banner = $smtp_active_hostname ESMTP Exim $version_number $tod_full

There do what aleroot suggested.

share|improve this answer
I'v tried that, it doesn't make any difference. I even done a system restart. – Mint Jan 21 '12 at 22:33
did you ran update-exim4.conf ? – ThorstenS Jan 22 '12 at 13:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.