Mailscanner setup (sendmail start script)

Kevin Miller Kevin_Miller at CI.JUNEAU.AK.US
Tue Dec 30 16:09:06 GMT 2003

Don't modify the sendmail script.  You'll find a MailScanner script in the
/etc/init.d directory with all the right pixie dust already in it.  As root,

        chkconfig sendmail off  (or 'chkconfig postfix off' if one is
                                        running that instead of sendmail -
                                        being the current SuSE default MTA)
        chkconfig MailScanner on

That will turn off the default sendmail script at startup, and configure
MailScanner to start.

It's a bit confusing at first.  With different distros doing things
different ways it almost begs for a seperate install instruction page for
each but that would be pretty tedious and hard to maintain.  Guess that's
the beauty of the mailing list.

There's more pieces to the puzzle in /etc/sysconfig/MailScanner.  Look in
there, make sure the MTA is set to sendmail (it defaults to postfix), and
try again...

Kevin Miller                Registered Linux User No: 307357
CBJ MIS Dept.               Network Systems Administrator, Mail
155 South Seward Street     ph: (907) 586-0242
Juneau, Alaska 99801        fax: (907 586-4500

>-----Original Message-----
>From: Wilfred Bolten [mailto:Wilfred.Bolten at TOMMY-EUROPE.COM]
>Sent: Tuesday, December 30, 2003 1:09 AM
>Subject: Re: Mailscanner setup (sendmail start script)
>Same problem here. SuseLinux 9 with sendmail. Even when you
>change the line mentioned at the page and restart sendmail the
>scanner does not seem to be present. Havent been able to
>figure this out yet.
>-----Original Message-----
>From: Al Cooper [mailto:alc at TLYNX.COM]
>Sent: Monday, December 29, 2003 11:39 PM
>Subject: Mailscanner setup (sendmail start script)
>I am setting up mailscanner on a Redhat 9 box.  I am following the
>instructions provided by Julian Field at the following link:
>I am at the point of modifying the sendmail start script in
>/etc/rc.d/init.d.  The instructions are as follows:
>"Currently, your copy of sendmail will be started by a script such as
>/etc/init.d/mail or /etc/rc.d/init.d/sendmail. Somewhere in
>this script will
>be the command to start sendmail itself. This should look like this:
>    sendmail -bd -q15m
>You should change this to the following two lines:
>sendmail -bd -OPrivacyOptions=noetrn -ODeliveryMode=queueonly
>    sendmail -q15m"
>Here is the "start" section of my sendmail start script
>start() {
>        # Start daemons.
>        echo -n $"Starting $prog: "
>        /usr/bin/newaliases > /dev/null 2>&1
>        if test -x /usr/bin/make -a -f /etc/mail/Makefile ; then
>          make all -C /etc/mail -s
>        else
>          for i in virtusertable access domaintable mailertable ; do
>            if [ -f /etc/mail/$i ] ; then
>                makemap hash /etc/mail/$i < /etc/mail/$i
>            fi
>          done
>        fi
>        daemon /usr/sbin/sendmail $([ "x$DAEMON" = xyes ] &&
>echo -bd) \
>                                $([ -n "$QUEUE" ] && echo -q$QUEUE)
>        RETVAL=$?
>        echo
>        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sendmail
>        if ! test -f /var/run/ ; then
>        echo -n $"Starting sm-client: "
>        touch /var/run/
>        chown smmsp:smmsp /var/run/
>        daemon --check sm-client /usr/sbin/sendmail -L
>sm-msp-queue -Ac \
>                                -q$SMQUEUE
>        RETVAL=$?
>        echo
>        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sm-client
>        fi
>        return $RETVAL
>I am not a programmer.  Can someone help me modify my start
>script or point
>me to a more Redhat friendly install guide?
>Al Cooper
>Confidentiality: This e-mail and its attachments are intended
>for the above named only and may be confidential.
>If they have come to you in error you must take no action
>based on them, nor must you copy or show them to anyone.
>Please reply to this e-mail and highlight the error.
>Security Warning: Please note that this e-mail has been
>created in the knowledge that Internet e-mail is not a 100%
>secure communications medium.
>We advise that you understand and observe this lack of
>security when e-mailing us.
>Viruses: Although we have taken steps to ensure that this
>e-mail and attachments are free from any virus.
>We advise that in keeping with good computing practice the
>recipient should ensure they are actually virus free.

More information about the MailScanner mailing list