Date: Wed, 18 Aug 1999 01:18:39 +0600 (ESS) From: Ilia Chipitsine <ilia@cgilh.chel.su> To: Fabio da Silva Cunha <fsc@mymail.com.br> Cc: questions@FreeBSD.ORG Subject: Re: Mail routing on the Intranet / Internet - FreeBSD Message-ID: <Pine.BSF.4.05.9908172359110.268-100000@localhost.cgu.chel.su> In-Reply-To: <1.5.4.32.19990817144814.0097ff10@mymail.com.br>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9908172359110.268-100000>