From owner-freebsd-questions Tue Sep 17 14:17:40 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E42A137B401 for ; Tue, 17 Sep 2002 14:17:36 -0700 (PDT) Received: from shockwave.systems.pipex.net (shockwave.systems.pipex.net [62.241.160.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 83D2F43E6E for ; Tue, 17 Sep 2002 14:17:32 -0700 (PDT) (envelope-from stacey@Demon.vickiandstacey.com) Received: from Demon (81-86-129-77.dsl.pipex.com [81.86.129.77]) by shockwave.systems.pipex.net (Postfix) with ESMTP id E1C141600195A; Tue, 17 Sep 2002 22:17:27 +0100 (BST) Subject: Re: After editing freebsd.mc, how do I use this m4 processor? From: Stacey Roberts Reply-To: sroberts@dsl.pipex.com To: Scott Mitchell Cc: FreeBSD Questions , sendmail-questions@sendmail.org In-Reply-To: <20020917220728.A3039@fishballoon.dyndns.org> References: <1032296374.376.60.camel@Demon.vickiandstacey.com> <20020917220728.A3039@fishballoon.dyndns.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-2tO/yE3lUzenar0W8UuT" X-Mailer: Ximian Evolution 1.0.8 Date: 17 Sep 2002 22:17:32 +0100 Message-Id: <1032297455.376.68.camel@Demon.vickiandstacey.com> Mime-Version: 1.0 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=-2tO/yE3lUzenar0W8UuT Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Scott, Thanks for the reply. I *already* have those file located in /etc/mail: # ls -al /etc/mail total 251 drwxr-xr-x 2 root wheel 512 Jul 24 07:30 . drwxr-xr-x 17 root wheel 2048 Sep 14 19:38 .. -rw-r--r-- 1 root wheel 6542 Jul 24 07:30 Makefile -rw-r--r-- 1 root wheel 2899 Jul 24 07:30 README -rw-r--r-- 1 root wheel 411 Sep 18 2001 access.sample -rw-r--r-- 1 root wheel 1458 Jul 24 07:30 aliases -rw-r--r-- 1 root wheel 32768 Jul 24 07:42 aliases.db -rw-r--r-- 1 root wheel 56945 Jul 24 07:29 freebsd.cf -rw-r--r-- 1 root wheel 4172 Jul 24 07:28 freebsd.mc -r--r--r-- 1 root wheel 38756 Jul 24 07:29 freebsd.submit.cf -r--r--r-- 1 root wheel 679 Jul 24 07:29 freebsd.submit.mc -r--r--r-- 1 root wheel 5588 Jul 24 07:29 helpfile -rw-r--r-- 1 root wheel 404 Jul 24 07:30 mailer.conf -rw-r--r-- 1 root wheel 245 Sep 18 2001 mailertable.sample -rw-r--r-- 1 root wheel 56945 Jul 24 07:29 sendmail.cf -r--r--r-- 1 root wheel 38756 Jul 24 07:29 submit.cf -rw-r--r-- 1 root wheel 573 Sep 18 2001 virtusertable.sample #=20 These would have been installed at the last time I recompiled the kernel. I'm fairly comfortable in editing these files as required, but I am pretty certain that after editing freebsd.mc (so as to define masquerading, default gateway, etc), I am supposed to use m4 to generate a new freebsd.cf, which in turn is copied to sendmail.cf, thus producing a new configuration file for sendmail to read upon restart. This is what I know of sendmail (back in v8.8x & 8.9x) under AIX and Sequent Dynix/ptx. Has this procedure since been deprecated for FreeBSD, that I am now aware of? Thanks again for the reply. Stacey On Tue, 2002-09-17 at 22:07, Scott Mitchell wrote: > On Tue, Sep 17, 2002 at 09:59:32PM +0100, Stacey Roberts wrote: > > Hello, > > I've got a vanilla sendmail installation on my 4.6Stable box: > > # sendmail -d0.4 -bv root > > Version 8.12.5 > >=20 > > I'd like to now set up sendmail to receive mail destined for my > > (registered) domain. Now, I know I have to edited the freebsd.mc file i= n > > /etc/mail, but after this, its not entirely clear how it is I am > > supposed to proceed afterwards. > >=20 > > I read the README's in /usr/src/contrib/sendmail & /etc/mail, that's > > shipped with my FBSD box, it doesn't *actually* say how to "run" m4. In > > googling, I've picked up a couple for threads, that mentions m4 almost > > in passing (".... then use m4 to generate your .cf file that you > > later copy sendmail.cf"). > >=20 > > Could someone please tell me the following: > >=20 > > 1] Where it is I can find out how to use m4 to generate a .cf file?=20 > > 2] Do I still need to "run make" in /etc/mail even though sendmail was > > compiled and installed at system installation time? >=20 > You need to run make in /etc/mail to generate the new sendmail.cf, > submit.cf, etc. Probably 'make install' followed by 'make restart' is th= e > best way to proceed. The Makefile itself lists the various possible > targets in the comments at the top. >=20 > I guess you can grovel through the Makefile to figure out exactly how m4 > should be invoked, but this isn't something you actually need to know in > order to reconfigure sendmail. >=20 > This make has nothing to do with rebuilding the sendmail binaries -- it > just deals with the configuration files. >=20 > Cheers, >=20 > Scott >=20 > --=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D > Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels > Cambridge, England | 0x54B171B9 | don't get sucked into jet engines= " > scott.mitchell@mail.com | 0xAA775B8B | -- Anon >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message --=20 Stacey Roberts B.Sc (HONS) Computer Science Web: www.vickiandstacey.com --=-2tO/yE3lUzenar0W8UuT Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 iQEVAwUAPYeb6pvQeubckvvXAQFIcwf/VDUpzvEpijt4eBXOzFrP8qsYPqlDV8gV d9wIfsEr7MiB40FzGhYHflzB5Poj2+/sCdphGH0Vq45aSNNmkWLjJ+ghwQflSTXl G2G68+rJvFEGzLOPLc+1eyCaiCC3ec5R8uTEDFG0qaP4SmYcTERj4Fj/LwGHRP9U jzmCnSDjeikZ17ou4bNWu7vE8KysE5rNLZLcVfFicUn9IWMGaq+lf+AfGnab0ufZ z3rgg0NaI/46dwE83q/7p1wzfv8AZCPRly+f7wcN4eSO3XwoxDwNnv2sk25Qpfnd xnjdC2tVHuJa8H2annn0Yc9UPxm99yn/pdTlMnJzOmGTYctusvyhzg== =P8xt -----END PGP SIGNATURE----- --=-2tO/yE3lUzenar0W8UuT-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message