Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am kind of stuck with three strings that are enabled in the mail source. I managed to modify the recieved_header_text = in 02_exim4-config_options as

received_header_text = Received: \
  ${if def:sender_rcvhost {from 127.0.0.1\n\t}\
  {${if def:sender_ident \
  {from ${quote_local_part:$sender_ident} }}\
  ${if def:sender_helo_name {(helo=127.0.0.3)\n\t}}}}\
  by $primary_hostname \
  ${if def:received_protocol {with $received_protocol}} \
  ${if def:tls_cipher {($tls_cipher)\n\t}}\
  (Exim latest)\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 now the mail source looks like this

Return-path: <user@elrippoisland.net>
Envelope-to: user_2@elrippoisland.net
Delivery-date: Sat, 03 Aug 2013 10:53:00 +0200
Received: from 127.0.0.1
    by server500gb.chello.at with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
    (Exim latest)
    (envelope-from <user@elrippoisland.net>)
    id 1V5XZy-0004Bp-VG
    for user_2@elrippoisland.net; Sat, 03 Aug 2013 10:53:00 +0200
 From: user <user@elrippoisland.net>
To: user_2@elrippoisland.net
Date: Sat, 03 Aug 2013 10:52:32 +0200
Message-ID: <3081037.y7q8ZU0DAf@kubuntuisiert>
User-Agent: KMail/4.8.5 (Linux/3.2.0-51-generic; KDE/4.8.5; x86_64; ; )
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="nextPart137562676.tHzCL3Ggym"; micalg="pgp-sha1";      protocol="application/pgp-signature"
Content-Transfer-Encoding: 7Bit
X-SA-Exim-Connect-IP: 192.168.2.35
X-SA-Exim-Mail-From: user@elrippoisland.net
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
    server500gb.chello.at
X-Spam-Level: 
X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,TVD_RCVD_IP,
    TVD_RCVD_IP4,URIBL_BLOCKED autolearn=ham version=3.3.2
 Subject: Headertext
X-SA-Exim-Version: 4.2.1 (built Sun, 08 Jan 2012 03:05:19 +0000)
X-SA-Exim-Scanned: Yes (on server500gb.chello.at)

--nextPart137562676.tHzCL3Ggym
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"

Exim4 is installed with the split configuration.

I want to modify three strings

  1. User-Agent to something like Windows NT 4.0 blaablaablaa

  2. X-SA-EXIM-Connect-IP to 127.0.0.1

  3. Message-ID I would like to modify the hostname to something like myhost

I would appreciate your help :D

share|improve this question
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.