[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] using an mc file to configure sendmail



I have trouble keeping track of what sendmail is doing, because the
web interface simply changes the sendmail.cf file (as do those who
follow the many comments on this list). On a 550, the 
cobalt.mc file is at /usr/lib/sendmail-cf/cf/cobalt.mc.

On my Mac at home, in order to deal with a similar problem, someone
wrote and article that suggested copying your sendmail.mc to /etc/mail
and creating the script below. It works fine on a mac.

[imac:/etc/mail] josh% more update-sendmail.sh 
#! /bin/sh

if [ /etc/mail/sendmail.mc -nt /etc/mail/sendmail.cf ]
then
    echo Regenerating sendmail.cf
    m4 /usr/share/sendmail/conf/m4/cf.m4 /etc/mail/sendmail.mc > \
        /tmp/sendmail.cf
    mv /etc/mail/sendmail.cf /etc/mail/sendmail.cf.old
    mv /tmp/sendmail.cf /etc/mail/sendmail.cf
    /System/Library/StartupItems/Sendmail/Sendmail restart
fi


No in order for somthing similar to work on a RaQ (550 -- maybe
others) I needed to change the line near the top 
from:  include(`m4/cf.m4')dnl
to:    include(`/usr/lib/sendmail-cf/m4/cf.m4')dnl
and this allows me to build sendmail in a local directory but in a
standard way.

m4 /usr/lib/sendmail-cf/m4/cf.m4 ~/etc/mail/cobalt.mc > sendmail.cf

Are there any expers out there who can tell me if I can bypass the web
face altogether, since I find this easier. Or even what the web face
changes. Also, if anyone is using MailScanner and SpamAssasin how to
they access sendmail. After I installed nuonces mailscanner package it
looked like it a: completely rewrote /etc/rc.d/init.d/sendmail and b:
created a new sendmail.cf file called sendmail.b4.mailscanner.cf.

The web inteface allows "immediate delivery" or scheduled times and
setting a forced host name Dm. But the rest seems to be missing. Any
ideas. I'm really just trying to track down a problem and determine if
it is mail or dns. (I've been known to screw them both up
simulataneously.)


-- 
Josh Kuperman                       
josh@xxxxxxxxxxxxxxxxxx