>Настраиваю sendmail:
>
>cd /usr/share/sendmail/cf/m4;
>m4 cf.m4 /etc/mail/XXXX.submit.mc > /etc/mail/sendmail.cf
>
>получаю ошибку:
>
>m4: cf.m4 at line 29: include(m4/cfhead.m4): No such file or directory
>
>Где копать??? Заранее спасибо. в голове:
либо читать документацию:
# less /usr/src/contrib/sendmail/cf/README
...
+--------------------------+
| INTRODUCTION AND EXAMPLE |
+--------------------------+
Configuration files are contained in the subdirectory "cf", with a
suffix ".mc". They must be run through "m4" to produce a ".cf" file.
You must pre-load "cf.m4":
m4 ${CFDIR}/m4/cf.m4 config.mc > config.cf
Alternatively, you can simply:
cd ${CFDIR}/cf
./Build config.cf
where ${CFDIR} is the root of the cf directory and config.mc is the
name of your configuration file. If you are running a version of M4
that understands the __file__ builtin (versions of GNU m4 >= 0.75 do
this, but the versions distributed with 4.4BSD and derivatives do not)
or the -I flag (ditto), then ${CFDIR} can be in an arbitrary directory.
For "traditional" versions, ${CFDIR} ***MUST*** be "..", or you MUST
use -D_CF_DIR_=/path/to/cf/dir/ -- note the trailing slash! For example:
m4 -D_CF_DIR_=${CFDIR}/ ${CFDIR}/m4/cf.m4 config.mc > config.cf
...
либо использовать ГОТОВЫЕ средства FreeBSD:
# less /etc/mail/Makefile
# man make.conf