README 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. $OpenBSD: README,v 1.5 2014/07/22 10:55:40 ajacoutot Exp $
  2. +-----------------------------------------------------------------------
  3. | Running ${FULLPKGNAME} on OpenBSD
  4. +-----------------------------------------------------------------------
  5. The MailScanner port is using the original MailScanner tarball from
  6. www.mailscanner.info. This tarball puts all the MailScanner files in
  7. subdirectories
  8. bin MailScanner binary / MailScanner start script etc.
  9. etc MailScanner config files / rules / report templates
  10. lib Virus wrapper and autoupdate scripts / MailScanner Perl libraries
  11. docs Documentation
  12. var pid file
  13. In order to make this OpenBSD compliant the port installs those files
  14. in the following directories:
  15. ${TRUEPREFIX}/libexec/MailScanner MailScanner binary, virus wrapper/autoupdate
  16. ${TRUEPREFIX}/lib/MailScanner MailScanner Perl libraries
  17. ${TRUEPREFIX}/share/MailScanner MailScanner report templates
  18. ${TRUEPREFIX}/share/doc/MailScanner Documentation
  19. ${TRUEPREFIX}/share/examples/MailScanner Example files
  20. ${SYSCONFDIR}/MailScanner MailScanner config files / rules
  21. See http://www.mailscanner.info and the sample configuration
  22. files in ${SYSCONFDIR}/MailScanner for further instructions.
  23. To activate this package, you must do the following for sendmail:
  24. 1. Set the following in your sendmail.mc file:
  25. define(`confDELIVER_MODE',`queue')
  26. define(`confPRIVACY_FLAGS',`noetrn')
  27. (if you do not have a sendmail.mc file, use
  28. /usr/share/sendmail/cf/openbsd-proto.mc)
  29. and regenerate your sendmail.cf
  30. (if you do not know how, try:
  31. m4 /usr/share/sendmail/m4/cf.m4 sendmail.mc > test.cf
  32. )
  33. 2. Put the following line in /etc/rc.conf.local:
  34. sendmail_flags=-L sm-mta -bd -OQueueDirectory=/var/spool/mqueue.in
  35. 3. Add the following to /etc/rc.local:
  36. # MailScanner
  37. if [ -x /usr/sbin/sendmail ]; then
  38. echo -n ' sm-mta-queue'; /usr/sbin/sendmail -q30s -L sm-mta-queue
  39. fi
  40. 4. Add "mailscanner" to your pkg_scripts line in /etc/rc.conf.local.
  41. 5. Add the following to root's crontab:
  42. # Check the status of MailScanner every hour
  43. 0 * * * * ${TRUEPREFIX}/bin/check_mailscanner -q
  44. For other MTAs, configure according to MailScanner's documentation,
  45. and follow steps 4 and 5 above.