Maxsec: stuff about install.sh and FreeBSD

Julian Field MailScanner at ecs.soton.ac.uk
Tue Nov 29 17:15:28 GMT 2005


    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

Maxsec,
I don't know your email address or anything, so have to spam the list :-(

Don't understand your last comment in IRC this afternoon.

the new install.sh you sent me for the FreeBSD mailscanner.cf sym link to
/opt/MailScanner/etc/spam.assassi n.pref.conf needs to be included since
the last beta

What install.sh do you need? Just the standard install.sh from the
MailScanner-install-......tar.gz?

If so, this is probably the code you're looking for:

echo
echo Linking into SpamAssassin if you have it installed.
echo

SADIR=`$PERL -MMail::SpamAssassin -e 'printMail::SpamAssassin->new->first_existing_path(@Mail::SpamAssassin::site_rules_pa
h)' 2>/dev/null`

if [ "x$SADIR" = "x" ]; then
  echo No SpamAssassin installation found.
else
  if [ -d /opt/MailScanner/etc ]; then
    ln -s -f /opt/MailScanner/etc/spam.assassin.prefs.conf
${SADIR}/mailscanner.cf
    echo Good, the link was created to /opt/MailScanner/etc
  elif [ -d /usr/local/MailScanner/etc ]; then
    ln -s -f /usr/local/MailScanner/etc/spam.assassin.prefs.conf
${SADIR}/mailscanner.cf
    echo Good, the link was created to /usr/local/MailScanner/etc
  elif [ -d /etc/MailScanner ]; then
    ln -s -f /etc/MailScanner/spam.assassin.prefs.conf
${SADIR}/mailscanner.cf
    echo Good, the link was created to /etc/MailScanner
  elif [ -d /usr/local/etc/MailScanner ]; then
    ln -s -f /usr/local/etc/MailScanner/spam.assassin.prefs.conf
${SADIR}/mailscanner.cf
    echo Good, the link was created to /usr/local/etc/MailScanner
  else
    echo
    echo 'WARNING: Could not find MailScanner installation directory.'
    echo  WARNING: You must create a link in ${SADIR} called
mailscanner.cf
    echo  WARNING: which points to the spam.assassin.prefs.conf file in
the
    echo  WARNING: MailScanner etc directory.
    echo
    sleep 10
  fi
fi
timewait 5

-- 
Julian Field
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654


------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/)
and the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!


    [ Part 2, Application/PGP-SIGNATURE  498bytes. ]
    [ Unable to print this part. ]




More information about the MailScanner mailing list