MailScanner and Sendmail on Centos 5.5

Jules Field MailScanner at ecs.soton.ac.uk
Wed Jun 23 22:59:37 IST 2010


CentOS == RedHat for all intents and purposes.

So don't install the "Other" distribution at all. Just install the 
RedHat distribution and this will do everything for you. Don't hack or 
tweak anything, just run the installer and do what it says.

Jules.

On 23/06/2010 22:31, Brad Beckenhauer wrote:
> I'm building a new MailScanner system on Centos 5.5-64bit and this 
> time I'm wanting to use Sendmail instead of Postfix.  My experience 
> base has been with Postfix, so I've been doing abit of reading for the 
> archives.
> I read the "Configure Sendmail" notes on 
> http://mailscanner.info/other.html and looked at the sendmail startup 
> script.   I could insert the recommended sendmail start lines into the 
> script, but I'm not so sure about how it will effect 
> the "sm-msp-queue" code just below it.
> Since I'm a newbie at Sendmail, I wanted to ask for input for those of 
> you who have more sendmail experience.
> Here are the recommend start lines from the mailscanner.info website 
> and the "start" code section from the sendmail start script.
> How are you sendmail folks configuring your systems?
> - thank you
> Brad
>     sendmail -bd -q15m
> You should change this to the following two lines:
>     sendmail -bd -OPrivacyOptions=noetrn -ODeliveryMode=queueonly 
> -OQueueDirectory=/var/spool/mqueue.in
>     sendmail -q15m
> 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
> }

Jules

-- 
Julian Field MEng CITP CEng
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

Need help customising MailScanner?
Contact me!
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
Follow me at twitter.com/JulesFM


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the MailScanner mailing list