MailSacanner don't work

Denis Beauchemin Denis.Beauchemin at USherbrooke.ca
Fri Mar 9 19:59:35 CET 2007


Claudio Mundin a écrit :
> Here is the /etc/init.d/MailScanner  script
>
> #!/bin/bash
> #
> # mailscanner   This shell script takes care of starting and stopping
> #               MailScanner, and its associated copies of sendmail.
> #
> ### BEGIN INIT INFO
> # Provides:          MailScanner
> # Required-Start:    $syslog $remote_fs
> # X-UnitedLinux-Should-Start: $time $network $named ypbind
> # Required-Stop:
> # X-UnitedLinux-Should-Stop:
> # Default-Start:     3 5
> # Default-Stop:      0 1 2 6
> # Short-Description: MailScanner and sendmail daemons
> # Description:       Start sendmail and MailScanner to provide
> #       SMTP service with virus, dangerous contents and spam scanning.
> ### END INIT INFO
>
> # Check for missing binaries (stale symlinks should not happen)
> MAILSCANNER_BIN=/usr/sbin/check_MailScanner
> test -x $MAILSCANNER_BIN   || exit 5
>
> #
> # Set the default values.
> # DON'T EDIT THESE, EDIT /etc/sysconfig/MailScanner INSTEAD!
> #
> MTA=sendmail
> POSTFIX=/usr/sbin/postfix
> POSTFIXINCF=/etc/postfix.in
> POSTFIXOUTCF=/etc/postfix
> POSTFIXWORKOWNER=postfix
> POSTFIXQUAROWNER=postfix
> MAILSCANNER_WORKDIR="/var/spool/MailScanner/incoming"
> MAILSCANNER_INQDIR="/var/spool/mqueue.in"
> MAILSCANNER_RUNAS=root
> SENDMAIL_IN_ARGS="-L sendmail-in -Am -bd -om"
> SENDMAIL_CLIENT_ARGS="-L sendmail-client -Ac -q30m"
> SENDMAIL_OUT_ARGS="-L sendmail-out -Am -q30m -om"
> SENDMAIL="/usr/sbin/sendmail"
> RESTART_DELAY=10
>
> # Check for existence of needed config files and read them
> test -s /etc/sysconfig/mail && \
>       . /etc/sysconfig/mail
>
> test -s /etc/sysconfig/sendmail && \
>       . /etc/sysconfig/sendmail
>
> test -s /etc/sysconfig/MailScanner && \
>       . /etc/sysconfig/MailScanner
>
>
> msppid=/var/spool/clientmqueue/sm-client.pid
> srvpid=/var/run/sendmail.pid
> srvoutpid=/var/run/sendmail-out.pid
> mspid=/var/run/MailScanner.pid
>
> if test "$SMTPD_LISTEN_REMOTE" != "yes" ; then
>         SENDMAIL_IN_ARGS="-O DaemonPortOptions=Addr=127.0.0.1 
> $SENDMAIL_IN_ARGS"
> fi
>
Claudio,

Looks like "$SMTPD_LISTEN_REMOTE" is not set to "yes".  As for why it 
isn't... I can't tell...

Either define the variable (SMTPD_LISTEN_REMOTE=yes) before its use or 
comment out the whole "if" clause to make it go away.

Denis

-- 
   _
  °v°   Denis Beauchemin, analyste
 /(_)\  Université de Sherbrooke, S.T.I.
  ^ ^   T: 819.821.8000x62252 F: 819.821.8045


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3595 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20070309/08cfc4a8/smime.bin


More information about the MailScanner mailing list