K bharathan put forth on 10/21/2009 12:08 PM: > hi all > i've to keep two postfix mail server; one at head office and another at > regional office; > both users will be using example.com <http://example.com> domain; head > office mail server has got hostname/ mx/rdns etc..in the public dns; > head office has got seperate internet connection > > the regional office has got seperate internet connection; the users also > has to communicate out as example.com <http://example.com>; > > > i think i shud specify relayhost in regional office mail server as head > office mail server > but i'm doubtful about the hostnames/domain names etc of regional > office mail server which does not have any public dns records; > > how can i make the head office mail server accept this regional office > mail server as client > so that regional office users can send mails to head office and world as > well
This will take care of delivering the mail from the corp server to the user mailboxen on the regional office postfix server, and assumes MX corp.example.com remote office regional.example.com The following will go into the postfix config on corp.example.com, and enables the forwarding of mail to the remote regional office: /etc/postfix/main.cf recipient_canonical_maps = hash:/etc/postfix/recipient_canonical /etc/postfix/recipient_canonical j...@example.com j...@regional.example.com b...@example.com b...@regional.example.com j...@example.com j...@regional.example.com ^^You will need one entry per regional office user. To properly relay mail from regional.example.com through corp.example.com, so that all 'from' addresses are of form u...@example.com, on regional.example.com do /etc/postfix/main.cf relayhost = [corp.example.com] on corp.example.com do /etc/postfix/main.cf mynetworks = ip_addr_of_regional.example.com #this is additional local_header_rewrite_clients = static:all masquerade_domains = example.com That should cover it. -- Stan