Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Postfix and branch offices
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
sven_sol
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2005
Posts: 120
Location: Royston, Herts. UK

PostPosted: Mon May 28, 2007 7:57 am    Post subject: Postfix and branch offices Reply with quote

Hi all,

We are in the middle of transferring from our ISP held email to our own systems. We have two offices - call them London and Leeds, and each have their own email servers in place.

Leeds: server1.example.com
London: server2.example.com

Each office when sending email, routes it through their individual ISP in the area using relayhost, or keeps it locally if the user is in the office. This works great. However, when sending email to someone in the other office it fails saying that the recipient is unknown when it should be going to the ISP held mailboxes.

Could do with a few helpers here...

help?! :?

Cheers all,

Sven
_________________
Tua mater tam antiqua ut linguam latinam loquatur

Linux User: #405647
Back to top
View user's profile Send private message
di1bert
l33t
l33t


Joined: 16 May 2002
Posts: 963
Location: Oslo, Norway

PostPosted: Tue May 29, 2007 7:20 am    Post subject: Reply with quote

Hi

For your inter-branch routing, why don't you setup a virtual user table in postfix and route mail
for those users over a VPN link to the remote office ? Then for the users who host their mail
on the remote ISP servers, simply route their mail out to the ISP.

This is all done using virual user tables and transport maps. You'll have to excuse me but it's been a while since I've used either as I now use Exim primarily.

Either way it sounds like you're going to have to use virtual user tables to route the mail correctly.

HTH

-m
_________________
choff.
Back to top
View user's profile Send private message
sven_sol
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2005
Posts: 120
Location: Royston, Herts. UK

PostPosted: Tue May 29, 2007 7:50 am    Post subject: Reply with quote

there is no vpn there, but I'll look into that.. thanks, I'll let you know how it goes.
_________________
Tua mater tam antiqua ut linguam latinam loquatur

Linux User: #405647
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Tue May 29, 2007 5:49 pm    Post subject: Reply with quote

Depending on your setup you might want to treat your domain as a virtual domain which allows you specify local users a bit easier.

/etc/mail/aliases
Code:

user1@domain.com     user1@server1.domain.com
user2@domain.com     user2@server2.domain.com
alias1@domain.com    user1@domain.com,user2@domain.com


I'd check the above syntax, but I think that's right for a virtual domain alias... though you might need a : in there somewhere.

Then I'd setup a smtp routes.

/etc/postfix/transport
Code:

server1.domain.com     :
server2.domain.com     :
*                      :smtp:your-isp-relayhost.com


make sure you run postmap transport when finished. The : by itself means handle the delivery locally, but I'm not exactly certain how Postfix will deal when sending server2 from server1. You might need to add a :smtp:server2 line for server2 on the host server1 for things to work right.

Lastly specify domain.com as virtual in main.cf add transports in as well.

Code:

# transport Stuff
transport_maps = hash:/etc/postfix/transport

# virtual domains
virtual_mailbox_domains = domain.com


I'm reasonably certain the above will work, but I'd be greatly surprised if I got the syntax right in every case... I'd try some of this with some subdomains like test.domain.com and server1.test.domain.com and server2.test.domain.com

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum