Hello,
I think I know what you are asking. You have a test scalix mail server and its host name is "mailtest.domain.com" you have a user account on that scalix server called "user1". So the full e-mail address for this user on the test scalix mail server is "user1@mailtest.domain.com".
Since you are in the middle of migration, you also have another mail server which is in production we will call it "mailprod.domain.com". On it you also have a "user1" so the fully qualified e-mail address for this user on the production mail server is "user1@mailprod.domain.com" User1 is the same identical user on both the production and test systems.
You have placed a .forward file in the users home directory on the production mail (mailprod.domain.com) server which reads as follows:
In this example you are literly forwarding a copy of the message to
user1@mailprod.domain.com. The backslash "\" instructs sendmail to not expand
Currently when mail is received by the production mail server, it is also sent to the test mail server, and it appers in the test mail servers inbox for user1. You are happy!
Next you send an e-mail to
anyone@anywere.com, when that person replies, it will appear on the test system but not on the production, and are wondering what happend to the e-mail that was originally destined for the production mail server.
Your solution is very simple Everything is working as you instructed the production mail server. It is recieving mail destined to
user1@mailprod.domain.com and forwarding to
user1@mailtest.domain.com.
Notice I said
"FORWARD" I have purposely emphisized that because that is what you are doing. nowhere do you see in the configuraiton of your file "Please leave a copy on the production server". So what happens is the message originally destined for
user1@mailprod.domain.com is automatically sent to
user1@mailtest.domain.com. This message NEVER touches the inbox of the production mail server. Sendmail simply re-directs the message to the approporiate server.
Now the question is asked, How do I get to keep a copy on the production mail server?
The answer is below:
the backslash tells sendmail not to process or expand the .forward file for this perticular account. in effect the backslash prevents an infinate loop of forwarding copies of messages to yourself. Instead it drops a copy in the inbox on the production server does not process the .forward file for this delevery, then drops a copy in the inbox of user1 on the test mail server and stops processing the .forward file.
There are many other uses for the .forward file. issue the comamnd
at the comamand line for a detailed explenation of the .forward file.