Postfix question

w1z4rd

Karmic Sangoma
Joined
Jan 17, 2005
Messages
52,146
Reaction score
8,340
Location
127.0.0.1
Okay.. heres the problem. There is a server at location A. Its a normal mail server with pop3 and smtp. Now, locations B & C pop their mail off it.

At the location I am involved in.. lets call it B.. they have a small mail server here running Postfix. It uses a fetchmail script to pull down the email hosted at locaction A.

Now the problem I have is people in B can not email people in C, as the B server is setup as a local mail server and when it checks to find the local user.. the accounts not setup as that user is most likely on the main mail server at location A.

What I am wondering if Postfix can do ( I know exchange and Exim can do it).. basically.. all undelivered email.. gets forward back to the main domain at location A.
 
Suggest posting your question or searching on howtoforge.com's forum - there are a few postfix guru's there who understand the internals way better than any normal healthy person should.
 
We run a similar setup, somewhat different but not on postfix and I can tell you we did it completely different.

The main domain is setup on server location A
eg. domain.co.za

Then we have a dummy domain set up on server at location B called localdomain.net

Then what we do is, mail sent to [email protected] gets forwareded to [email protected] and user pops his/her mail of that, but when they send mail, they say its from [email protected]

This way, if [email protected] using server at location B send mail to [email protected] it will go out the normail way a server does MX lookups to send out its mail or if you server is set up to relay via another server then it will do that.


Now instead of actually using seperate domain names, the names on server B and C can be subdomains with department names, of location names which is a cleaner way of doing it.

eg. [email protected] or [email protected] or however you would prefer.

The idea is to use the email system to your advantage and not let it work against you.
I hope this helps, since the idea you have will probably never be implemented as it goes against the email RFC.
 
google is being stupid now.. its already indexed this page.. and when I wanted to google how to pass on email in postfix... my question I posted a bit earlier came up..
 
I had a setup like this years ago. Seven postfix servers, all hosting the same domain. Each box knew on which box each address is hosted, and based on that it would deliver locally or submit it to the correct machine. This was done without mapping e-mail addresses to hostnames or anything funny like that.

You can put e-mail addresses in the transport file, instead of domains. I haven't done this in years, so I'm a bit vague on the details. You'll probably have to use relay_domains and you might need to define your users in relay_recipient_maps.
 
Top
Sign up to the MyBroadband newsletter
X