PageRenderTime 53ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 1ms

/branches/exp-kid-templates/Mailman/Defaults.py.in

#
Autoconf | 1367 lines | 399 code | 198 blank | 770 comment | 7 complexity | 6689f2ddee879caf5ba0f5c7c5c02fab MD5 | raw file
Possible License(s): GPL-2.0

Large files files are truncated, but you can click here to view the full file

  1. # -*- python -*-
  2. # Copyright (C) 1998-2006 by the Free Software Foundation, Inc.
  3. #
  4. # This program is free software; you can redistribute it and/or
  5. # modify it under the terms of the GNU General Public License
  6. # as published by the Free Software Foundation; either version 2
  7. # of the License, or (at your option) any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
  17. # USA.
  18. """Distributed default settings for significant Mailman config variables."""
  19. # NEVER make site configuration changes to this file. ALWAYS make them in
  20. # mm_cfg.py instead, in the designated area. See the comments in that file
  21. # for details.
  22. import os
  23. def seconds(s): return s
  24. def minutes(m): return m * 60
  25. def hours(h): return h * 60 * 60
  26. def days(d): return d * 60 * 60 * 24
  27. # Some convenient constants
  28. Yes = yes = On = on = True
  29. No = no = Off = off = False
  30. #####
  31. # General system-wide defaults
  32. #####
  33. # Should image logos be used? Set this to 0 to disable image logos from "our
  34. # sponsors" and just use textual links instead (this will also disable the
  35. # shortcut "favicon"). Otherwise, this should contain the URL base path to
  36. # the logo images (and must contain the trailing slash).. If you want to
  37. # disable Mailman's logo footer altogther, hack
  38. # Mailman/htmlformat.py:MailmanLogo(), which also contains the hardcoded links
  39. # and image names.
  40. IMAGE_LOGOS = '/icons/'
  41. # The name of the Mailman favicon
  42. SHORTCUT_ICON = 'mm-icon.png'
  43. # Don't change MAILMAN_URL, unless you want to point it at one of the mirrors.
  44. MAILMAN_URL = 'http://www.gnu.org/software/mailman/index.html'
  45. #MAILMAN_URL = 'http://www.list.org/'
  46. #MAILMAN_URL = 'http://mailman.sf.net/'
  47. # Mailman needs to know about (at least) two fully-qualified domain names
  48. # (fqdn); 1) the hostname used in your urls, and 2) the hostname used in email
  49. # addresses for your domain. For example, if people visit your Mailman system
  50. # with "http://www.dom.ain/mailman" then your url fqdn is "www.dom.ain", and
  51. # if people send mail to your system via "yourlist@dom.ain" then your email
  52. # fqdn is "dom.ain". DEFAULT_URL_HOST controls the former, and
  53. # DEFAULT_EMAIL_HOST controls the latter. Mailman also needs to know how to
  54. # map from one to the other (this is especially important if you're running
  55. # with virtual domains). You use "add_virtualhost(urlfqdn, emailfqdn)" to add
  56. # new mappings.
  57. #
  58. # If you don't need to change DEFAULT_EMAIL_HOST and DEFAULT_URL_HOST in your
  59. # mm_cfg.py, then you're done; the default mapping is added automatically. If
  60. # however you change either variable in your mm_cfg.py, then be sure to also
  61. # include the following:
  62. #
  63. # add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
  64. #
  65. # because otherwise the default mappings won't be correct.
  66. DEFAULT_EMAIL_HOST = '@MAILHOST@'
  67. DEFAULT_URL_HOST = '@URLHOST@'
  68. DEFAULT_URL_PATTERN = 'http://%s/mailman/'
  69. # DEFAULT_HOST_NAME has been replaced with DEFAULT_EMAIL_HOST, however some
  70. # sites may have the former in their mm_cfg.py files. If so, we'll believe
  71. # that, otherwise we'll believe DEFAULT_EMAIL_HOST. Same for DEFAULT_URL.
  72. DEFAULT_HOST_NAME = None
  73. DEFAULT_URL = None
  74. HOME_PAGE = 'index.html'
  75. MAILMAN_SITE_LIST = 'mailman'
  76. # Normally when a site administrator authenticates to a web page with the site
  77. # password, they get a cookie which authorizes them as the list admin. It
  78. # makes me nervous to hand out site auth cookies because if this cookie is
  79. # cracked or intercepted, the intruder will have access to every list on the
  80. # site. OTOH, it's dang handy to not have to re-authenticate to every list on
  81. # the site. Set this value to Yes to allow site admin cookies.
  82. ALLOW_SITE_ADMIN_COOKIES = No
  83. # Command that is used to convert text/html parts into plain text. This
  84. # should output results to standard output. %(filename)s will contain the
  85. # name of the temporary file that the program should operate on.
  86. HTML_TO_PLAIN_TEXT_COMMAND = '/usr/bin/lynx -dump %(filename)s'
  87. #####
  88. # Virtual domains
  89. #####
  90. # Set up your virtual host mappings here. This is primarily used for the
  91. # thru-the-web list creation, so its effects are currently fairly limited.
  92. # Use add_virtualhost() call to add new mappings. The keys are strings as
  93. # determined by Utils.get_domain(), the values are as appropriate for
  94. # DEFAULT_HOST_NAME.
  95. VIRTUAL_HOSTS = {}
  96. # When set to Yes, the listinfo and admin overviews of lists on the machine
  97. # will be confined to only those lists whose web_page_url configuration option
  98. # host is included within the URL by which the page is visited - only those
  99. # "on the virtual host". When set to No, all advertised (i.e. public) lists
  100. # are included in the overview.
  101. VIRTUAL_HOST_OVERVIEW = On
  102. # Helper function; use this in your mm_cfg.py files. If optional emailhost is
  103. # omitted it defaults to urlhost with the first name stripped off, e.g.
  104. #
  105. # add_virtualhost('www.dom.ain')
  106. # VIRTUAL_HOST['www.dom.ain']
  107. # ==> 'dom.ain'
  108. #
  109. def add_virtualhost(urlhost, emailhost=None):
  110. DOT = '.'
  111. if emailhost is None:
  112. emailhost = DOT.join(urlhost.split(DOT)[1:])
  113. VIRTUAL_HOSTS[urlhost.lower()] = emailhost.lower()
  114. # And set the default
  115. add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
  116. # Note that you will want to run bin/fix_url.py to change the domain of an
  117. # existing list. bin/fix_url.py must be run within the bin/withlist script,
  118. # like so: bin/withlist -l -r bin/fix_url.py <listname>
  119. #####
  120. # Spam avoidance defaults
  121. #####
  122. # This variable contains a list of 2-tuple of the format (header, regex) which
  123. # the Mailman/Handlers/SpamDetect.py module uses to match against the current
  124. # message. If the regex matches the given header in the current message, then
  125. # it is flagged as spam. header is case-insensitive and should not include
  126. # the trailing colon. regex is always matched with re.IGNORECASE.
  127. #
  128. # Note that the more searching done, the slower the whole process gets. Spam
  129. # detection is run against all messages coming to either the list, or the
  130. # -owners address, unless the message is explicitly approved.
  131. KNOWN_SPAMMERS = []
  132. #####
  133. # Web UI defaults
  134. #####
  135. # Almost all the colors used in Mailman's web interface are parameterized via
  136. # the following variables. This lets you easily change the color schemes for
  137. # your preferences without having to do major surgery on the source code.
  138. # Note that in general, the template colors are not included here since it is
  139. # easy enough to override the default template colors via site-wide,
  140. # vdomain-wide, or list-wide specializations.
  141. WEB_BG_COLOR = 'white' # Page background
  142. WEB_HEADER_COLOR = '#99ccff' # Major section headers
  143. WEB_SUBHEADER_COLOR = '#fff0d0' # Minor section headers
  144. WEB_ADMINITEM_COLOR = '#dddddd' # Option field background
  145. WEB_ADMINPW_COLOR = '#99cccc' # Password box color
  146. WEB_ERROR_COLOR = 'red' # Error message foreground
  147. WEB_LINK_COLOR = '' # If true, forces LINK=
  148. WEB_ALINK_COLOR = '' # If true, forces ALINK=
  149. WEB_VLINK_COLOR = '' # If true, forces VLINK=
  150. WEB_HIGHLIGHT_COLOR = '#dddddd' # If true, alternating rows
  151. # in listinfo & admin display
  152. #####
  153. # Archive defaults
  154. #####
  155. # The url template for the public archives. This will be used in several
  156. # places, including the List-Archive: header, links to the archive on the
  157. # list's listinfo page, and on the list's admin page.
  158. #
  159. # This should be a string with "%(listname)s" somewhere in it. Mailman will
  160. # interpolate the name of the list into this. You can also include a
  161. # "%(hostname)s" in the string, into which Mailman will interpolate
  162. # the host name (usually DEFAULT_URL_HOST).
  163. PUBLIC_ARCHIVE_URL = 'http://%(hostname)s/pipermail/%(listname)s'
  164. # Are archives on or off by default?
  165. DEFAULT_ARCHIVE = On
  166. # Are archives public or private by default?
  167. # 0=public, 1=private
  168. DEFAULT_ARCHIVE_PRIVATE = 0
  169. # ARCHIVE_TO_MBOX
  170. #-1 - do not do any archiving
  171. # 0 - do not archive to mbox, use builtin mailman html archiving only
  172. # 1 - archive to mbox to use an external archiving mechanism only
  173. # 2 - archive to both mbox and builtin mailman html archiving -
  174. # use this to make both external archiving mechanism work and
  175. # mailman's builtin html archiving. the flat mail file can be
  176. # useful for searching, external archivers, etc.
  177. ARCHIVE_TO_MBOX = 2
  178. # 0 - yearly
  179. # 1 - monthly
  180. # 2 - quarterly
  181. # 3 - weekly
  182. # 4 - daily
  183. DEFAULT_ARCHIVE_VOLUME_FREQUENCY = 1
  184. DEFAULT_DIGEST_VOLUME_FREQUENCY = 1
  185. # These variables control the use of an external archiver. Normally if
  186. # archiving is turned on (see ARCHIVE_TO_MBOX above and the list's archive*
  187. # attributes) the internal Pipermail archiver is used. This is the default if
  188. # both of these variables are set to No. When either is set, the value should
  189. # be a shell command string which will get passed to os.popen(). This string
  190. # can contain the following substitution strings:
  191. #
  192. # %(listname)s -- gets the internal name of the list
  193. # %(hostname)s -- gets the email hostname for the list
  194. #
  195. # being archived will be substituted for this. Please note that os.popen() is
  196. # used.
  197. #
  198. # Note that if you set one of these variables, you should set both of them
  199. # (they can be the same string). This will mean your external archiver will
  200. # be used regardless of whether public or private archives are selected.
  201. PUBLIC_EXTERNAL_ARCHIVER = No
  202. PRIVATE_EXTERNAL_ARCHIVER = No
  203. # A filter module that converts from multipart messages to "flat" messages
  204. # (i.e. containing a single payload). This is required for Pipermail, and you
  205. # may want to set it to 0 for external archivers. You can also replace it
  206. # with your own module as long as it contains a process() function that takes
  207. # a MailList object and a Message object. It should raise
  208. # Errors.DiscardMessage if it wants to throw the message away. Otherwise it
  209. # should modify the Message object as necessary.
  210. ARCHIVE_SCRUBBER = 'Mailman.Handlers.Scrubber'
  211. # Control parameter whether Mailman.Handlers.Scrubber should use message
  212. # attachment's filename as is indicated by the filename parameter or use
  213. # 'attachement-xxx' instead. The default is set True because the applications
  214. # on PC and Mac begin to use longer non-ascii filenames. Historically, it
  215. # was set False in 2.1.6 for backward compatiblity but it was reset to True
  216. # for safer operation in mailman-2.1.7.
  217. SCRUBBER_DONT_USE_ATTACHMENT_FILENAME = True
  218. # Use of attachment filename extension per se is may be dangerous because
  219. # virus fakes it. You can set this True if you filter the attachment by
  220. # filename extension
  221. SCRUBBER_USE_ATTACHMENT_FILENAME_EXTENSION = False
  222. # This variable defines what happens to text/html subparts. They can be
  223. # stripped completely, escaped, or filtered through an external program. The
  224. # legal values are:
  225. # 0 - Strip out text/html parts completely, leaving a notice of the removal in
  226. # the message. If the outer part is text/html, the entire message is
  227. # discarded.
  228. # 1 - Remove any embedded text/html parts, leaving them as HTML-escaped
  229. # attachments which can be separately viewed. Outer text/html parts are
  230. # simply HTML-escaped.
  231. # 2 - Leave it inline, but HTML-escape it
  232. # 3 - Remove text/html as attachments but don't HTML-escape them. Note: this
  233. # is very dangerous because it essentially means anybody can send an HTML
  234. # email to your site containing evil JavaScript or web bugs, or other
  235. # nasty things, and folks viewing your archives will be susceptible. You
  236. # should only consider this option if you do heavy moderation of your list
  237. # postings.
  238. #
  239. # Note: given the current archiving code, it is not possible to leave
  240. # text/html parts inline and un-escaped. I wouldn't think it'd be a good idea
  241. # to do anyway.
  242. #
  243. # The value can also be a string, in which case it is the name of a command to
  244. # filter the HTML page through. The resulting output is left in an attachment
  245. # or as the entirety of the message when the outer part is text/html. The
  246. # format of the string must include a "%(filename)s" which will contain the
  247. # name of the temporary file that the program should operate on. It should
  248. # write the processed message to stdout. Set this to
  249. # HTML_TO_PLAIN_TEXT_COMMAND to specify an HTML to plain text conversion
  250. # program.
  251. ARCHIVE_HTML_SANITIZER = 1
  252. # Set this to Yes to enable gzipping of the downloadable archive .txt file.
  253. # Note that this is /extremely/ inefficient, so an alternative is to just
  254. # collect the messages in the associated .txt file and run a cron job every
  255. # night to generate the txt.gz file. See cron/nightly_gzip for details.
  256. GZIP_ARCHIVE_TXT_FILES = No
  257. # This sets the default `clobber date' policy for the archiver. When a
  258. # message is to be archived either by Pipermail or an external archiver,
  259. # Mailman can modify the Date: header to be the date the message was received
  260. # instead of the Date: in the original message. This is useful if you
  261. # typically receive messages with outrageous dates. Set this to 0 to retain
  262. # the date of the original message, or to 1 to always clobber the date. Set
  263. # it to 2 to perform `smart overrides' on the date; when the date is outside
  264. # ARCHIVER_ALLOWABLE_SANE_DATE_SKEW (either too early or too late), then the
  265. # received date is substituted instead.
  266. ARCHIVER_CLOBBER_DATE_POLICY = 2
  267. ARCHIVER_ALLOWABLE_SANE_DATE_SKEW = days(15)
  268. # Pipermail archives contain the raw email addresses of the posting authors.
  269. # Some view this as a goldmine for spam harvesters. Set this to Yes to
  270. # moderately obscure email addresses, but note that this breaks mailto: URLs
  271. # in the archives too.
  272. ARCHIVER_OBSCURES_EMAILADDRS = Yes
  273. # Pipermail assumes that messages bodies contain US-ASCII text.
  274. # Change this option to define a different character set to be used as
  275. # the default character set for the archive. The term "character set"
  276. # is used in MIME to refer to a method of converting a sequence of
  277. # octets into a sequence of characters. If you change the default
  278. # charset, you might need to add it to VERBATIM_ENCODING below.
  279. DEFAULT_CHARSET = None
  280. # Most character set encodings require special HTML entity characters to be
  281. # quoted, otherwise they won't look right in the Pipermail archives. However
  282. # some character sets must not quote these characters so that they can be
  283. # rendered properly in the browsers. The primary issue is multi-byte
  284. # encodings where the octet 0x26 does not always represent the & character.
  285. # This variable contains a list of such characters sets which are not
  286. # HTML-quoted in the archives.
  287. VERBATIM_ENCODING = ['iso-2022-jp']
  288. # When the archive is public, should Mailman also make the raw Unix mbox file
  289. # publically available?
  290. PUBLIC_MBOX = No
  291. #####
  292. # Delivery defaults
  293. #####
  294. # Final delivery module for outgoing mail. This handler is used for message
  295. # delivery to the list via the smtpd, and to an individual user. This value
  296. # must be a string naming a module in the Mailman.Handlers package.
  297. #
  298. # WARNING: Sendmail has security holes and should be avoided. In fact, you
  299. # must read the Mailman/Handlers/Sendmail.py file before it will work for
  300. # you.
  301. #
  302. #DELIVERY_MODULE = 'Sendmail'
  303. DELIVERY_MODULE = 'SMTPDirect'
  304. # MTA should name a module in Mailman/MTA which provides the MTA specific
  305. # functionality for creating and removing lists. Some MTAs like Exim can be
  306. # configured to automatically recognize new lists, in which case the MTA
  307. # variable should be set to None. Use 'Manual' to print new aliases to
  308. # standard out (or send an email to the site list owner) for manual twiddling
  309. # of an /etc/aliases style file. Use 'Postfix' if you are using the Postfix
  310. # MTA -- but then also see POSTFIX_STYLE_VIRTUAL_DOMAINS.
  311. MTA = 'Manual'
  312. # If you set MTA='Postfix', then you also want to set the following variable,
  313. # depending on whether you're using virtual domains in Postfix, and which
  314. # style of virtual domain you're using. Set this flag to false if you're not
  315. # using virtual domains in Postfix, or if you're using Sendmail-style virtual
  316. # domains (where all addresses are visible in all domains). If you're using
  317. # Postfix-style virtual domains, where aliases should only show up in the
  318. # virtual domain, set this variable to the list of host_name values to write
  319. # separate virtual entries for. I.e. if you run dom1.ain, dom2.ain, and
  320. # dom3.ain, but only dom2 and dom3 are virtual, set this variable to the list
  321. # ['dom2.ain', 'dom3.ain']. Matches are done against the host_name attribute
  322. # of the mailing lists. See README.POSTFIX for details.
  323. POSTFIX_STYLE_VIRTUAL_DOMAINS = []
  324. # These variables describe the program to use for regenerating the aliases.db
  325. # and virtual-mailman.db files, respectively, from the associated plain text
  326. # files. The file being updated will be appended to this string (with a
  327. # separating space), so it must be appropriate for os.system().
  328. POSTFIX_ALIAS_CMD = '/usr/sbin/postalias'
  329. POSTFIX_MAP_CMD = '/usr/sbin/postmap'
  330. # Ceiling on the number of recipients that can be specified in a single SMTP
  331. # transaction. Set to 0 to submit the entire recipient list in one
  332. # transaction. Only used with the SMTPDirect DELIVERY_MODULE.
  333. SMTP_MAX_RCPTS = 500
  334. # Ceiling on the number of SMTP sessions to perform on a single socket
  335. # connection. Some MTAs have limits. Set this to 0 to do as many as we like
  336. # (i.e. your MTA has no limits). Set this to some number great than 0 and
  337. # Mailman will close the SMTP connection and re-open it after this number of
  338. # consecutive sessions.
  339. SMTP_MAX_SESSIONS_PER_CONNECTION = 0
  340. # Maximum number of simultaneous subthreads that will be used for SMTP
  341. # delivery. After the recipients list is chunked according to SMTP_MAX_RCPTS,
  342. # each chunk is handed off to the smptd by a separate such thread. If your
  343. # Python interpreter was not built for threads, this feature is disabled. You
  344. # can explicitly disable it in all cases by setting MAX_DELIVERY_THREADS to
  345. # 0. This feature is only supported with the SMTPDirect DELIVERY_MODULE.
  346. #
  347. # NOTE: This is an experimental feature and limited testing shows that it may
  348. # in fact degrade performance, possibly due to Python's global interpreter
  349. # lock. Use with caution.
  350. MAX_DELIVERY_THREADS = 0
  351. # SMTP host and port, when DELIVERY_MODULE is 'SMTPDirect'. Make sure the
  352. # host exists and is resolvable (i.e., if it's the default of "localhost" be
  353. # sure there's a localhost entry in your /etc/hosts file!)
  354. SMTPHOST = 'localhost'
  355. SMTPPORT = 0 # default from smtplib
  356. # Command for direct command pipe delivery to sendmail compatible program,
  357. # when DELIVERY_MODULE is 'Sendmail'.
  358. SENDMAIL_CMD = '/usr/lib/sendmail'
  359. # Set these variables if you need to authenticate to your NNTP server for
  360. # Usenet posting or reading. If no authentication is necessary, specify None
  361. # for both variables.
  362. NNTP_USERNAME = None
  363. NNTP_PASSWORD = None
  364. # Set this if you have an NNTP server you prefer gatewayed lists to use.
  365. DEFAULT_NNTP_HOST = ''
  366. # These variables controls how headers must be cleansed in order to be
  367. # accepted by your NNTP server. Some servers like INN reject messages
  368. # containing prohibited headers, or duplicate headers. The NNTP server may
  369. # reject the message for other reasons, but there's little that can be
  370. # programmatically done about that. See Mailman/Queue/NewsRunner.py
  371. #
  372. # First, these headers (case ignored) are removed from the original message.
  373. NNTP_REMOVE_HEADERS = ['nntp-posting-host', 'nntp-posting-date', 'x-trace',
  374. 'x-complaints-to', 'xref', 'date-received', 'posted',
  375. 'posting-version', 'relay-version', 'received']
  376. # Next, these headers are left alone, unless there are duplicates in the
  377. # original message. Any second and subsequent headers are rewritten to the
  378. # second named header (case preserved).
  379. NNTP_REWRITE_DUPLICATE_HEADERS = [
  380. ('to', 'X-Original-To'),
  381. ('cc', 'X-Original-Cc'),
  382. ('content-transfer-encoding', 'X-Original-Content-Transfer-Encoding'),
  383. ('mime-version', 'X-MIME-Version'),
  384. ]
  385. # All `normal' messages which are delivered to the entire list membership go
  386. # through this pipeline of handler modules. Lists themselves can override the
  387. # global pipeline by defining a `pipeline' attribute.
  388. GLOBAL_PIPELINE = [
  389. # These are the modules that do tasks common to all delivery paths.
  390. 'SpamDetect',
  391. 'Approve',
  392. 'Replybot',
  393. 'Moderate',
  394. 'Hold',
  395. 'MimeDel',
  396. 'Scrubber',
  397. 'Emergency',
  398. 'Tagger',
  399. 'CalcRecips',
  400. 'AvoidDuplicates',
  401. 'Cleanse',
  402. 'CleanseDKIM',
  403. 'CookHeaders',
  404. # And now we send the message to the digest mbox file, and to the arch and
  405. # news queues. Runners will provide further processing of the message,
  406. # specific to those delivery paths.
  407. 'ToDigest',
  408. 'ToArchive',
  409. 'ToUsenet',
  410. # Now we'll do a few extra things specific to the member delivery
  411. # (outgoing) path, finally leaving the message in the outgoing queue.
  412. 'AfterDelivery',
  413. 'Acknowledge',
  414. 'ToOutgoing',
  415. ]
  416. # This is the pipeline which messages sent to the -owner address go through
  417. OWNER_PIPELINE = [
  418. 'SpamDetect',
  419. 'Replybot',
  420. 'CleanseDKIM',
  421. 'OwnerRecips',
  422. 'ToOutgoing',
  423. ]
  424. # This defines log format strings for the SMTPDirect delivery module (see
  425. # DELIVERY_MODULE above). Valid %()s string substitutions include:
  426. #
  427. # time -- the time in float seconds that it took to complete the smtp
  428. # hand-off of the message from Mailman to your smtpd.
  429. #
  430. # size -- the size of the entire message, in bytes
  431. #
  432. # #recips -- the number of actual recipients for this message.
  433. #
  434. # #refused -- the number of smtp refused recipients (use this only in
  435. # SMTP_LOG_REFUSED).
  436. #
  437. # listname -- the `internal' name of the mailing list for this posting
  438. #
  439. # msg_<header> -- the value of the delivered message's given header. If
  440. # the message had no such header, then "n/a" will be used. Note though
  441. # that if the message had multiple such headers, then it is undefined
  442. # which will be used.
  443. #
  444. # allmsg_<header> - Same as msg_<header> above, but if there are multiple
  445. # such headers in the message, they will all be printed, separated by
  446. # comma-space.
  447. #
  448. # sender -- the "sender" of the messages, which will be the From: or
  449. # envelope-sender as determeined by the USE_ENVELOPE_SENDER variable
  450. # below.
  451. #
  452. # The format of the entries is a 2-tuple with the first element naming the
  453. # logger (as a child of the root 'mailman' logger) to print the message to,
  454. # and the second being a format string appropriate for Python's %-style string
  455. # interpolation. The file name is arbitrary; qfiles/<name> will be created
  456. # automatically if it does not exist.
  457. # The format of the message printed for every delivered message, regardless of
  458. # whether the delivery was successful or not. Set to None to disable the
  459. # printing of this log message.
  460. SMTP_LOG_EVERY_MESSAGE = (
  461. 'smtp',
  462. '%(msg_message-id)s smtp to %(listname)s for %(#recips)d recips, completed in %(time).3f seconds')
  463. # This will only be printed if there were no immediate smtp failures.
  464. # Mutually exclusive with SMTP_LOG_REFUSED.
  465. SMTP_LOG_SUCCESS = (
  466. 'post',
  467. 'post to %(listname)s from %(sender)s, size=%(size)d, message-id=%(msg_message-id)s, success')
  468. # This will only be printed if there were any addresses which encountered an
  469. # immediate smtp failure. Mutually exclusive with SMTP_LOG_SUCCESS.
  470. SMTP_LOG_REFUSED = (
  471. 'post',
  472. 'post to %(listname)s from %(sender)s, size=%(size)d, message-id=%(msg_message-id)s, %(#refused)d failures')
  473. # This will be logged for each specific recipient failure. Additional %()s
  474. # keys are:
  475. #
  476. # recipient -- the failing recipient address
  477. # failcode -- the smtp failure code
  478. # failmsg -- the actual smtp message, if available
  479. SMTP_LOG_EACH_FAILURE = (
  480. 'smtp-failure',
  481. 'delivery to %(recipient)s failed with code %(failcode)d: %(failmsg)s')
  482. # These variables control the format and frequency of VERP-like delivery for
  483. # better bounce detection. VERP is Variable Envelope Return Path, defined
  484. # here:
  485. #
  486. # http://cr.yp.to/proto/verp.txt
  487. #
  488. # This involves encoding the address of the recipient as we (Mailman) know it
  489. # into the envelope sender address (i.e. the SMTP `MAIL FROM:' address).
  490. # Thus, no matter what kind of forwarding the recipient has in place, should
  491. # it eventually bounce, we will receive an unambiguous notice of the bouncing
  492. # address.
  493. #
  494. # However, we're technically only "VERP-like" because we're doing the envelope
  495. # sender encoding in Mailman, not in the MTA. We do require cooperation from
  496. # the MTA, so you must be sure your MTA can be configured for extended address
  497. # semantics.
  498. #
  499. # The first variable describes how to encode VERP envelopes. It must contain
  500. # these three string interpolations:
  501. #
  502. # %(bounces)s -- the list-bounces mailbox will be set here
  503. # %(mailbox)s -- the recipient's mailbox will be set here
  504. # %(host)s -- the recipient's host name will be set here
  505. #
  506. # This example uses the default below.
  507. #
  508. # FQDN list address is: mylist@dom.ain
  509. # Recipient is: aperson@a.nother.dom
  510. #
  511. # The envelope sender will be mylist-bounces+aperson=a.nother.dom@dom.ain
  512. #
  513. # Note that your MTA /must/ be configured to deliver such an addressed message
  514. # to mylist-bounces!
  515. VERP_FORMAT = '%(bounces)s+%(mailbox)s=%(host)s'
  516. # The second describes a regular expression to unambiguously decode such an
  517. # address, which will be placed in the To: header of the bounce message by the
  518. # bouncing MTA. Getting this right is critical -- and tricky. Learn your
  519. # Python regular expressions. It must define exactly three named groups,
  520. # bounces, mailbox and host, with the same definition as above. It will be
  521. # compiled case-insensitively.
  522. VERP_REGEXP = r'^(?P<bounces>[^+]+?)\+(?P<mailbox>[^=]+)=(?P<host>[^@]+)@.*$'
  523. # VERP format and regexp for probe messages
  524. VERP_PROBE_FORMAT = '%(bounces)s+%(token)s'
  525. VERP_PROBE_REGEXP = r'^(?P<bounces>[^+]+?)\+(?P<token>[^@]+)@.*$'
  526. # Set this Yes to activate VERP probe for disabling by bounce
  527. VERP_PROBES = No
  528. # A perfect opportunity for doing VERP is the password reminders, which are
  529. # already addressed individually to each recipient. Set this to Yes to enable
  530. # VERPs on all password reminders.
  531. VERP_PASSWORD_REMINDERS = No
  532. # Another good opportunity is when regular delivery is personalized. Here
  533. # again, we're already incurring the performance hit for addressing each
  534. # individual recipient. Set this to Yes to enable VERPs on all personalized
  535. # regular deliveries (personalized digests aren't supported yet).
  536. VERP_PERSONALIZED_DELIVERIES = No
  537. # And finally, we can VERP normal, non-personalized deliveries. However,
  538. # because it can be a significant performance hit, we allow you to decide how
  539. # often to VERP regular deliveries. This is the interval, in number of
  540. # messages, to do a VERP recipient address. The same variable controls both
  541. # regular and digest deliveries. Set to 0 to disable occasional VERPs, set to
  542. # 1 to VERP every delivery, or to some number > 1 for only occasional VERPs.
  543. VERP_DELIVERY_INTERVAL = 0
  544. # For nicer confirmation emails, use a VERP-like format which encodes the
  545. # confirmation cookie in the reply address. This lets us put a more user
  546. # friendly Subject: on the message, but requires cooperation from the MTA.
  547. # Format is like VERP_FORMAT above, but with the following substitutions:
  548. #
  549. # %(addr)s -- the list-confirm mailbox will be set here
  550. # %(cookie)s -- the confirmation cookie will be set here
  551. VERP_CONFIRM_FORMAT = '%(addr)s+%(cookie)s'
  552. # This is analogous to VERP_REGEXP, but for splitting apart the
  553. # VERP_CONFIRM_FORMAT. MUAs have been observed that mung
  554. # From: local_part@host
  555. # into
  556. # To: "local_part" <local_part@host>
  557. # when replying, so we skip everything up to '<' if any.
  558. VERP_CONFIRM_REGEXP = r'^(.*<)?(?P<addr>[^+]+?)\+(?P<cookie>[^@]+)@.*$'
  559. # Set this to Yes to enable VERP-like (more user friendly) confirmations
  560. VERP_CONFIRMATIONS = No
  561. # This is the maximum number of automatic responses sent to an address because
  562. # of -request messages or posting hold messages. This limit prevents response
  563. # loops between Mailman and misconfigured remote email robots. Mailman
  564. # already inhibits automatic replies to any message labeled with a header
  565. # "Precendence: bulk|list|junk". This is a fallback safety valve so it should
  566. # be set fairly high. Set to 0 for no limit (probably useful only for
  567. # debugging).
  568. MAX_AUTORESPONSES_PER_DAY = 10
  569. #####
  570. # Qrunner defaults
  571. #####
  572. # Which queues should the qrunner master watchdog spawn? This is a list of
  573. # 2-tuples containing the name of the qrunner class (which must live in a
  574. # module of the same name within the Mailman.Queue package), and the number of
  575. # parallel processes to fork for each qrunner. If more than one process is
  576. # used, each will take an equal subdivision of the hash space.
  577. # BAW: Eventually we may support weighted hash spaces.
  578. # BAW: Although not enforced, the # of slices must be a power of 2
  579. QRUNNERS = [
  580. ('ArchRunner', 1), # messages for the archiver
  581. ('BounceRunner', 1), # for processing the qfile/bounces directory
  582. ('CommandRunner', 1), # commands and bounces from the outside world
  583. ('IncomingRunner', 1), # posts from the outside world
  584. ('NewsRunner', 1), # outgoing messages to the nntpd
  585. ('OutgoingRunner', 1), # outgoing messages to the smtpd
  586. ('VirginRunner', 1), # internally crafted (virgin birth) messages
  587. ('RetryRunner', 1), # retry temporarily failed deliveries
  588. ]
  589. # Set this to Yes to use the `Maildir' delivery option. If you change this
  590. # you will need to re-run bin/genaliases for MTAs that don't use list
  591. # auto-detection.
  592. #
  593. # WARNING: If you want to use Maildir delivery, you /must/ start Mailman's
  594. # qrunner as root, or you will get permission problems.
  595. #
  596. # NOTE: Maildir delivery is experimental for Mailman 2.1.
  597. USE_MAILDIR = No
  598. # NOTE: If you set USE_MAILDIR = Yes, add the following line to your mm_cfg.py
  599. # file (uncommented of course!)
  600. # QRUNNERS.append(('MaildirRunner', 1))
  601. # After processing every file in the qrunner's slice, how long should the
  602. # runner sleep for before checking the queue directory again for new files?
  603. # This can be a fraction of a second, or zero to check immediately
  604. # (essentially busy-loop as fast as possible).
  605. QRUNNER_SLEEP_TIME = seconds(1)
  606. # When a message that is unparsable (by the email package) is received, what
  607. # should we do with it? The most common cause of unparsable messages is
  608. # broken MIME encapsulation, and the most common cause of that is viruses like
  609. # Nimda. Set this variable to No to discard such messages, or to Yes to store
  610. # them in qfiles/bad subdirectory.
  611. QRUNNER_SAVE_BAD_MESSAGES = Yes
  612. # This flag causes Mailman to fsync() its data files after writing and
  613. # flushing its contents. While this ensures the data is written to disk,
  614. # avoiding data loss, it may be a performance killer. Note that this flag
  615. # affects both message pickles and MailList config.pck files.
  616. SYNC_AFTER_WRITE = No
  617. #####
  618. # General defaults
  619. #####
  620. # The default language for this server. Whenever we can't figure out the list
  621. # context or user context, we'll fall back to using this language. See
  622. # LC_DESCRIPTIONS below for legal values.
  623. DEFAULT_SERVER_LANGUAGE = 'en'
  624. # When allowing only members to post to a mailing list, how is the sender of
  625. # the message determined? If this variable is set to Yes, then first the
  626. # message's envelope sender is used, with a fallback to the sender if there is
  627. # no envelope sender. Set this variable to No to always use the sender.
  628. #
  629. # The envelope sender is set by the SMTP delivery and is thus less easily
  630. # spoofed than the sender, which is typically just taken from the From: header
  631. # and thus easily spoofed by the end-user. However, sometimes the envelope
  632. # sender isn't set correctly and this will manifest itself by postings being
  633. # held for approval even if they appear to come from a list member. If you
  634. # are having this problem, set this variable to No, but understand that some
  635. # spoofed messages may get through.
  636. USE_ENVELOPE_SENDER = No
  637. # Membership tests for posting purposes are usually performed by looking at a
  638. # set of headers, passing the test if any of their values match a member of
  639. # the list. Headers are checked in the order given in this variable. The
  640. # value None means use the From_ (envelope sender) header. Field names are
  641. # case insensitive.
  642. SENDER_HEADERS = ('from', None, 'reply-to', 'sender')
  643. # How many members to display at a time on the admin cgi to unsubscribe them
  644. # or change their options?
  645. DEFAULT_ADMIN_MEMBER_CHUNKSIZE = 30
  646. # how many bytes of a held message post should be displayed in the admindb web
  647. # page? Use a negative number to indicate the entire message, regardless of
  648. # size (though this will slow down rendering those pages).
  649. ADMINDB_PAGE_TEXT_LIMIT = 4096
  650. # Set this variable to Yes to allow list owners to delete their own mailing
  651. # lists. You may not want to give them this power, in which case, setting
  652. # this variable to No instead requires list removal to be done by the site
  653. # administrator, via the command line script bin/rmlist.
  654. OWNERS_CAN_DELETE_THEIR_OWN_LISTS = No
  655. # Set this variable to Yes to allow list owners to set the "personalized"
  656. # flags on their mailing lists. Turning these on tells Mailman to send
  657. # separate email messages to each user instead of batching them together for
  658. # delivery to the MTA. This gives each member a more personalized message,
  659. # but can have a heavy impact on the performance of your system.
  660. OWNERS_CAN_ENABLE_PERSONALIZATION = No
  661. # Should held messages be saved on disk as Python pickles or as plain text?
  662. # The former is more efficient since we don't need to go through the
  663. # parse/generate roundtrip each time, but the latter might be preferred if you
  664. # want to edit the held message on disk.
  665. HOLD_MESSAGES_AS_PICKLES = Yes
  666. # This variable controls the order in which list-specific category options are
  667. # presented in the admin cgi page.
  668. ADMIN_CATEGORIES = [
  669. # First column
  670. 'general', 'passwords', 'language', 'members', 'nondigest', 'digest',
  671. # Second column
  672. 'privacy', 'bounce', 'archive', 'gateway', 'autoreply',
  673. 'contentfilter', 'topics',
  674. ]
  675. # See "Bitfield for user options" below; make this a sum of those options, to
  676. # make all new members of lists start with those options flagged. We assume
  677. # by default that people don't want to receive two copies of posts. Note
  678. # however that the member moderation flag's initial value is controlled by the
  679. # list's config variable default_member_moderation.
  680. DEFAULT_NEW_MEMBER_OPTIONS = 256
  681. # Specify the type of passwords to use, when Mailman generates the passwords
  682. # itself, as would be the case for membership requests where the user did not
  683. # fill in a password, or during list creation, when auto-generation of admin
  684. # passwords was selected.
  685. #
  686. # Set this value to Yes for classic Mailman user-friendly(er) passwords.
  687. # These generate semi-pronounceable passwords which are easier to remember.
  688. # Set this value to No to use more cryptographically secure, but harder to
  689. # remember, passwords -- if your operating system and Python version support
  690. # the necessary feature (specifically that /dev/urandom be available).
  691. USER_FRIENDLY_PASSWORDS = Yes
  692. # This value specifies the default lengths of member and list admin passwords
  693. MEMBER_PASSWORD_LENGTH = 8
  694. ADMIN_PASSWORD_LENGTH = 10
  695. #####
  696. # List defaults. NOTE: Changing these values does NOT change the
  697. # configuration of an existing list. It only defines the default for new
  698. # lists you subsequently create.
  699. #####
  700. # Should a list, by default be advertised? What is the default maximum number
  701. # of explicit recipients allowed? What is the default maximum message size
  702. # allowed?
  703. DEFAULT_LIST_ADVERTISED = Yes
  704. DEFAULT_MAX_NUM_RECIPIENTS = 10
  705. DEFAULT_MAX_MESSAGE_SIZE = 40 # KB
  706. # These format strings will be expanded w.r.t. the dictionary for the
  707. # mailing list instance.
  708. DEFAULT_SUBJECT_PREFIX = "[%(real_name)s] "
  709. # DEFAULT_SUBJECT_PREFIX = "[%(real_name)s %%d]" # for numbering
  710. DEFAULT_MSG_HEADER = ""
  711. DEFAULT_MSG_FOOTER = """_______________________________________________
  712. %(real_name)s mailing list
  713. %(real_name)s@%(host_name)s
  714. %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
  715. """
  716. # Where to put subject prefix for 'Re:' messages:
  717. #
  718. # old style: Re: [prefix] test
  719. # new style: [prefix 123] Re: test ... (number is optional)
  720. #
  721. # Old style is default for backward compatibility. New style is forced if a
  722. # list owner set %d (numbering) in prefix. If the site owner had applied new
  723. # style patch (from SF patch area) before, he/she may want to set this No in
  724. # mm_cfg.py.
  725. OLD_STYLE_PREFIXING = Yes
  726. # Scrub regular delivery
  727. DEFAULT_SCRUB_NONDIGEST = False
  728. # Mail command processor will ignore mail command lines after designated max.
  729. DEFAULT_MAIL_COMMANDS_MAX_LINES = 25
  730. # Is the list owner notified of admin requests immediately by mail, as well as
  731. # by daily pending-request reminder?
  732. DEFAULT_ADMIN_IMMED_NOTIFY = Yes
  733. # Is the list owner notified of subscribes/unsubscribes?
  734. DEFAULT_ADMIN_NOTIFY_MCHANGES = No
  735. # Discard held messages after this days
  736. DEFAULT_MAX_DAYS_TO_HOLD = 0
  737. # Should list members, by default, have their posts be moderated?
  738. DEFAULT_DEFAULT_MEMBER_MODERATION = No
  739. # Should non-member posts which are auto-discarded also be forwarded to the
  740. # moderators?
  741. DEFAULT_FORWARD_AUTO_DISCARDS = Yes
  742. # What shold happen to non-member posts which are do not match explicit
  743. # non-member actions?
  744. # 0 = Accept
  745. # 1 = Hold
  746. # 2 = Reject
  747. # 3 = Discard
  748. DEFAULT_GENERIC_NONMEMBER_ACTION = 1
  749. # Bounce if 'To:', 'Cc:', or 'Resent-To:' fields don't explicitly name list?
  750. # This is an anti-spam measure
  751. DEFAULT_REQUIRE_EXPLICIT_DESTINATION = Yes
  752. # Alternate names acceptable as explicit destinations for this list.
  753. DEFAULT_ACCEPTABLE_ALIASES ="""
  754. """
  755. # For mailing lists that have only other mailing lists for members:
  756. DEFAULT_UMBRELLA_LIST = No
  757. # For umbrella lists, the suffix for the account part of address for
  758. # administrative notices (subscription confirmations, password reminders):
  759. DEFAULT_UMBRELLA_MEMBER_ADMIN_SUFFIX = "-owner"
  760. # This variable controls whether monthly password reminders are sent.
  761. DEFAULT_SEND_REMINDERS = Yes
  762. # Send welcome messages to new users?
  763. DEFAULT_SEND_WELCOME_MSG = Yes
  764. # Send goodbye messages to unsubscribed members?
  765. DEFAULT_SEND_GOODBYE_MSG = Yes
  766. # Wipe sender information, and make it look like the list-admin
  767. # address sends all messages
  768. DEFAULT_ANONYMOUS_LIST = No
  769. # {header-name: regexp} spam filtering - we include some for example sake.
  770. DEFAULT_BOUNCE_MATCHING_HEADERS = """
  771. # Lines that *start* with a '#' are comments.
  772. to: friend@public.com
  773. message-id: relay.comanche.denmark.eu
  774. from: list@listme.com
  775. from: .*@uplinkpro.com
  776. """
  777. # Mailman can be configured to "munge" Reply-To: headers for any passing
  778. # messages. One the one hand, there are a lot of good reasons not to munge
  779. # Reply-To: but on the other, people really seem to want this feature. See
  780. # the help for reply_goes_to_list in the web UI for links discussing the
  781. # issue.
  782. # 0 - Reply-To: not munged
  783. # 1 - Reply-To: set back to the list
  784. # 2 - Reply-To: set to an explicit value (reply_to_address)
  785. DEFAULT_REPLY_GOES_TO_LIST = 0
  786. # Mailman can be configured to strip any existing Reply-To: header, or simply
  787. # extend any existing Reply-To: with one based on the above setting.
  788. DEFAULT_FIRST_STRIP_REPLY_TO = No
  789. # SUBSCRIBE POLICY
  790. # 0 - open list (only when ALLOW_OPEN_SUBSCRIBE is set to 1) **
  791. # 1 - confirmation required for subscribes
  792. # 2 - admin approval required for subscribes
  793. # 3 - both confirmation and admin approval required
  794. #
  795. # ** please do not choose option 0 if you are not allowing open
  796. # subscribes (next variable)
  797. DEFAULT_SUBSCRIBE_POLICY = 1
  798. # Does this site allow completely unchecked subscriptions?
  799. ALLOW_OPEN_SUBSCRIBE = No
  800. # This is the default list of addresses and regular expressions (beginning
  801. # with ^) that are exempt from approval if SUBSCRIBE_POLICY is 2 or 3.
  802. DEFAULT_SUBSCRIBE_AUTO_APPROVAL = []
  803. # The default policy for unsubscriptions. 0 (unmoderated unsubscribes) is
  804. # highly recommended!
  805. # 0 - unmoderated unsubscribes
  806. # 1 - unsubscribes require approval
  807. DEFAULT_UNSUBSCRIBE_POLICY = 0
  808. # Private_roster == 0: anyone can see, 1: members only, 2: admin only.
  809. DEFAULT_PRIVATE_ROSTER = 1
  810. # When exposing members, make them unrecognizable as email addrs, so
  811. # web-spiders can't pick up addrs for spam purposes.
  812. DEFAULT_OBSCURE_ADDRESSES = Yes
  813. # RFC 2369 defines List-* headers which are added to every message sent
  814. # through to the mailing list membership. These are a very useful aid to end
  815. # users and should always be added. However, not all MUAs are compliant and
  816. # if a list's membership has many such users, they may clamor for these
  817. # headers to be suppressed. By setting this variable to Yes, list owners will
  818. # be given the option to suppress these headers. By setting it to No, list
  819. # owners will not be given the option to suppress these headers (although some
  820. # header suppression may still take place, i.e. for announce-only lists, or
  821. # lists with no archives).
  822. ALLOW_RFC2369_OVERRIDES = Yes
  823. # Defaults for content filtering on mailing lists. DEFAULT_FILTER_CONTENT is
  824. # a flag which if set to true, turns on content filtering.
  825. DEFAULT_FILTER_CONTENT = No
  826. # DEFAULT_FILTER_MIME_TYPES is a list of MIME types to be removed. This is a
  827. # list of strings of the format "maintype/subtype" or simply "maintype".
  828. # E.g. "text/html" strips all html attachments while "image" strips all image
  829. # types regardless of subtype (jpeg, gif, etc.).
  830. DEFAULT_FILTER_MIME_TYPES = []
  831. # DEFAULT_PASS_MIME_TYPES is a list of MIME types to be passed through.
  832. # Format is the same as DEFAULT_FILTER_MIME_TYPES
  833. DEFAULT_PASS_MIME_TYPES = ['multipart/mixed',
  834. 'multipart/alternative',
  835. 'text/plain']
  836. # DEFAULT_FILTER_FILENAME_EXTENSIONS is a list of filename extensions to be
  837. # removed. It is useful because many viruses fake their content-type as
  838. # harmless ones while keep their extension as executable and expect to be
  839. # executed when victims 'open' them.
  840. DEFAULT_FILTER_FILENAME_EXTENSIONS = [
  841. 'exe', 'bat', 'cmd', 'com', 'pif', 'scr', 'vbs', 'cpl'
  842. ]
  843. # DEFAULT_PASS_FILENAME_EXTENSIONS is a list of filename extensions to be
  844. # passed through. Format is the same as DEFAULT_FILTER_FILENAME_EXTENSIONS.
  845. DEFAULT_PASS_FILENAME_EXTENSIONS = []
  846. # Replace multipart/alternative with its first alternative.
  847. DEFAULT_COLLAPSE_ALTERNATIVES = Yes
  848. # Whether text/html should be converted to text/plain after content filtering
  849. # is performed. Conversion is done according to HTML_TO_PLAIN_TEXT_COMMAND
  850. DEFAULT_CONVERT_HTML_TO_PLAINTEXT = Yes
  851. # Default action to take on filtered messages.
  852. # 0 = Discard, 1 = Reject, 2 = Forward, 3 = Preserve
  853. DEFAULT_FILTER_ACTION = 0
  854. # Whether to allow list owners to preserve content filtered messages to a
  855. # special queue on the disk.
  856. OWNERS_CAN_PRESERVE_FILTERED_MESSAGES = Yes
  857. # Check for administrivia in messages sent to the main list?
  858. DEFAULT_ADMINISTRIVIA = Yes
  859. #####
  860. # Digestification defaults. Same caveat applies here as with list defaults.
  861. #####
  862. # Will list be available in non-digested form?
  863. DEFAULT_NONDIGESTABLE = Yes
  864. # Will list be available in digested form?
  865. DEFAULT_DIGESTABLE = Yes
  866. DEFAULT_DIGEST_HEADER = ""
  867. DEFAULT_DIGEST_FOOTER = DEFAULT_MSG_FOOTER
  868. DEFAULT_DIGEST_IS_DEFAULT = No
  869. DEFAULT_MIME_IS_DEFAULT_DIGEST = No
  870. DEFAULT_DIGEST_SIZE_THRESHHOLD = 30 # KB
  871. DEFAULT_DIGEST_SEND_PERIODIC = Yes
  872. # Headers which should be kept in both RFC 1153 (plain) and MIME digests. RFC
  873. # 1153 also specifies these headers in this exact order, so order matters.
  874. MIME_DIGEST_KEEP_HEADERS = [
  875. 'Date', 'From', 'To', 'Cc', 'Subject', 'Message-ID', 'Keywords',
  876. # I believe we should also keep these headers though.
  877. 'In-Reply-To', 'References', 'Content-Type', 'MIME-Version',
  878. 'Content-Transfer-Encoding', 'Precedence', 'Reply-To',
  879. # Mailman 2.0 adds these headers
  880. 'Message',
  881. ]
  882. PLAIN_DIGEST_KEEP_HEADERS = [
  883. 'Message', 'Date', 'From',
  884. 'Subject', 'To', 'Cc',
  885. 'Message-ID', 'Keywords',
  886. 'Content-Type',
  887. ]
  888. #####
  889. # Bounce processing defaults. Same caveat applies here as with list defaults.
  890. #####
  891. # Should we do any bounced mail response at all?
  892. DEFAULT_BOUNCE_PROCESSING = Yes
  893. # How often should the bounce qrunner process queued detected bounces?
  894. REGISTER_BOUNCES_EVERY = minutes(15)
  895. # Bounce processing works like this: when a bounce from a member is received,
  896. # we look up the `bounce info' for this member. If there is no bounce info,
  897. # this is the first bounce we've received from this member. In that case, we
  898. # record today's date, and initialize the bounce score (see below for initial
  899. # value).
  900. #
  901. # If there is existing bounce info for this member, we look at the last bounce
  902. # receive date. If this date is farther away from today than the `bounce
  903. # expiration interval', we throw away all the old data and initialize the
  904. # bounce score as if this were the first bounce from the member.
  905. #
  906. # Otherwise, we increment the bounce score. If we can determine whether the
  907. # bounce was soft or hard (i.e. transient or fatal), then we use a score value
  908. # of 0.5 for soft bounces and 1.0 for hard bounces. Note that we only score
  909. # one bounce per day. If the bounce score is then greater than the `bounce
  910. # threshold' we disable the member's address.
  911. #
  912. # After disabling the address, we can send warning messages to the member,
  913. # providing a confirmation cookie/url for them to use to re-enable their
  914. # delivery. After a configurable period of time, we'll delete the address.
  915. # When we delete the address due to bouncing, we'll send one last message to
  916. # the member.
  917. # Bounce scores greater than this value get disabled.
  918. DEFAULT_BOUNCE_SCORE_THRESHOLD = 5.0
  919. # Bounce information older than this interval is considered stale, and is
  920. # discarded.
  921. DEFAULT_BOUNCE_INFO_STALE_AFTER = days(7)
  922. # The number of notifications to send to the disabled/removed member before we
  923. # remove them from the list. A value of 0 means we remove the address
  924. # immediately (with one last notification). Note that the first one is sent
  925. # upon change of status to disabled.
  926. DEFAULT_BOUNCE_YOU_ARE_DISABLED_WARNINGS = 3
  927. # The interval of time between disabled warnings.
  928. DEFAULT_BOUNCE_YOU_ARE_DISABLED_WARNINGS_INTERVAL = days(7)
  929. # Does the list owner get messages to the -bounces (and -admin) address that
  930. # failed to match by the bounce detector?
  931. DEFAULT_BOUNCE_UNRECOGNIZED_GOES_TO_LIST_OWNER = Yes
  932. # Notifications on bounce actions. The first specifies whether the list owner
  933. # should get a notification when a member is disabled due to bouncing, while
  934. # the second specifies whether the owner should get one when the member is
  935. # removed due to bouncing.
  936. DEFAULT_BOUNCE_NOTIFY_OWNER_ON_DISABLE = Yes
  937. DEFAULT_BOUNCE_NOTIFY_OWNER_ON_REMOVAL = Yes
  938. #####
  939. # General time limits
  940. #####
  941. # Default length of time a pending request is live before it is evicted from
  942. # the pending database.
  943. PENDING_REQUEST_LIFE = days(3)
  944. # How long should messages which have delivery failures continue to be
  945. # retried? After this period of time, a message that has failed recipients
  946. # will be dequeued and those recipients will never receive the message.
  947. DELIVERY_RETRY_PERIOD = days(5)
  948. # How long should we wait before we retry a temporary delivery failure?
  949. DELIVERY_RETRY_WAIT = hours(1)
  950. #####
  951. # Lock management defaults
  952. #####
  953. # These variables control certain aspects of lock acquisition and retention.
  954. # They should be tuned as appropriate for your environment. All variables are
  955. # specified in units of floating point seconds. YOU MAY NEED TO TUNE THESE
  956. # VARIABLES DEPENDING ON THE SIZE OF YOUR LISTS, THE PERFORMANCE OF YOUR
  957. # HARDWARE, NETWORK AND GENERAL MAIL HANDLING CAPABILITIES, ETC.
  958. # Set this to On to turn on MailList object lock debugging messages, which
  959. # will be written to logs/locks. If you think you're having lock problems, or
  960. # just want to tune the locks for your system, turn on lock debugging.
  961. LIST_LOCK_DEBUGGING = Off
  962. # This variable specifies how long the lock will be retained for a specific
  963. # operation on a mailing list. Watch your logs/lock file and if you see a lot
  964. # of lock breakages, you might need to bump this up. However if you set this
  965. # too high, a faulty script (or incorrect use of bin/withlist) can prevent the
  966. # list from being used until the lifetime expires. This is probably one of
  967. # the most crucial tuning variables in the system.
  968. LIST_LOCK_LIFETIME = hours(5)
  969. # This variable specifies how long an attempt will be made to acquire a list
  970. # lock by the incoming qrunner process. If the lock acquisition times out,
  971. # the message will be re-queued for later delivery.
  972. LIST_LOCK_TIMEOUT = seconds(10)
  973. # Set this to On to turn on lock debugging messages for the pending requests
  974. # database, which will be written to logs/locks. If you think you're having
  975. # lock problems, or just want to tune the locks for your system, turn on lock
  976. # debugging.
  977. PENDINGDB_LOCK_DEBUGGING = Off
  978. #####
  979. # Nothing below here is user configurable. Most of these values are in this
  980. # file for internal system convenience. Don't change any of them or override
  981. # any of them in your mm_cfg.py file!

Large files files are truncated, but you can click here to view the full file