PageRenderTime 92ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 1ms

/tags/Release_2_1_4/mailman/Mailman/Defaults.py.in

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

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