Link to home
Start Free TrialLog in
Avatar of Manojc3
Manojc3

asked on

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..
Avatar of David Beveridge
David Beveridge
Flag of Australia image

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
Avatar of Manojc3
Manojc3

ASKER

Can you give more explanation   on setting it up.
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
You could try just adding the indian usernames to your /etc/aliases file
eg
india:     india@example.org

Avatar of Manojc3

ASKER

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.


Avatar of Manojc3

ASKER

Thanks. I have configured Virtual domain. it works as a replacement of vpop3 server.
ASKER CERTIFIED SOLUTION
Avatar of David Beveridge
David Beveridge
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial