[Exim] Mask headers in Mailer-Daemon message

Top Page
Delete this message
Reply to this message
Author: Bruno Touleau
Date:  
To: exim-users
Subject: [Exim] Mask headers in Mailer-Daemon message
I have a little problem, I use a internal SMTP mailer for local delivery

without direct connection to the Internet. But when a user doesn't
exist, my internal mailer forward the Mailer-Daemon message to my
official server which send to the sender, but I don't want to see any
information of my internal mailer
I 'll like Mailer-Daemon@???
and nothing about the headers in the body for "by
internalmailer.domain.net with esmtp (Exim 3.16 #1)"

Another thing how to hide the "Exim 3.16 #1" information?

My section Router
send_to_gateway:
driver = domainlist
transport = remote_smtp
route_list = "* ns.domain.net byname"

The Mailer-Daemon message:

Objet: Mail delivery failed: returning message to sender
Date:
Thu, 19 Oct 2000 16:56:22 +0200
De: Mail Delivery System <Mailer-Daemon@???>
A: touleau@???

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  m_heravi@???
    Child process of local_delivery_cyrus transport returned 67 (could
mean user nonexistent) from command:
    /usr/cyrus/bin/deliver


------ This is a copy of the message, including all the headers. ------

Return-path: <touleau@???>
Received: from [217.11.xxx.x] (helo=ns.domain.net)
        by internalmailer.domain.net with esmtp (Exim 3.16 #1)
        id 13mH7G-0008T6-00
        for m_heravi@???; Thu, 19 Oct 2000
16:56:22 +0200
Received: from [62.4.20.246] (helo=ns.domain.net)
        by ns.domain.net with esmtp (Exim 3.16 #1)
        id 13mH6I-0007Z9-00
        for m.heravi@???; Thu, 19 Oct 2000 09:55:22 -0500
Received: from touleau by ns.domain.net with local (Exim 3.16 #1)
        id 13mH6k-00038i-00
        for m.heravi@???; Thu, 19 Oct 2000 16:55:50 +0200
To: m.heravi@???
Message-Id: <E13mH6k-00038i-00@???>
From: Bruno Touleau <touleau@???>
Date: Thu, 19 Oct 2000 16:55:50 +0200