configure Postfix with one internal and external domain and setup like VPOP3

I have a scenario were the company has one branch. The main company is in London having a mail server with domain example.com. The branch office users in location India   were having problem sending and receiving mail from the main office it was very slow. To solve this issue the branch installed a new mail server with domain example.org and the mail forward was set in the main (example.com) mail server to forward the users of branch to user@example.org.  The branch users want to use example.com for sending and receiving in this case if a user sends a mail to another user in the branch office it has to go to main office mail server and forward to the branch mail server.  

I need to create a false domain in branch office mail server as example.com and if a local user in the branch sends a mail to local users in the same branch office the mail will be send locally without sending it out to main server. Also if a user sends a mail to main office users (users not in branch false domain) it might give unknown user error.
I need to try this in Redhat Linux using Postfix. I know there is a  program for windows called VPOP3 which can work..
Manojc3Asked:
Who is Participating?
 
bevhostConnect With a Mentor Commented:
That's great.
0
 
bevhostCommented:
See
http://www.postfix.org/VIRTUAL_README.html

eg, on london server..
info@example.com       joe
sales@example.com      jane
india@example.com      india@example.org
0
 
Manojc3Author Commented:
Can you give more explanation   on setting it up.
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
bevhostCommented:
It depends upon your current setup.

I assume that one server is already setup and running as a POP3/IMAP/SMTP server?

Can you please show your current postfix config as it is now.  use the postconf command to show what is not set to the default values...
eg
# postconf -n
0
 
bevhostCommented:
You could try just adding the indian usernames to your /etc/aliases file
eg
india:     india@example.org

0
 
Manojc3Author Commented:
In branch office in India mailserver is it possible to include aliases for the local users as
induser1:    induser1@example.com
induser2:    induser2@example.com
Can you just breif me on Virtual.cf file. Do i have to add any domain in brach server.


0
 
Manojc3Author Commented:
Thanks. I have configured Virtual domain. it works as a replacement of vpop3 server.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.