Re: [Exim] headers remove for bounce mails?

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Edgar Lovecraft
Data:  
Para: exim-users
Assunto: Re: [Exim] headers remove for bounce mails?
> Sent By: Daniel Tiefnig
>
> Hi there,
>
> I've a dnslookup router that does
>
> headers_remove = X-Inode-Mail-Header
>
> which works quite well, but if a message can not be delivered, the
> bounce Mail quotes all headers of the original mail, including the
> X-Inode-Mail-Header thingy. This matches with what is said at
> "headers_add" in the routers section in the manual, but is not how I'd
> like it to be.
>
> Is there a way to remove headerlines from the quoted headers in the
> bounce Mail? (I.e. not let them get there at all, I'd say.) I can't see
> one, besides parsing the body of the bounce mail, or adding a mail proxy
> in the first pass, which both is not what I'm going to do, though.
>
> TIA,
> daniel
>

--

I just use a custom bounce message template so that ONLY the information
I want sent in the return message is there and nothing else.

In the Exim 4.x Configuration File:
##########################################################################
# Bounce and Warning Messages
##########################################################################
    #Define the template to use for customizing 'Bounce' messages
bounce_message_file = <localtion_for_exim>/templates/bounce.template
    #Set that we do not want to include the original file in
    #   'Bounce Messages'
bounce_return_message = false


Template File Contents:
<<START OF FILE>>
Subject: Mail delivery failed ${if
        eq{$sender_address}{$bounce_recipient}
        {: returning message to sender}
        {: returning message}}
****
This is an automatically generated message.


A message that was sent by "$sender_address" was not
delivered to one or more recipients for the reasons given.

Listing of the address(es) that failed:

****
****
****
------ Selected Message Headers ------

Received: $h_Received
Message-ID: $h_Message-ID
From: $h_From
Reply-To: $h_Reply-To
To: $h_To
Subject: $h_Subject
Date: $h_Date

------ Selected Message Headers ------
****
<<END OF FILE>>

--EAL--