procmail
[Top] [All Lists]

Re: AW: How to forward mail without changing Return-Path?

1997-07-29 07:49:00
On Tue, 29 Jul 1997 00:04:08 +0200,
Michael Zelbel <michael(_at_)i-p(_dot_)net> wrote:
I'm new to procmail at all and I do not know anything yet. But I have the 
reverse problem. I would like to forward some eMail adresses to a fax 
gateway and I have to change the reply field without changing the FROM. 
Otherwise the senders would get a "confirmation about sending a fax" from 
the fax gateway.
Can someone tell a newby exactly what to do?

In reverse order of what you want:

  * Fix your mail software to not put AW: where you expect Re:

  * Ask the fax gateway admin to add an option to not send a
    confirmation 

  * Give a somewhat more detailed explanation of what you want. 
    In the absence of, say, a Reply-to:, one would expect the 
    fax gateway to send its confirmation to precisely the address
    listed in the From: header. This is probably not what you want.
    So, would you actually like to add a bogus Reply-To: header, 
    for example, or what did you have in mind? 

  * Forward the message with headers and all and let the recipient
    glean the From: information from the forwarded e-mail message.

    :0  # add a c flag if you would also like to keep a copy
    * conditions, if any
    {
        :0
        * ^Subject:[    ]*\/[^   ].*
        | ( echo "To: faxgateway(_at_)where-ever"; echo "Subject: $MATCH"; cat 
- ) \
            | $SENDMAIL $SENDMAILFLAGS -t
    }

    You probably don't really need to have a Subject: line on the new
    message either if you don't want to. This will produce a message
    from yourself to the fax gateway with the forwarded message (with
    full headers) in the body of the message. 

  * To really just clobber the From_ header (from which the
    Return-Path: header is calculated over at the fax server's end)
    you need to do little else than forward the message. This probably
    doesn't help you, but it's the answer to the question you seem to
    be asking. (It is unclear what you mean by "reply field" but the 
    message you quoted discussed the Return-Path: header. I repeat, 
    this is probably not what you want.)

Hope this helps,

/* era */

Okay, I lied, a simple sendmail forward might actually preserve the
From_ line. I think this depends on your MTA and not on Procmail.

-- 
Defin-i-t-e-ly. Sep-a-r-a-te. Gram-m-a-r.  <http://www.iki.fi/~era/>
 * Enjoy receiving spam? Register at <http://www.iki.fi/~era/spam.html>

<Prev in Thread] Current Thread [Next in Thread>