patch-etc_MailScanner_conf 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. $OpenBSD: patch-etc_MailScanner_conf,v 1.15 2015/04/09 19:55:09 sthen Exp $
  2. --- etc/MailScanner.conf.orig Wed Feb 25 06:38:27 2015
  3. +++ etc/MailScanner.conf Fri Mar 13 03:55:37 2015
  4. @@ -43,7 +43,7 @@
  5. # normal shell wildcard characters such as "*".
  6. # For each setting, the last value read will be used by MailScanner.
  7. # At the end of this file, there is an "include" that will pull in
  8. -# all the files in /opt/MailScanner/etc/conf.d so you can just add
  9. +# all the files in %SYSCONFDIR%/MailScanner/conf.d so you can just add
  10. # your own local changes in there, and not need to modify this file.
  11. #
  12. @@ -88,17 +88,17 @@
  13. %web-site% = www.your-organisation.com
  14. # Configuration directory containing this file
  15. -%etc-dir% = /opt/MailScanner/etc
  16. +%etc-dir% = %SYSCONFDIR%/MailScanner
  17. # Set the directory containing all the reports in the required language
  18. -%report-dir% = /opt/MailScanner/etc/reports/en
  19. +%report-dir% = %PREFIX%/share/MailScanner/reports/en
  20. # Rulesets directory containing your ".rules" files
  21. -%rules-dir% = /opt/MailScanner/etc/rules
  22. +%rules-dir% = %SYSCONFDIR%/MailScanner/rules
  23. # Configuration directory containing files related to MCP
  24. # (Message Content Protection)
  25. -%mcp-dir% = /opt/MailScanner/etc/mcp
  26. +%mcp-dir% = %SYSCONFDIR%/MailScanner/mcp
  27. # One other that is set automatically for you is %version% which is,
  28. # unsurprisingly, the string of the MailScanner version. It does not
  29. @@ -151,7 +151,7 @@ Queue Scan Interval = 6
  30. # Example: /var/spool/mqueue.in/*
  31. # 3. The name of a file containing a list of directory names,
  32. # which can in turn contain wildcards.
  33. -# Example: /opt/MailScanner/etc/mqueue.in.list.conf
  34. +# Example: %SYSCONFDIR%/MailScanner/mqueue.in.list.conf
  35. #
  36. # If you are using sendmail and have your queues split into qf, df, xf
  37. # directories, then just specify the main directory, do not give me the
  38. @@ -183,7 +183,7 @@ Incoming Work Dir = /var/spool/MailScanner/incoming
  39. Quarantine Dir = /var/spool/MailScanner/quarantine
  40. # Set where to store the process id number so you can stop MailScanner
  41. -PID file = /opt/MailScanner/var/MailScanner.pid
  42. +PID file = /var/run/MailScanner.pid
  43. # To avoid resource leaks, re-start periodically. Forces a re-read of all
  44. # the configuration files too, so new updates to the bad phishing sites list
  45. @@ -198,7 +198,7 @@ MTA = sendmail
  46. # Set how to invoke MTA when sending messages MailScanner has created
  47. # (e.g. to sender/recipient saying "found a virus in your message")
  48. # This can also be the filename of a ruleset.
  49. -Sendmail = /usr/lib/sendmail
  50. +Sendmail = /usr/sbin/sendmail
  51. # Sendmail2 is provided for Exim users.
  52. # It is the command used to attempt delivery of outgoing cleaned/disinfected
  53. @@ -206,9 +206,11 @@ Sendmail = /usr/lib/sendmail
  54. # This is not usually required for sendmail.
  55. # This can also be the filename of a ruleset.
  56. #For Exim users: Sendmail2 = /usr/sbin/exim -C /etc/exim/exim_send.conf
  57. -#For sendmail users: Sendmail2 = /usr/lib/sendmail
  58. +#For sendmail users: Sendmail2 = /usr/bin/true # /usr/sbin/sendmail
  59. +# `true' reduces mail server load, let normal runners catch messages
  60. +# instead of fork of sendmail per message
  61. #Sendmail2 = /usr/sbin/sendmail -C /etc/exim/exim_send.conf
  62. -Sendmail2 = /usr/lib/sendmail
  63. +Sendmail2 = /usr/bin/true
  64. #
  65. # Incoming Work Dir Settings
  66. @@ -412,7 +414,7 @@ Deliver Unparsable TNEF = no
  67. # may be. It helps protect against Denial Of Service attacks in TNEF files.
  68. # This can also be the filename of a ruleset.
  69. #TNEF Expander = internal
  70. -TNEF Expander = /usr/bin/tnef --maxsize=100000000
  71. +TNEF Expander = %PREFIX%/bin/tnef --maxsize=100000000
  72. # The maximum length of time the TNEF Expander is allowed to run for 1 message.
  73. # (in seconds)
  74. @@ -432,7 +434,7 @@ File Timeout = 20
  75. # This is used for expanding .gz files.
  76. # To disable gzipped file checking, set this value to blank
  77. # and the timeout to 0.
  78. -Gunzip Command = /bin/gunzip
  79. +Gunzip Command = /usr/bin/gunzip
  80. # The maximum length of time the "gunzip" command is allowed to run to expand
  81. # 1 attachment file (in seconds).
  82. @@ -448,7 +450,7 @@ Gunzip Timeout = 50
  83. # scanner, with one exception:
  84. # If using the clavavmodule virus scanner, this adds external RAR checking
  85. # to that scanner which is needed for archives which are RAR version 3.
  86. -Unrar Command = /usr/bin/unrar
  87. +Unrar Command = %PREFIX%/bin/unrar
  88. # The maximum length of time the "unrar" command is allowed to run for 1
  89. # RAR archive (in seconds)
  90. @@ -553,7 +555,7 @@ Add Text Of Doc = no
  91. # Using a ruleset here, you could have different output styles for
  92. # different people.
  93. # This can also be the filename of a ruleset.
  94. -Antiword = /usr/bin/antiword -f
  95. +Antiword = %PREFIX%/bin/antiword -f
  96. # The maximum length of time the "antiword" command is allowed to run for 1
  97. # Word document (in seconds)
  98. @@ -667,7 +669,7 @@ Virus Scanning = yes
  99. # want none, then specify "none".
  100. #
  101. # This *cannot* be the filename of a ruleset.
  102. -Virus Scanners = auto
  103. +Virus Scanners = none
  104. # The maximum length of time the commercial virus scanner is allowed to run
  105. # for 1 batch of messages (in seconds).
  106. @@ -814,19 +816,19 @@ Allowed Sophos Error Messages =
  107. # The directory (or a link to it) containing all the Sophos *.ide files.
  108. # This is only used by the "sophossavi" virus scanner, and is irrelevant
  109. # for all other scanners.
  110. -Sophos IDE Dir = /opt/sophos-av/lib/sav
  111. +Sophos IDE Dir = %PREFIX%/sophos-av/lib/sav
  112. # The directory (or a link to it) containing all the Sophos *.so libraries.
  113. # This is only used by the "sophossavi" virus scanner, and is irrelevant
  114. # for all other scanners.
  115. -Sophos Lib Dir = /opt/sophos-av/lib
  116. +Sophos Lib Dir = %PREFIX%/sophos-av/lib
  117. # SophosSAVI only: monitor each of these files for changes in size to
  118. # detect when a Sophos update has happened. The date of the Sophos Lib Dir
  119. # is also monitored.
  120. # This is only used by the "sophossavi" virus scanner, not the "sophos"
  121. # scanner setting.
  122. -Monitors For Sophos Updates = /opt/sophos-av/lib/sav/*.ide
  123. +Monitors For Sophos Updates = %PREFIX%/sophos-av/lib/sav/*.ide
  124. #
  125. # Options specific to ClamAV Anti-Virus
  126. @@ -837,7 +839,7 @@ Monitors For Sophos Updates = /opt/sophos-av/lib/sav/*
  127. # detect when a ClamAV update has happened.
  128. # This is only used by the "clamavmodule" virus scanner, not the "clamav"
  129. # scanner setting.
  130. -Monitors for ClamAV Updates = /usr/local/share/clamav/*.cld /usr/local/share/clamav/*.cvd /var/lib/clamav/*.inc/* /var/lib/clamav/*.?db /var/lib/clamav/*.cvd
  131. +Monitors for ClamAV Updates = %PREFIX%/share/clamav/*.cld %PREFIX%/share/clamav/*.cvd /var/db/clamav/*.inc/* /var/db/clamav/*.?db /var/db/clamav/*.cvd
  132. # ClamAVModule only: set limits when scanning for viruses.
  133. #
  134. @@ -1551,7 +1553,7 @@ Sign Messages Already Processed = no
  135. # magic token "_SIGNATURE_" in your email message, the signature will be
  136. # inserted just there, rather than at the end of the message.
  137. # This can also be the filename of a ruleset.
  138. -Sign Clean Messages = yes
  139. +Sign Clean Messages = no
  140. # If you are using HTML signatures, you can embed an image in the signature.
  141. # For the filename(s) of the image, see the settings "Signature Image
  142. @@ -1679,7 +1681,7 @@ Deliver Cleaned Messages = yes
  143. # Do you want to notify the people who sent you messages containing
  144. # viruses or badly-named filenames?
  145. # This can also be the filename of a ruleset.
  146. -Notify Senders = yes
  147. +Notify Senders = no
  148. # *If* "Notify Senders" is set to yes, do you want to notify people
  149. # who sent you messages containing viruses?
  150. @@ -1741,7 +1743,7 @@ Scanned Subject Text = {Scanned}
  151. # end = Add text to the end of the subject line.
  152. # This makes filtering in Outlook very easy.
  153. # This can also be the filename of a ruleset.
  154. -Virus Modify Subject = start
  155. +Virus Modify Subject = no
  156. # This is the text to add to the start of the subject if the
  157. # "Virus Modify Subject" option is set.
  158. @@ -1757,7 +1759,7 @@ Virus Subject Text = {Virus?}
  159. # end = Add text to the end of the subject line.
  160. # This makes filtering in Outlook very easy.
  161. # This can also be the filename of a ruleset.
  162. -Filename Modify Subject = start
  163. +Filename Modify Subject = no
  164. # This is the text to add to the start of the subject if the
  165. # "Filename Modify Subject" option is set.
  166. @@ -1775,7 +1777,7 @@ Filename Subject Text = {Filename?}
  167. # end = Add text to the end of the subject line.
  168. # This makes filtering in Outlook very easy.
  169. # This can also be the filename of a ruleset.
  170. -Content Modify Subject = start
  171. +Content Modify Subject = no
  172. # This is the text to add to the start of the subject if the
  173. # "Content Modify Subject" option is set.
  174. @@ -1794,7 +1796,7 @@ Content Subject Text = {Dangerous Content?}
  175. # end = Add text to the end of the subject line.
  176. # This makes filtering in Outlook very easy.
  177. # This can also be the filename of a ruleset.
  178. -Size Modify Subject = start
  179. +Size Modify Subject = no
  180. # This is the text to add to the start of the subject if the
  181. # "Size Modify Subject" option is set.
  182. @@ -1813,7 +1815,7 @@ Size Subject Text = {Size}
  183. # yes = Add text to the start of the subject line, or
  184. # end = Add text to the end of the subject line.
  185. # This can also be the filename of a ruleset.
  186. -Disarmed Modify Subject = start
  187. +Disarmed Modify Subject = no
  188. # This is the text to add to the start of the subject if the
  189. # "Disarmed Modify Subject" option is set.
  190. @@ -1843,7 +1845,7 @@ Phishing Subject Text = {Fraud?}
  191. # end = Add text to the end of the subject line.
  192. # This makes filtering in Outlook very easy.
  193. # This can also be the filename of a ruleset.
  194. -Spam Modify Subject = start
  195. +Spam Modify Subject = no
  196. # This is the text to add to the start of the subject if the
  197. # "Spam Modify Subject" option is set.
  198. @@ -1863,7 +1865,7 @@ Spam Subject Text = {Spam?}
  199. # yes = Add text to the start of the subject line, or
  200. # end = Add text to the end of the subject line.
  201. # This can also be the filename of a ruleset.
  202. -High Scoring Spam Modify Subject = start
  203. +High Scoring Spam Modify Subject = no
  204. # This is just like the "Spam Subject Text" option above, except that
  205. # it applies when the score from SpamAssassin is higher than the
  206. @@ -1956,7 +1958,7 @@ Missing Mail Archive Is = directory
  207. # Notify the local system administrators ("Notices To") when any infections
  208. # are found?
  209. # This can also be the filename of a ruleset.
  210. -Send Notices = yes
  211. +Send Notices = no
  212. # Include the full headers of each message in the notices sent to the local
  213. # system administrators?
  214. @@ -2011,7 +2013,7 @@ Virus Scanner Definitions = %etc-dir%/virus.scanners.c
  215. # If you want to just disable the "Spam List" feature then set
  216. # "Spam List =" (i.e. an empty list) in the setting below.
  217. # This can also be the filename of a ruleset.
  218. -Spam Checks = yes
  219. +Spam Checks = no
  220. # This is the list of spam blacklists (RBLs) which you are using.
  221. # See the "Spam List Definitions" file for more information about what
  222. @@ -2193,7 +2195,7 @@ Watermark Header = X-%org-name%-MailScanner-Watermark:
  223. # Do you want to find spam using the "SpamAssassin" package?
  224. # This can also be the filename of a ruleset.
  225. -Use SpamAssassin = yes
  226. +Use SpamAssassin = no
  227. # SpamAssassin is not very fast when scanning huge messages, so messages
  228. # bigger than this value will be truncated to this length for SpamAssassin
  229. @@ -2290,7 +2292,7 @@ Include Binary Attachments In SpamAssassin = no
  230. # whatever SpamAssassin threshold they want. For example, they just look
  231. # for "sssss" for every message whose score is > 5, for example.
  232. # This can also be the filename of a ruleset.
  233. -Spam Score = yes
  234. +Spam Score = no
  235. # Many naive spammers send out the same message to lots of people.
  236. # These messages are very likely to have roughly the same SpamAssassin score.
  237. @@ -2747,14 +2749,14 @@ SpamAssassin Install Prefix =
  238. SpamAssassin Site Rules Dir = /etc/mail/spamassassin
  239. # The site-local rules are searched for here, and in prefix/etc/spamassassin,
  240. -# prefix/etc/mail/spamassassin, /usr/local/etc/spamassassin, /etc/spamassassin,
  241. +# prefix/etc/mail/spamassassin, %PREFIX%/etc/spamassassin, /etc/spamassassin,
  242. # /etc/mail/spamassassin, and maybe others.
  243. # Be careful of setting this: it may mean the spam.assassin.prefs.conf file
  244. # is missed out, you will need to insert a soft-link with "ln -s" to link
  245. # the file into mailscanner.cf in the new directory.
  246. # If this is set then it replaces the list of places that are searched;
  247. # otherwise it has no effect.
  248. -#SpamAssassin Local Rules Dir = /opt/MailScanner/etc/mail/spamassassin
  249. +#SpamAssassin Local Rules Dir = %PREFIX%/mail/spamassassin
  250. SpamAssassin Local Rules Dir =
  251. # The rules created by the "sa-update" tool are searched for here.
  252. @@ -2768,10 +2770,10 @@ SpamAssassin Local Rules Dir =
  253. SpamAssassin Local State Dir = # /var/lib/spamassassin
  254. # The default rules are searched for here, and in prefix/share/spamassassin,
  255. -# /usr/local/share/spamassassin, /usr/share/spamassassin, and maybe others.
  256. +# %PREFIX%/share/spamassassin, /usr/share/spamassassin, and maybe others.
  257. # If this is set then it adds to the list of places that are searched;
  258. # otherwise it has no effect.
  259. -#SpamAssassin Default Rules Dir = /opt/MailScanner/share/spamassassin
  260. +#SpamAssassin Default Rules Dir = %PREFIX%/share/spamassassin
  261. SpamAssassin Default Rules Dir =
  262. #
  263. @@ -2889,9 +2891,9 @@ MCP Actions = deliver
  264. High Scoring MCP Actions = deliver
  265. Bounce MCP As Attachment = no
  266. -MCP Modify Subject = start
  267. +MCP Modify Subject = no
  268. MCP Subject Text = {MCP?}
  269. -High Scoring MCP Modify Subject = start
  270. +High Scoring MCP Modify Subject = no
  271. High Scoring MCP Subject Text = {MCP?}
  272. Is Definitely MCP = no
  273. @@ -3060,7 +3062,7 @@ Lockfile Dir = /var/spool/MailScanner/incoming/Locks
  274. # directory should be over-written by the installation or upgrade process.
  275. # All files starting with "." or ending with ".rpmnew" will be ignored,
  276. # all other files will be compiled and may be used with Custom Functions.
  277. -Custom Functions Dir = /opt/MailScanner/lib/MailScanner/CustomFunctions
  278. +Custom Functions Dir = %PREFIX%/lib/MailScanner/MailScanner/CustomFunctions
  279. # How to lock spool files.
  280. # Don't set this unless you *know* you need to.
  281. @@ -3119,6 +3121,6 @@ Minimum Code Status = supported
  282. # They will be read and processed in alphabetical order.
  283. #
  284. #
  285. -include /opt/MailScanner/etc/conf.d/*
  286. +include %SYSCONFDIR%/MailScanner/conf.d/*
  287. -# End Of File
  288. \ No newline at end of file
  289. +# End Of File