View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-07-2006, 07:29 AM   #1
Registered: Oct 2005
Location: Bangalore,India
Distribution: Debian
Posts: 37

Rep: Reputation: 15
Postfix-Rewrite "From" address in mail on particular condition.

Hello all,
I need to implement one feature in postfix. We have domain. Now we have assigned a new domain Both the domains are currenty working. Mail server is implemented in such a way that if any mail comes to it will be forwarded to Now I want that if any mail come to is replied from the id then in the from address it should automatically be written as it replied from I hope you understand what I am asking. I am not sure if it is a postfix issue or not. Please help me for solving this problem. waiting for your reply...
Old 04-07-2006, 08:39 AM   #2
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
Just to clarify what you want:
Mail comes in to (rcpt to: <>) replies (mail from: <>)

Now you want mail from: <> to be rewritten to mail from: <>
However, when the original mail isn't forwarded from the domain, no rewrite should take place. Correct?

In that case I guess it's pretty much impossible. The only somewhat feasable, yet complicated way, I can think of is to use the message-ID given by your smtp server to build a database of seen messages and then hope to catch as many replies as possible using the "In-Reply-To" header field. This, of course, relies on the fact that a) all email clients your users use actually write this field and b) your users do in fact hit reply rather than composing a new message.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix - "mail command not found" azmadar Linux - Networking 3 01-21-2013 04:52 AM
How do I configure Postfix to save my outgoing SMTP mail in my IMAP "Sent Items"? wired Linux - Newbie 1 02-01-2006 01:12 AM
Shel script mail send ("/" in mail address) problem anaid Linux - Networking 3 08-23-2005 08:41 AM
difference between "Web server local URL" and "IPv4 address"? kpachopoulos Linux - General 2 09-17-2004 02:30 PM
"autoreply" mail problem postfix rov3 Linux - General 5 05-13-2004 07:04 PM

All times are GMT -5. The time now is 09:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration