Advertisement
TobyWiddows

Toby-Spmassassin Advanced from MailScanner.conf

Jun 9th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.85 KB | None | 0 0
  1. #
  2. # Advanced SpamAssassin Settings
  3. # ------------------------------
  4. #
  5. # If you are using Postfix you may well need to use some of the settings
  6. # below, as the home directory for the "postfix" user cannot be written
  7. # to by the "postfix" user.
  8. # You may also need to use these if you have installed SpamAssassin
  9. # somewhere other than the default location.
  10. #
  11.  
  12. # SpamAssassin creates lots of temporary files as it works on messages.
  13. # For speed, these should be created in a location mounted using tmpfs if
  14. # you have it. MailScanner will attempt to mkdir it if necessary, so no
  15. # special scripts are needed to set it up before running MailScanner.
  16. # Note: If you move the "Incoming Work Dir" then you should move this too.
  17. SpamAssassin Temporary Dir = /var/spool/MailScanner/incoming/SpamAssassin-Temp
  18.  
  19. # The per-user files (bayes, auto-whitelist, user_prefs) are looked
  20. # for here and in ~/.spamassassin/. Note the files are mutable.
  21. # If this is unset then no extra places are searched for.
  22. # If using Postfix, you probably want to set this as shown in the example
  23. # line at the end of this comment, and do
  24. # mkdir /var/spool/MailScanner/spamassassin
  25. # chown postfix.postfix /var/spool/MailScanner/spamassassin
  26. # NOTE: SpamAssassin is always called from MailScanner as the same user,
  27. # and that is the "Run As" user specified above. So you can only
  28. # have 1 set of "per-user" files, it's just that you might possibly
  29. # need to modify this location.
  30. # You should not normally need to set this at all.
  31. #SpamAssassin User State Dir = /var/spool/MailScanner/spamassassin
  32. SpamAssassin User State Dir =
  33.  
  34. # This setting is useful if SpamAssassin is installed in an unusual place,
  35. # e.g. /opt/MailScanner. The install prefix is used to find some fallback
  36. # directories if neither of the following two settings work.
  37. # If this is set then it adds to the list of places that are searched;
  38. # otherwise it has no effect.
  39. #SpamAssassin Install Prefix = /opt/MailScanner
  40. SpamAssassin Install Prefix =
  41.  
  42. # The site rules are searched for here.
  43. # Normal location on most systems is /etc/mail/spamassassin.
  44. SpamAssassin Site Rules Dir = /etc/mail/spamassassin
  45.  
  46. # The site-local rules are searched for here, and in prefix/etc/spamassassin,
  47. # prefix/etc/mail/spamassassin, /usr/local/etc/spamassassin, /etc/spamassassin,
  48. # /etc/mail/spamassassin, and maybe others.
  49. # Be careful of setting this: it may mean the spamassassin.conf file
  50. # is missed out, you will need to insert a soft-link with "ln -s" to link
  51. # the file into mailscanner.cf in the new directory.
  52. # If this is set then it replaces the list of places that are searched;
  53. # otherwise it has no effect.
  54. #SpamAssassin Local Rules Dir = /etc/MailScanner/mail/spamassassin
  55. SpamAssassin Local Rules Dir =
  56.  
  57. # The rules created by the "sa-update" tool are searched for here.
  58. # This directory contains the 3.001001/updates_spamassassin_org
  59. # directory structure beneath it.
  60. # Only un-comment this setting once you have proved that the sa-update
  61. # cron job has run successfully and has created a directory structure under
  62. # the spamassassin directory within this one and has put some *.cf files in
  63. # there. Otherwise it will ignore all your current rules!
  64. # The default location may be /var/opt on Solaris systems.
  65. SpamAssassin Local State Dir = /var/lib/spamassassin
  66.  
  67. # The default rules are searched for here, and in prefix/share/spamassassin,
  68. # /usr/local/share/spamassassin, /usr/share/spamassassin, and maybe others.
  69. # If this is set then it adds to the list of places that are searched;
  70. # otherwise it has no effect.
  71. #SpamAssassin Default Rules Dir = /opt/MailScanner/share/spamassassin
  72. SpamAssassin Default Rules Dir =
  73.  
  74. #
  75. # Database SQL Configuration Settings
  76. #
  77. # This section allows you to over-ride any setting in this file or its
  78. # related "include"d files with a setting or a ruleset in an SQL database.
  79.  
  80. # If you wish to read settings from a database or any other DBI-compatible
  81. # data source, then this value should be set to the DBI data source name.
  82. #
  83. # This value is required for all of the database functions to work; if it
  84. # is not supplied or is invalid, then all of the database functions will be
  85. # disabled. See the Perl DBI documentation for all available options.
  86. #
  87. # Example: DB DSN = DBI:DriverName:database=DataBaseName;host=Hostname;port=Port
  88. DB DSN =
  89.  
  90. # Optional username to use to connect to the data source defined by DB DSN.
  91. DB Username =
  92.  
  93. # Optional password to use to connect to the data source defined by DB DSN.
  94. DB Password =
  95.  
  96. # This should be a valid SQL statement that returns a single row of data from
  97. # your data source in integer format. This value is periodically checked every
  98. # 15 minutes and if it is numerically greater than the previously retrieved
  99. # value then the MailScanner child will exit and reload its configuration.
  100. #
  101. # This setting is required for all database functions to work; if it is not
  102. # defined or the SQL is invalid then all database functions will be disabled.
  103. #
  104. # Example: SELECT value FROM config WHERE option='confserialnumber'
  105. SQL Serial Number =
  106.  
  107. # This should be a valid SQL statement that takes two placeholder arguments
  108. # and returns a single row and column of data. The first placeholder will
  109. # contain the 'external' variable representation of the MailScanner setting
  110. # being looked-up and the second placeholder will contain the hostname of the
  111. # host that is requesting the data.
  112. #
  113. # This setting is required for all database functions to work; if it is not
  114. # defined or the SQL is invalid then all database functions will be disabled.
  115. #
  116. # Exmaple: SQL Quick Peek = SELECT value FROM config WHERE external = ? AND host = ?
  117. SQL Quick Peek =
  118.  
  119. # This should be a valid SQL statement that has a single placeholder argument
  120. # and must return two columns and one row per configuration setting.
  121. # The placeholder will contain the hostname of the host requsting the data.
  122. # The first column must return the 'internal' representation of the setting
  123. # and the second column must return the value that should be assigned.
  124. # If the value contains 'foobar.customi[zs]e' then the value is presumed to
  125. # be a database ruleset and will cause the defined 'SQL Ruleset' statement to
  126. # be run and will use 'foobar' as the ruleset name to retrieve the ruleset.
  127. #
  128. # This setting is required for all database functions to work; if it is not
  129. # defined or the SQL is invalid then all database functions will be disabled.
  130. #
  131. # Exmaple: SQL Config = SELECT option, value FROM config WHERE host=?
  132. SQL Config =
  133.  
  134. # This should be a valid SQL statement that has a single placeholder argument
  135. # and must return two columns and one or more rows. The first column must be
  136. # a numeric starting at 1 and in ascending order and the second column should
  137. # be the rule string. The placeholder will contain the ruleset name.
  138. #
  139. # Example: SQL Ruleset = SELECT num, rule FROM ruleset WHERE rulesetname=? ORDER BY num ASC
  140. SQL Ruleset =
  141.  
  142. # This should be a valid SQL statement that returns a single column and one
  143. # or more rows. Each row that is returned is pushed into an array and joined
  144. # into a string separated by newlines and then passed into the SpamAssassin API
  145. # using the {post_config_text} attribute. See the SpamAssassin API for details.
  146. # The returned rows should be valid SpamAssassin configuration settings that
  147. # will be processed by SpamAssassin after it has read all of normal configuration.
  148. # Any errors will therefore be reported by SpamAssassin and will show up by
  149. # running 'MailScanner --lint' or 'MailScanner --debug-sa'.
  150. #
  151. # Example: SQL SpamAssassin Config = SELECT text FROM sa_config
  152. SQL SpamAssassin Config =
  153.  
  154. # If enabled; this will log lots of debugging output to STDERR and to syslog
  155. # to help pinpoint any errors in the returned database values and will show
  156. # exactly what is being processed as the data is being loaded.
  157. SQL Debug = no
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement