Date: Wed, 10 Jul 1996 13:38:26 -0500 (CDT) From: Joe Greco <jgreco@brasil.moneng.mei.com> To: andrew@pubnix.net Cc: szapata@data.net.mx, freebsd-isp@freebsd.org Subject: Re: mx records & sendmail Message-ID: <199607101838.NAA26058@brasil.moneng.mei.com> In-Reply-To: <Pine.BSF.3.91.960709212013.28827K-100000@guardian.fortress.org> from "Andrew Webster" at Jul 9, 96 09:33:02 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> An excellent "virtual mail domain" FAQ can be found at the following site > + other neat goodies like virtual domain FTP etc. > http://remarkable.amazing.com/internet/virtual-homer.html Oooo. Be VERY VERY CAREFUL... this is only useful as a general reference. I like the bit about: # Kill sendmail and restart it. DON'T use kill -9. Kill it dead. You can and # should create a little shell script that # will kill and restart sendmail, named, and httpd, as you will need to be # doing this alot. Named and httpd only need a kill -9. And here I always thought "kill -9" WAS "killing it dead"... Personally I find that HUP works better on named, and "named.reload" works best... you sorta lose your cache if you kill -9 named. The basic outline is correct, but it can be rolled into your .mc and .m4 files a little more neatly than the bludgeon-job that is described in this document. I also don't care for the (incorrect) implications about the necessity for DNS service. It is certainly a component of the problem, but you do not have to be "primary name service" for the domain... you simply need an appropriate MX pointed at your host. I use the following, and I do it from a .m4 file... LOCAL_CONFIG Kdomaliases hash /etc/domaliases.db LOCAL_RULE_0 R$+ < @ $+ . > $: $1 < @ $2 > . # Map "@x.y.z -> @a.b.c" R$+ < @ $+ > $* $: $1 < $(domaliases @$2 $: @ $2 $) > $3 # Map "user1@x.y.z -> user2@a.b.c" R$+ < @ $+ > $* $: $(domaliases $1@$2 $: $1 < @ $2 > $3 $) # Map "x.y.z (hostname) -> user@a.b.c" R$+ < @ $+ > $* $: $(domaliases $2 $: $1 < @ $2 > $3 $) R$+ < @ $+ > . $: $1 < @ $2 . > I remember when I did it it didn't seem quite "right" but it works to do all the translations I needed... I rewrite addresses going to "@ods.sol.net" to "@ods.ods.net", or individual users, or an entire domain name like "www.domain.com" getting pointed to a single mailbox. It's reasonably flexible and general. I should make it a FEATURE(domaliases), just too lazy to figure out how to go to that level of niceness :-) ... Joe ------------------------------------------------------------------------------- Joe Greco - Systems Administrator jgreco@ns.sol.net Solaria Public Access UNIX - Milwaukee, WI 414/546-7968
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607101838.NAA26058>
