re: After editing freebsd.mc, how do I use this m4 processor?

2002-09-17 Thread Stacey Roberts

Hello,
 I've got a vanilla sendmail installation on my 4.6Stable box:
# sendmail -d0.4 -bv root
Version 8.12.5

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 in
/etc/mail, but after this, its not entirely clear how it is I am
supposed to proceed afterwards.

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).

Could someone please tell me the following:

1] Where it is I can find out how to use m4 to generate a .cf file? 
2] Do I still need to run make in /etc/mail even though sendmail was
compiled and installed at system installation time?

Here's my uname info:
#  uname -a
FreeBSD snip 4.6-STABLE FreeBSD 4.6-STABLE #0: Wed Jul 24 02:57:09 BST
2002 root:/usr/obj/usr/src/sys/snip  i386
# 

Thanks,

Stacey


-- 
Stacey Roberts
B.Sc (HONS) Computer Science

Web: www.vickiandstacey.com



signature.asc
Description: This is a digitally signed message part


Re: After editing freebsd.mc, how do I use this m4 processor?

2002-09-17 Thread Scott Mitchell

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
 
 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 in
 /etc/mail, but after this, its not entirely clear how it is I am
 supposed to proceed afterwards.
 
 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).
 
 Could someone please tell me the following:
 
 1] Where it is I can find out how to use m4 to generate a .cf file? 
 2] Do I still need to run make in /etc/mail even though sendmail was
 compiled and installed at system installation time?

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 the
best way to proceed.  The Makefile itself lists the various possible
targets in the comments at the top.

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.

This make has nothing to do with rebuilding the sendmail binaries -- it
just deals with the configuration files.

Cheers,

Scott

-- 
===
Scott Mitchell  | PGP Key ID | Eagles may soar, but weasels
Cambridge, England  | 0x54B171B9 |  don't get sucked into jet engines
[EMAIL PROTECTED] | 0xAA775B8B |  -- Anon

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: After editing freebsd.mc, how do I use this m4 processor?

2002-09-17 Thread Giorgos Keramidas

On 2002-09-17 21:59, Stacey Roberts [EMAIL PROTECTED] wrote:
 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 in
 /etc/mail, but after this, its not entirely clear how it is I am
 supposed to proceed afterwards.

The canonical way of converting .mc files to .cf on FreeBSD is to use
the Makefile found in /etc/mail (originally found in /usr/src/etc/mail).
Just edit freebsd.mc and then run:

# make

The file /usr/src/contrib/sendmail/cf/README describes that the same
thing can be accomplished with a command like:

# m4 -D_CF_DIR_=${CFDIR}/ ${CFDIR}/m4/cf.m4 config.mc  config.cf

after having set CFDIR to the proper value, of course (in the case of
FreeBSD this would be CFDIR='/usr/src/contrib/sendmail/cf').

 1] Where it is I can find out how to use m4 to generate a .cf file?
 2] Do I still need to run make in /etc/mail even though sendmail was
 compiled and installed at system installation time?

Hopefully both have been answered :)

-- 
FreeBSD: The Power to Serve   http://www.FreeBSD.org/
FreeBSD 4.5-RELEASE-p20 #0: Tue Sep 17 15:23:24 EEST 2002

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: After editing freebsd.mc, how do I use this m4 processor?

2002-09-17 Thread Stacey Roberts

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  wheel512 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  wheel411 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  wheel679 Jul 24 07:29 freebsd.submit.mc
-r--r--r--   1 root  wheel   5588 Jul 24 07:29 helpfile
-rw-r--r--   1 root  wheel404 Jul 24 07:30 mailer.conf
-rw-r--r--   1 root  wheel245 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  wheel573 Sep 18  2001 virtusertable.sample
# 
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
  
  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 in
  /etc/mail, but after this, its not entirely clear how it is I am
  supposed to proceed afterwards.
  
  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).
  
  Could someone please tell me the following:
  
  1] Where it is I can find out how to use m4 to generate a .cf file? 
  2] Do I still need to run make in /etc/mail even though sendmail was
  compiled and installed at system installation time?
 
 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 the
 best way to proceed.  The Makefile itself lists the various possible
 targets in the comments at the top.
 
 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.
 
 This make has nothing to do with rebuilding the sendmail binaries -- it
 just deals with the configuration files.
 
 Cheers,
 
   Scott
 
 -- 
 ===
 Scott Mitchell  | PGP Key ID | Eagles may soar, but weasels
 Cambridge, England  | 0x54B171B9 |  don't get sucked into jet engines
 [EMAIL PROTECTED] | 0xAA775B8B |  -- Anon
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
-- 
Stacey Roberts
B.Sc (HONS) Computer Science

Web: www.vickiandstacey.com



signature.asc
Description: This is a digitally signed message part


Re: After editing freebsd.mc, how do I use this m4 processor?

2002-09-17 Thread Mike Hogsett


 Not deprecated, but streamlined.  If I understand you correctly, in
 /etc/mail, copy freebsd.mc to your.machine.name.mc, then do your editing on
 it.

Don't even copy it.  Just run make, then edit hostname.mc and run make
(again), make install and make restart.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



RE: After editing freebsd.mc, how do I use this m4 processor?

2002-09-17 Thread Stacey Roberts

Thank you all for the overwhelming response to my post :-)

As I mentioned to an earlier replier, These last few minutes has opened
up a new, refreshing appreciation of FreeBSD to me. 
The simplicity of this concept that escaped me is almost embarrassing,
but worth it in the end.

Thank you all once again!

Stacey

On Tue, 2002-09-17 at 22:42, Riley J. McIntire wrote:
  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
 
 Not deprecated, but streamlined.  If I understand you correctly, in
 /etc/mail, copy freebsd.mc to your.machine.name.mc, then do your editing on
 it.
 
 make will run your.machine.name.mc through m4 to produce
 your.machine.name.cf.
 
 make install will cp the above to sendmail.cf.  make restart will read the
 new .cf files.
 
 Much easier than the old method.
 
 hth,
 
 Riley
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
-- 
Stacey Roberts
B.Sc (HONS) Computer Science

Web: www.vickiandstacey.com



signature.asc
Description: This is a digitally signed message part