4

OS: FREEBSD 9

OS ROLE: SERVER

MAIL SERVER: EXIM

When I send mail from my freebsd server to gmail. and when i click on show original. I shows my os name too along with mta name. as in first line of following quote.

Received: from root by myprivateserver.org with local (Exim 4.80.1 (FreeBSD))
    (envelope-from )
    id 1WL5v6-0000XL-3E
    for [email protected]; Wed, 05 Mar 2014 07:07:12 +0000
To: [email protected]
Subject: hello
Message-Id: 
From: Charlie Root 
Date: Wed, 05 Mar 2014 07:07:12 +0000

My question is this that can I hide the the freebsd from

(Exim 4.80.1 (FreeBSD))
Or can htis line be customized at least.
Nishan
  • 508
  • 2
  • 5
  • 19

1 Answers1

2

The contents of the Received: header are set by the Exim option received_header_text. You can strip out the Exim and OS versions by setting it to

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}}\
  ${if def:sender_address \
  {(envelope-from <$sender_address>)\n\t}}\
  id $message_exim_id\
  ${if def:received_for {\n\tfor $received_for}}

I've copied the default value from the Exim 4.80 documentation, removing the line that inserts the version number.

Flup
  • 8,017
  • 2
  • 33
  • 50
  • thank you very much. But I'm wondering, which file is to be edited to make this effective could you please guide. – Nishan Mar 06 '14 at 11:25
  • It depends how Exim is installed on your system. I'm not familiar with FreeBSD, but try `/etc/exim.conf`, or a file in `/usr/local/etc/exim/configure`. Sorry I can't be of more help. – Flup Mar 06 '14 at 11:31
  • No need to sorry, thank you very much for your nice help -) I WILL manage somehow. – Nishan Mar 06 '14 at 11:35