LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 04-07-2006, 06:29 AM   #1
dhruvypatel
Member
 
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 abc.com domain. Now we have assigned a new domain xyz.com. Both the domains are currenty working. Mail server is implemented in such a way that if any mail comes to user@xyz.com it will be forwarded to user@abc.com. Now I want that if any mail come to user@xyz.com is replied from the id user@abc.com then in the from address it should automatically be written as it replied from user@xyz.com. 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, 07:39 AM   #2
demian
Member
 
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
Just to clarify what you want:
Mail comes in to user@xyz.com (rcpt to: <user@xyz.com>)
user@abc.com replies (mail from: <user@abc.com>)

Now you want mail from: <user@abc.com> to be rewritten to mail from: <user@xyz.com>
However, when the original mail isn't forwarded from the xyz.com 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.
 
  


Reply


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 03: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 12:12 AM
Shel script mail send ("/" in mail address) problem anaid Linux - Networking 3 08-23-2005 07:41 AM
difference between "Web server local URL" and "IPv4 address"? kpachopoulos Linux - General 2 09-17-2004 01:30 PM
"autoreply" mail problem postfix rov3 Linux - General 5 05-13-2004 06:04 PM


All times are GMT -5. The time now is 08:11 PM.

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