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 tried this, but the server still reply with "User unknown in local recipient table" I am testing it on a SuSE 9.3 box with postfix 2.2.1-3 I read the postfix documentation and it does not mention that the version is too old. I am in the process of setting up a 10.1 test box, as that is the version the production system runs. A bit more info: I am testing with an existing domian that have a mail server on the Internet. lets call it example.com for now (I don't want to list a bunch of valid email adresses as they will get spammed pretty quickly) I have 3 users that I test with: user1@example.com, user2@example.com, user3@example.com. All 3 users can receive mail on the public server. Now I have the test server at home, set up to download and cache mail for user1 and user2. The server have local mail boxes for those two users and client machines on the local network can read teh mail and send mail via the local test server. If user1 send a mail to user2, the server will just deliver it locally. If user 1 send a mail to my gmail account, the local server will relay the mail via the public smtp server, that will deliver it to gmail. So, that all works. Standard caching dial-up local mail server. I added user3 to the transport map: user3@example.com relay:[mail.example.com] (mail.example.com is the public server. local server is mail.test.example.com) So, according the teh transport docs, if user1 on the local server send a mail to user3@example.com, then postfix should relay the mail via mail.example.com. But it does not. What am I missing or misunderstanding? 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 ~