Bluehost.com Web Hosting $6.95

Rewriting just a subset of mail header addresses

This is a discussion on Rewriting just a subset of mail header addresses within the mailing.postfix.users forums, part of the Mail Servers and Related category; Hello all, Does anyone know of a way how to address-rewrite just a subset of mail headers with Postfix? ...


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-06-2004
Jan Stap
 
Posts: n/a
Default Rewriting just a subset of mail header addresses

Hello all,

Does anyone know of a way how to address-rewrite just a subset of mail
headers with Postfix? Per default, all headers (From:, Reply-To:, To:,
etc.) are rewritten.

For a custom email-setup I need to rewrite the address in the From:
header line, while leaving the address in the Reply-To: header line
(if any) alone. Preferably, in case a Reply-To: line is missing, it
should be added with the original address as was present at the From:.
For the curious: at the end is described what all this is good for.

I'm afraid I won't come by a custom after-queue content filter to get
the above done, but maybe you have some suggestions for (part of) this
functionality (apart from hacking the Postfix code of course :-).

Thanks!

Jan Stap

---------------------
The why

The relay above serves as a front-end relay to a Lotus Notes gateway,
dedicated to the SMTP-to-Notes direction. Let's say at this network,
the email domain customer.com is in use. Some portion of mail coming
in from the Internet carries user@customer.com as the message sender
(e.g. from mobile workers of this company).

Without any rewriting, Notes will convert such senders into the
corresponding Notes email address and the recipient cannot tell
whether the message was internally generated, or came from outside
(this is what this customer wants to be able to distinguish). By
rewriting the sender to user+something@customer.com, Notes is fooled
and displays this exact address to the recipient. Now he can tell the
difference, but he also looses the ability to reply to such mail.
Having a Reply-To: address line with the unmodified sender address
fixes that.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 05:37 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0