Changing Commands That Start Sendmail

Robert Harpham robert at FENLANARENA.CO.UK
Sun Nov 23 21:33:46 GMT 2003


Hi
am i folowing the install instructions for setting up mailscanner with
sendmail i have come to the part of changing the commands that start
sendmail, below is the script that startsmy mail server. located in.
/etc/rc.d/rc.sendmail

i have to change the sendmail -db -q15m
into
sendmail -bd -OPrivacyOptions=noetrn -ODeliveryMode=queueonly -OQueueDirecto
ry=/var/spool/mqueue.in
    sendmail -q15m
 but i see mine has extra setting here to how should i edit this correctly.?

many thanks
kudos

#!/bin/sh
# Start/stop/restart sendmail.

# Start sendmail:
sendmail_start() {
  if [ -x /usr/sbin/sendmail ]; then
    echo "Starting sendmail MTA daemon:  /usr/sbin/sendmail -L
sm-mta -bd -q25m"
    /usr/sbin/sendmail -L sm-mta -bd -q25m
    echo "Starting sendmail MSP queue runner:  /usr/sbin/sendmail -L
sm-msp-queue -Ac -q25m"
    /usr/sbin/sendmail -L sm-msp-queue -Ac -q25m
  fi
}

# Stop sendmail:
sendmail_stop() {
  killall sendmail
}

# Restart sendmail:
sendmail_restart() {
  sendmail_stop
  sleep 1
  sendmail_start
}

case "$1" in
'start')
  sendmail_start
  ;;
'stop')
  sendmail_stop
  ;;
'restart')
  sendmail_restart
  ;;
*)
  echo "usage $0 start|stop|restart"
esac



More information about the MailScanner mailing list