Upgrade Wrecks MailScanner
Paul Scott
sales at edenusa.com
Wed Oct 12 20:39:38 UTC 2016
Hello Jerry,
Thank you. I did read this yesterday, but when I edit the "sendmail" file under /etc/init.d, I cannot find the " sendmail -bd -q15m" entry, as document on that page.
This is what is under the "start()" function:
start() {
# Start daemons.
echo -n $"Starting $prog: "
if test -x /usr/bin/make -a -f /etc/mail/Makefile ; then
make all -C /etc/mail -s > /dev/null
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
/usr/bin/newaliases > /dev/null 2>&1
daemon /usr/sbin/sendmail $([ "x$DAEMON" = xyes ] && echo -bd) \
$([ -n "$QUEUE" ] && echo -q$QUEUE) $SENDMAIL_OPTARG
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/sendmail
if ! test -f /var/run/sm-client.pid ; then
echo -n $"Starting sm-client: "
touch /var/run/sm-client.pid
chown smmsp:smmsp /var/run/sm-client.pid
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
/sbin/restorecon /var/run/sm-client.pid
fi
daemon --check sm-client /usr/sbin/sendmail -L sm-msp-queue -Ac \
-q$SMQUEUE $SENDMAIL_OPTARG
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/sm-client
fi
return $RETVAL
}
I am assuming that it is this line: /usr/sbin/sendmail $([ "x$DAEMON" = xyes ] && echo -bd) \
$([ -n "$QUEUE" ] && echo -q$QUEUE) $SENDMAIL_OPTARG
So how would I go about adding this and editing the file correct?
sendmail -bd -OPrivacyOptions=noetrn -ODeliveryMode=queueonly -OQueueDirectory=/var/spool/mqueue.in
sendmail -q15m
Thank you all again. This is quite the exercise.
Sincerely, Paul Scott
-----Original Message-----
From: MailScanner [mailto:mailscanner-bounces+sales=edenusa.com at lists.mailscanner.info] On Behalf Of Jerry Benton
Sent: Wednesday, October 12, 2016 1:19 PM
To: MailScanner Discussion <mailscanner at lists.mailscanner.info>
Subject: RE: Upgrade Wrecks MailScanner
Or you can just do this:
https://www.mailscanner.info/sendmail/
-
Jerry Benton
www.mailborder.com
+1 - 844-436-6245
-----Original Message-----
From: Wolfgang Baudler <wbaudler at gb.nrao.edu>
Reply: MailScanner Discussion <mailscanner at lists.mailscanner.info>
Date: October 12, 2016 at 4:18:02 PM
To: MailScanner Discussion <mailscanner at lists.mailscanner.info>
Subject: RE: Upgrade Wrecks MailScanner
> > Hello Wolfgang,
> >
> > Thank you so much for this file. I put it up under the /etc/init.d
> > directory, and named it "MailScanner", but I do not know how to
> > register it as a service, nor what permissions it should have, or
> > even what name it actually should be. However, I just fired it up
> > manually, and it only starts the "mailscanner" service, and not the
> > sendmail service. So I am in the same place for now, and that is, MailScanner is not scanning email.
> >
>
> I would leave the name as mailscanner-sendmail. It does not start the
> mailscanner service. You will still need the mailscanner service
> coming with MailScanner 5.x. The script needs to be started before the
> mailscanner service is launched, though.
>
> Once you have it in /etc/init.d, you can persistently activate it with
>
> chkconfig --add mailscanner-sendmail
> chkconfig mailscanner-sendmail on
>
> Then reboot or manually stop/start mailscanner using
>
> /etc/init.d/mailscanner-sendmail stop
> /etc/init.d/mailscanner stop
>
> /etc/init.d/mailscanner-sendmail start /etc/init.d/mailscanner start
>
> Wolfgang
>
>
>
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
>
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner
More information about the MailScanner
mailing list