LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Setting up an email server for another branch (http://www.linuxquestions.org/questions/linux-newbie-8/setting-up-an-email-server-for-another-branch-730893/)

bjmakond 06-05-2009 06:17 AM

Setting up an email server for another branch
 
Hi All,

I need to setup an email server for my other branch. currently they are accessing their emails directly from the server at the head office. i need to limit that traffic whereby each user is querying the email server to pop emails.

I need a server on the branch that will from time to time collect messages from the main server at the head office and distributes to the clients on that branch.

The domain will sill be the same

How best can i achieve this? what should i do on the "new" server that i need to setup?

Thank you very much in advance

BJ

arckane 06-05-2009 08:36 AM

Which email server program are you using currently?

farslayer 06-05-2009 10:52 AM

with postfix you could use virtual _maps, so mail is relayed as it is received to the proper server for final delivery..

so if your mail servers were
mailhub.yourcompany.com
branch1.yourcompany.com

you would setup the /etc/postfix/virtual map as follows
branchuser@yourcompany.com branchuser@branch1.yourcompany.com

so postfix on your pimary MX server mailhub, would know that the message needs to be forwarded to the other server (branch1) for delivery..

but as arckane points out, without knowing what MTA (postfix, exim, qmail, sendmail, MS Exchange, other) you are running, and knowing how it's setup (is it using a SQL backend ? is it using LDAP ? , etc.. ) it's difficult to offer a proper solution.

jakev383 06-05-2009 10:10 PM

More information would be a good thing.
With Qmail you can do a similar mapping to deliver the messages to the proper server or even setup fetchmail to periodically grab emails from the main server and deliver them to the local (branch) server to minimize the number of connections made to the main server.

bjmakond 06-15-2009 05:34 AM

Setting up an email server for another branch
 
Thanks for the replies so far guys. I'm using sendmail as my MTA



Quote:

Originally Posted by farslayer (Post 3564294)
with postfix you could use virtual _maps, so mail is relayed as it is received to the proper server for final delivery..

so if your mail servers were
mailhub.yourcompany.com
branch1.yourcompany.com

you would setup the /etc/postfix/virtual map as follows
branchuser@yourcompany.com branchuser@branch1.yourcompany.com

so postfix on your pimary MX server mailhub, would know that the message needs to be forwarded to the other server (branch1) for delivery..

but as arckane points out, without knowing what MTA (postfix, exim, qmail, sendmail, MS Exchange, other) you are running, and knowing how it's setup (is it using a SQL backend ? is it using LDAP ? , etc.. ) it's difficult to offer a proper solution.


linuxlover.chaitanya 06-15-2009 06:47 AM

May be fetchmail can do the same for you as well. Look into it.


All times are GMT -5. The time now is 02:04 AM.