From owner-freebsd-questions Tue Aug 17 13: 1:27 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mobil.surnet.ru (mobil.surnet.ru [195.54.2.7]) by hub.freebsd.org (Postfix) with ESMTP id 0639514D3E for ; Tue, 17 Aug 1999 13:00:19 -0700 (PDT) (envelope-from ilia@cgilh.chel.su) Received: (from uucgilh@localhost) by mobil.surnet.ru (8.9.1a/8.9.1) with UUCP id BAA02215; Wed, 18 Aug 1999 01:56:18 +0600 (UDT) Received: (from uucp@localhost) by cgilh.chel.su (8.8.7/8.8.7) with UUCP id BAA01326; Wed, 18 Aug 1999 01:25:55 +0600 Received: from localhost (ilia@localhost) by localhost.cgu.chel.su (8.9.2/8.9.2) with ESMTP id BAA01645; Wed, 18 Aug 1999 01:18:42 +0600 (ESS) (envelope-from ilia@cgilh.chel.su) X-Authentication-Warning: localhost.cgu.chel.su: ilia owned process doing -bs Date: Wed, 18 Aug 1999 01:18:39 +0600 (ESS) From: Ilia Chipitsine X-Sender: ilia@localhost.cgu.chel.su To: Fabio da Silva Cunha Cc: questions@FreeBSD.ORG Subject: Re: Mail routing on the Intranet / Internet - FreeBSD In-Reply-To: <1.5.4.32.19990817144814.0097ff10@mymail.com.br> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=koi8-r Content-Transfer-Encoding: 8BIT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG here go few ideas. well, I stick to UUCP, because I'm using it. the goal: ===================================================================== to have actually 4 domains (domain.com.br, locX.domain.com.br where X=1,2,3). site domain.com.br is online 24hours. sites locX.domain.com.br could be offline, all mail will be collected at domain.com.br anyway the all 4 domains are administered independently (local roots can add new users at locX.domain.com.br without anybody knowing). ===================================================================== I hope 'domain.com.br' is registered domain. 1. ask you provider (or did it youself) to add MX entries for locX.domain.com.br (like it's done for cgilh.chel.su or for jane.cgu.chel.su, just type "$ host cgilh.chel.su"). 2. on machines locX.domain.com.br add the following line to /etc/mailertable ------------------------------------------------------------- .domain.com.br uucp-dom:domain domain.com.br uucp-dom:domain . uucp-dom:domain ------------------------------------------------------------- do not forget to !! "makemap hash /etc/mailertable.db < /etc/mailertable" 3. on machines locX.domain.com.br adjust /etc/uucp/* to 'call' goes ------------------------------ domain UlocX locX-passwd ------------------------------ domain - UUCP-name of domain.com.br UlocX - UUCP-account at domain.com.br (I'll tell you later) locX-passwd - clear-text password for that account to 'config' goes ------------------------------- uuname locX ------------------------------- where locX - is UUCP-name of locX machine to sys goes ------------------------------- # # domain.com.br system domain called-login * time Any port type TCP address domain.com.br chat ogin: \L word: \P ------------------------------- 4. on machines locX.domain.com.br also adjust sendmail configuration, make domain.com.br as SMART_HOST (just adding DSdomain.com.br to /etc/sendmail.cf should be enough) now I'll try to describe setup at domain.com.br, it's more tricky cause I'm not running the server :-) 5. you should create UUCP-accounts for each machine, something like (/etc/passwd) UlocX:*:2014:66:UUCP account for locX machine:/tmp:/usr/libexec/uucp/uucico one UID, GID should be enough, do not forget to set those passwords (from /etc/uucp/call on locX) 6. /etc/mailertable on domain.com.br ----------------------------------- .locX.domain.com.br uucp-dom:locX locX.domain.com.br uucp-dom:locX ------------------------------- 7. probably you need to adjust /etc/uucp/passwd on domain.com.br, but I'm pretty sure we didn't do it. 8. since all the mail is to be collected at domain.com.br, you need to 'fetch' it to locX.domain.com.br, do it with (on locX.domain.com.br) $ /usr/libexec/uucp/uucico -S domain 9. all the messages about errors you can find at /var/log/messages and at /var/spool/uucp/Log 10. let me know how it worked for you ! make sure your sendmails understand /etc/mailertable ! did I miss anything ?! anybody, correct me. Regards, (Наилучшие пожелания) Ilia Chipitsine (Илья Шипицин) On Tue, 17 Aug 1999, Fabio da Silva Cunha wrote: > > Hi Friends! > > I have a litle problem: > > I have a small intranet (3 Sites conected by leased lines with > routers) and i need to connect it > to the internet to send and receive e-mail. > > All Sites have one FreeBSD 2.2.8 Mail Server with Sendmail 8.8.8, > and uses private address. > > The Head Office uses a FreeBSD 2.2.8 (Sendmail 8.8.8) with two > network interfaces: one private > conected to the intranet, and one public, conected to the internet by the > firewall (FreeBSD 3.2). > > > My network: > |---------------| > loc1.domain.com.br | | > ---------------------- 10.1.1.x | Head Office | > | mail server 1 |-------------| | > ---------------------- | | > | | > loc2.domain.com.br | domain.com.br | > ---------------------- 10.1.2.x | | 200.x.x.x > [--------] > | mail server 2 |-------------| Mail > |------------[FIREWALL]--> INTERNET > ---------------------- | Server4 | > [--------] > | | > loc3.domain.com.br | | > ---------------------- 10.1.3.x | | > | mail server 3 |-------------| | > ---------------------- |---------------| > > The problem: > > How to route mail beetwen these 3 locations and the internet through > the Mail Server4 in Head Office. > > Any ideas? > > Thanks in advance! > > Regards, > > FАbio da Silva Cunha > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message