On 8/27/06, Sandy Drobic
If you're not using an ancient version of Postfix you can route mails depending on the recipient address.
/etc/postfix/transport: user@domain.com relay:[ip-of-hostserver]
I'll read up on transport. I think it will work for this situation. Thanks
Unfortunately, you haven't provided any helpful configuration details, so I can't tell you if it will work with your configuration.
Are you able to relay mails directly to the server that hosts the remote address user@domain.com?
Yes. Up to now, each workstation at every office was reading mail directly from the external server and use that as the smtp server also. So the problem is that if Person A sent a mail to Person B, who is sitting just down the corridor, then the mail would go out the ADSL line to the Internet, to the external server and back in through the ADSL line. So, it is double the bandwidth on the ADSL line. With a caching server, sitting at the office, the mail will not go out via the ADSL, saving bandwidth, which is very expensive here in SA.
If the mails are arriving via pop access to your server, then the server (of your ISP) that accepts the messages in the first place does not know any better. How do you expect the mail in the same domain to reach the other server? Is that server actually able to accept mails directly from the internet?
THe office is connected to the Internet via ADSL, so there is not a static IP address. The external server, that hosts all the mailboxes for the whole company sits outside on the Internet, so it can accept mails for the domain, and drop it in POP3 mailboxes. Due to the fact that the offices do not have static IP adresses and that we don't have any control over the external server, we cannot get the external server to forward the mail to the internal server. The internal server have to read the mail from the pop boxes on the external server and then drop it in local boxes for office personnel to read. It is basically set up as a dial-up solution, except that it use ADSL and not Analogue/ISDN to connect to the Internet.
I think the best way to provide reliable mail routing would be to set up subdomains for each office and then rewrite addresses as needed if they relocated. Then the normal mailserver of your ISP would be able to tell where the mail should be delivered to.
That might be a good solution if the client will agree to change all mail adresses and if the ISP is willing to cater for it. I'll look into that too. Thanks -- Andre Truter | Software Consultant | Registered Linux user #185282 Jabber: andre.truter@gmail.com | http://www.trusoft.co.za ~ A dinosaur is a salamander designed to Mil Spec ~