Skip site navigation (1)Skip section navigation (2)
Date:      17 Sep 2002 22:17:32 +0100
From:      Stacey Roberts <stacey@Demon.vickiandstacey.com>
To:        Scott Mitchell <scott.mitchell@mail.com>
Cc:        FreeBSD Questions <freebsd-questions@FreeBSD.ORG>, sendmail-questions@sendmail.org
Subject:   Re: After editing freebsd.mc, how do I use this m4 processor?
Message-ID:  <1032297455.376.68.camel@Demon.vickiandstacey.com>
In-Reply-To: <20020917220728.A3039@fishballoon.dyndns.org>
References:  <1032296374.376.60.camel@Demon.vickiandstacey.com>  <20020917220728.A3039@fishballoon.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-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 <blah>.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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1032297455.376.68.camel>