From owner-freebsd-net@FreeBSD.ORG Wed Dec 20 08:11:17 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F0E7A16A403 for ; Wed, 20 Dec 2006 08:11:17 +0000 (UTC) (envelope-from root@sovetnik.org) Received: from fr2.aha.ru (fr2.aha.ru [62.113.100.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id B378C43CB6 for ; Wed, 20 Dec 2006 08:11:14 +0000 (GMT) (envelope-from root@sovetnik.org) Received: from aha.ru (backend4.aha.ru [195.2.83.134]) by fly.zenon.net (Postfix) with ESMTP id 0D5DA5BF9 for ; Wed, 20 Dec 2006 10:12:34 +0300 (MSK) Received: from [85.94.44.59] (account root@sovetnik.org HELO localhost) by backend4.aha.ru (CommuniGate Pro SMTP 4.3.12) with ESMTPA id 369975080 for freebsd-net@freebsd.org; Wed, 20 Dec 2006 10:12:33 +0300 Date: Wed, 20 Dec 2006 10:14:24 +0300 From: Alexei X-Mailer: The Bat! (v3.85.03) Professional X-Priority: 3 (Normal) Message-ID: <884597862.20061220101424@sovetnik.org> To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: border mx X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alexei List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Dec 2006 08:11:18 -0000 Hello, freebsd-net. I'm going to build some mail system, so I need some advice. There is a network with a 'MS Exchange' as a mail server and 'someintdomain' as an internal mail domain. I also have an internet domain, for example 'mydomain.com'. There is a freebsd box as a gateway for my network, and 'MX' record of 'mydomain.com' will point on it's address. What I need: - when someone sends mail from internet to 'vasya@mydomain.com', my gw replaces vasya@mydomain.com with 'vasya@someintdomain' and sends it to Exchange server - when someone from my internal network (vasya@myintdomain) sends mail to some internet mail address (ie sends it to ms exchange server and exchange sends it to gw), my gw replaces 'From:' and 'Reply-to:' fields vasya@someintdomain -> vasya@mydomain.com Is that real? How can I realise this system? Or, maybe, there is some other way to get the result I need? PS: 'Exchange' server has 'grey' address (192.168.0.0/16) and I don't want allow him connect to the internet directly. PPS: Sorry, if this question is not suitable for this maillist, so advise me please where to ask. -- Grats, Alexei mailto:root@sovetnik.org