Advertisement
Guest User

imapd

a guest
May 20th, 2013
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.59 KB | None | 0 0
  1. ##VERSION: $Id: imapd.dist.in 159 2011-11-14 02:07:00Z mrsam $
  2. #
  3. # imapd created from imapd.dist by sysconftool
  4. #
  5. # Do not alter lines that begin with ##, they are used when upgrading
  6. # this configuration.
  7. #
  8. # Copyright 1998 - 2008 Double Precision, Inc. See COPYING for
  9. # distribution information.
  10. #
  11. # This configuration file sets various options for the Courier-IMAP server
  12. # when used with the couriertcpd server.
  13. # A lot of the stuff here is documented in the manual page for couriertcpd.
  14. #
  15. # NOTE - do not use \ to split long variable contents on multiple lines.
  16. # This will break the default imapd.rc script, which parses this file.
  17. #
  18. ##NAME: ADDRESS:0
  19. #
  20. # Address to listen on, can be set to a single IP address.
  21. #
  22. # ADDRESS=127.0.0.1
  23.  
  24. ADDRESS=0
  25.  
  26. ##NAME: PORT:1
  27. #
  28. # Port numbers that connections are accepted on. The default is 143,
  29. # the standard IMAP port.
  30. #
  31. # Multiple port numbers can be separated by commas. When multiple port
  32. # numbers are used it is possible to select a specific IP address for a
  33. # given port as "ip.port". For example, "127.0.0.1.900,192.68.0.1.900"
  34. # accepts connections on port 900 on IP addresses 127.0.0.1 and 192.68.0.1
  35. # The previous ADDRESS setting is a default for ports that do not have
  36. # a specified IP address.
  37.  
  38. PORT=143
  39.  
  40. ##NAME: AUTHSERVICE:0
  41. #
  42. # It's possible to authenticate using a different 'service' parameter
  43. # depending on the connection's port. This only works with authentication
  44. # modules that use the 'service' parameter, such as PAM. Example:
  45. #
  46. # AUTHSERVICE143=imap
  47. # AUTHSERVICE993=imaps
  48.  
  49. ##NAME: MAXDAEMONS:0
  50. #
  51. # Maximum number of IMAP servers started
  52. #
  53.  
  54. MAXDAEMONS=80
  55.  
  56. ##NAME: MAXPERIP:0
  57. #
  58. # Maximum number of connections to accept from the same IP address
  59.  
  60. MAXPERIP=40
  61.  
  62. ##NAME: PIDFILE:0
  63. #
  64. # File where couriertcpd will save its process ID
  65. #
  66.  
  67. PIDFILE=/var/run/imapd.pid
  68.  
  69. ##NAME: TCPDOPTS:0
  70. #
  71. # Miscellaneous couriertcpd options that shouldn't be changed.
  72. #
  73.  
  74. TCPDOPTS="-nodnslookup -noidentlookup"
  75.  
  76. ##NAME: LOGGEROPTS:0
  77. #
  78. # courierlogger(1) options.
  79. #
  80.  
  81. LOGGEROPTS="-name=imapd"
  82.  
  83. ##NAME: DEFDOMAIN:0
  84. #
  85. # Optional default domain. If the username does not contain the
  86. # first character of DEFDOMAIN, then it is appended to the username.
  87. # If DEFDOMAIN and DOMAINSEP are both set, then DEFDOMAIN is appended
  88. # only if the username does not contain any character from DOMAINSEP.
  89. # You can set different default domains based on the the interface IP
  90. # address using the -access and -accesslocal options of couriertcpd(1).
  91.  
  92. #DEFDOMAIN="@example.com"
  93.  
  94. ##NAME: IMAP_CAPABILITY:1
  95. #
  96. # IMAP_CAPABILITY specifies what most of the response should be to the
  97. # CAPABILITY command.
  98. #
  99. # If you have properly configured Courier to use CRAM-MD5, CRAM-SHA1, or
  100. # CRAM-SHA256 authentication (see INSTALL), set IMAP_CAPABILITY as follows:
  101. #
  102. # IMAP_CAPABILITY="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256 IDLE"
  103. #
  104.  
  105. IMAP_CAPABILITY="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=PLAIN IDLE"
  106.  
  107. ##NAME: KEYWORDS_CAPABILITY:0
  108. #
  109. # IMAP_KEYWORDS=1 enables custom IMAP keywords. Set this option to 0 to
  110. # disable custom keywords.
  111. #
  112. # IMAP_KEYWORDS=2 also enables custom IMAP keywords, but uses a slower
  113. # algorithm. Use this setting if keyword-related problems occur when
  114. # multiple IMAP clients are updating keywords on the same message.
  115.  
  116. IMAP_KEYWORDS=1
  117.  
  118. ##NAME: ACL_CAPABILITY:0
  119. #
  120. # IMAP_ACL=1 enables IMAP ACL extension. Set this option to 0 to
  121. # disable ACL capabilities announce.
  122.  
  123. IMAP_ACL=1
  124.  
  125. ##NAME: SMAP1_CAPABILITY:0
  126. #
  127. # EXPERIMENTAL
  128. #
  129. # To enable the experimental "Simple Mail Access Protocol" extensions,
  130. # uncomment the following setting.
  131. #
  132. # SMAP_CAPABILITY=SMAP1
  133.  
  134. ##NAME: IMAP_CAPABILITY_ORIG:2
  135. #
  136. # For use by webadmin
  137.  
  138. IMAP_CAPABILITY_ORIG="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256 IDLE"
  139.  
  140. ##NAME: IMAP_PROXY:0
  141. #
  142. # Enable proxying. See README.proxy
  143.  
  144. IMAP_PROXY=0
  145.  
  146. ##NAME: PROXY_HOSTNAME:0
  147. #
  148. # Override value from gethostname() when checking if a proxy connection is
  149. # required.
  150. #
  151. # PROXY_HOSTNAME=
  152.  
  153. ##NAME: IMAP_PROXY_FOREIGN:0
  154. #
  155. # Proxying to non-Courier servers. Re-sends the CAPABILITY command after
  156. # logging in to the remote server. May not work with all IMAP clients.
  157.  
  158. IMAP_PROXY_FOREIGN=0
  159.  
  160. ##NAME: IMAP_IDLE_TIMEOUT:0
  161. #
  162. # This setting controls how often
  163. # the server polls for changes to the folder, in IDLE mode (in seconds).
  164.  
  165. IMAP_IDLE_TIMEOUT=60
  166.  
  167. ##NAME: IMAP_MAILBOX_SANITY_CHECK:0
  168. #
  169. # Sanity check -- make sure home directory and maildir's ownership matches
  170. # the IMAP server's effective uid and gid
  171.  
  172. IMAP_MAILBOX_SANITY_CHECK=1
  173.  
  174. ##NAME: IMAP_CAPABILITY_TLS:0
  175. #
  176. # The following setting will advertise SASL PLAIN authentication after
  177. # STARTTLS is established. If you want to allow SASL PLAIN authentication
  178. # with or without TLS then just comment this out, and add AUTH=PLAIN to
  179. # IMAP_CAPABILITY
  180.  
  181. IMAP_CAPABILITY_TLS="$IMAP_CAPABILITY AUTH=PLAIN"
  182.  
  183. ##NAME: IMAP_TLS_ORIG:0
  184. #
  185. # For use by webadmin
  186.  
  187. IMAP_CAPABILITY_TLS_ORIG="$IMAP_CAPABILITY_ORIG AUTH=PLAIN"
  188.  
  189. ##NAME: IMAP_DISABLETHREADSORT:0
  190. #
  191. # Set IMAP_DISABLETHREADSORT to disable the THREAD and SORT commands -
  192. # server side sorting and threading.
  193. #
  194. # Those capabilities will still be advertised, but the server will reject
  195. # them. Set this option if you want to disable all the extra load from
  196. # server-side threading and sorting. Not advertising those capabilities
  197. # will simply result in the clients reading the entire folder, and sorting
  198. # it on the client side. That will still put some load on the server.
  199. # advertising these capabilities, but rejecting the commands, will stop this
  200. # silliness.
  201. #
  202.  
  203. IMAP_DISABLETHREADSORT=0
  204.  
  205. ##NAME: IMAP_CHECK_ALL_FOLDERS:0
  206. #
  207. # Set IMAP_CHECK_ALL_FOLDERS to 1 if you want the server to check for new
  208. # mail in every folder. Not all IMAP clients use the IMAP's new mail
  209. # indicator, but some do. Normally new mail is checked only in INBOX,
  210. # because it is a comparatively time consuming operation, and it would be
  211. # a complete waste of time unless mail filters are used to deliver
  212. # mail directly to folders.
  213. #
  214. # When IMAP clients are used which support new mail indication, and when
  215. # mail filters are used to sort incoming mail into folders, setting
  216. # IMAP_CHECK_ALL_FOLDERS to 1 will allow IMAP clients to announce new
  217. # mail in folders. Note that this will result in slightly more load on the
  218. # server.
  219. #
  220.  
  221. IMAP_CHECK_ALL_FOLDERS=0
  222.  
  223. ##NAME: IMAP_OBSOLETE_CLIENT:0
  224. #
  225. # Set IMAP_OBSOLETE_CLIENT if your IMAP client expects \\NoInferiors to mean
  226. # what \\HasNoChildren really means.
  227.  
  228. IMAP_OBSOLETE_CLIENT=0
  229.  
  230. ##NAME: IMAP_UMASK:0
  231. #
  232. # IMAP_UMASK sets the umask of the server process. The value of IMAP_UMASK is
  233. # simply passed to the "umask" command. The default value is 022.
  234. #
  235. # This feature is mostly useful for shared folders, where the file permissions
  236. # of the messages may be important.
  237.  
  238. IMAP_UMASK=022
  239.  
  240. ##NAME: IMAP_ULIMITD:0
  241. #
  242. # IMAP_ULIMITD sets the maximum size of the data segment of the server
  243. # process. The value of IMAP_ULIMITD is simply passed to the "ulimit -d"
  244. # command (or ulimit -v). The argument to ulimi sets the upper limit on the
  245. # size of the data segment of the server process, in kilobytes. The default
  246. # value of 65536 sets a very generous limit of 64 megabytes, which should
  247. # be more than plenty for anyone.
  248. #
  249. # This feature is used as an additional safety check that should stop
  250. # any potential denial-of-service attacks that exploit any kind of
  251. # a memory leak to exhaust all the available memory on the server.
  252. # It is theoretically possible that obscenely huge folders will also
  253. # result in the server running out of memory when doing server-side
  254. # sorting (by my calculations you have to have at least 100,000 messages
  255. # in a single folder, for that to happen).
  256.  
  257. IMAP_ULIMITD=65536
  258.  
  259. ##NAME: IMAP_USELOCKS:0
  260. #
  261. # Setting IMAP_USELOCKS to 1 will use dot-locking to support concurrent
  262. # multiple access to the same folder. This incurs slight additional
  263. # overhead. Concurrent multiple access will still work without this setting,
  264. # however occasionally a minor race condition may result in an IMAP client
  265. # downloading the same message twice, or a keyword update will fail.
  266. #
  267. # IMAP_USELOCKS=1 is strongly recommended when shared folders are used.
  268.  
  269. IMAP_USELOCKS=1
  270.  
  271. ##NAME: IMAP_SHAREDINDEXFILE:0
  272. #
  273. # The index of all accessible folders. Do not change this setting unless
  274. # you know what you're doing. See README.sharedfolders for additional
  275. # information.
  276.  
  277. #IMAP_SHAREDINDEXFILE=/etc/courier-imap/shared/index
  278.  
  279. ##NAME: IMAP_ENHANCEDIDLE:0
  280. #
  281. # If Courier was compiled with the File Alteration Monitor, setting
  282. # IMAP_ENHANCEDIDLE to 1 enables enhanced IDLE mode, where multiple
  283. # clients may open the same folder concurrently, and receive updates to
  284. # folder contents in realtime. See the imapd(8) man page for additional
  285. # information.
  286. #
  287. # IMPORTANT: IMAP_USELOCKS *MUST* also be set to 1, and IDLE must be included
  288. # in the IMAP_CAPABILITY list.
  289. #
  290.  
  291. IMAP_ENHANCEDIDLE=0
  292.  
  293. ##NAME: IMAP_TRASHFOLDERNAME:0
  294. #
  295. # The name of the magic trash Folder. For MSOE compatibility,
  296. # you can set IMAP_TRASHFOLDERNAME="Deleted Items".
  297. #
  298. # IMPORTANT: If you change this, you must also change IMAP_EMPTYTRASH
  299.  
  300. IMAP_TRASHFOLDERNAME=Trash
  301.  
  302. ##NAME: IMAP_EMPTYTRASH:0
  303. #
  304. # The following setting is optional, and causes messages from the given
  305. # folder to be automatically deleted after the given number of days.
  306. # IMAP_EMPTYTRASH is a comma-separated list of folder:days. The default
  307. # setting, below, purges 7 day old messages from the Trash folder.
  308. # Another useful setting would be:
  309. #
  310. # IMAP_EMPTYTRASH=Trash:7,Sent:30
  311. #
  312. # This would also delete messages from the Sent folder (presumably copies
  313. # of sent mail) after 30 days. This is a global setting that is applied to
  314. # every mail account, and is probably useful in a controlled, corporate
  315. # environment.
  316. #
  317. # Important: the purging is controlled by CTIME, not MTIME (the file time
  318. # as shown by ls). It is perfectly ordinary to see stuff in Trash that's
  319. # a year old. That's the file modification time, MTIME, that's displayed.
  320. # This is generally when the message was originally delivered to this
  321. # mailbox. Purging is controlled by a different timestamp, CTIME, which is
  322. # changed when the file is moved to the Trash folder (and at other times too).
  323. #
  324. # You might want to disable this setting in certain situations - it results
  325. # in a stat() of every file in each folder, at login and logout.
  326. #
  327.  
  328. IMAP_EMPTYTRASH=Trash:7
  329.  
  330. ##NAME: IMAP_MOVE_EXPUNGE_TO_TRASH:0
  331. #
  332. # Set IMAP_MOVE_EXPUNGE_TO_TRASH to move expunged messages to Trash. This
  333. # effectively allows an undo of message deletion by fishing the deleted
  334. # mail from trash. Trash can be manually expunged as usually, and mail
  335. # will get automatically expunged from Trash according to IMAP_EMPTYTRASH.
  336. #
  337. # NOTE: shared folders are still expunged as usual. Shared folders are
  338. # not affected.
  339. #
  340.  
  341. IMAP_MOVE_EXPUNGE_TO_TRASH=0
  342.  
  343. ##NAME: IMAP_LOG_DELETIONS:0
  344. #
  345. #
  346. # Set IMAP_LOG_DELETIONS to log all message deletions to syslog.
  347. #
  348. # IMAP_LOG_DELETIONS=1
  349.  
  350. ##NAME: IMAPDEBUGFILE:0
  351. #
  352. # IMAPDEBUGFILE="imaplog.dat"
  353. #
  354. # Generate diagnostic logging of IMAP commands.
  355. #
  356. # Set this globally, restart the server. Touch this file in an account's
  357. # maildir directory, and Courier-IMAP will append all IMAP commands received
  358. # for new sessions for this account. NOTE: existing IMAP sessions are not
  359. # affected, only new IMAP logins.
  360.  
  361.  
  362. ##NAME: OUTBOX:0
  363. #
  364. # The next set of options deal with the "Outbox" enhancement.
  365. # Uncomment the following setting to create a special folder, named
  366. # INBOX.Outbox
  367. #
  368. # OUTBOX=.Outbox
  369.  
  370. ##NAME: SENDMAIL:0
  371. #
  372. # If OUTBOX is defined, mail can be sent via the IMAP connection by copying
  373. # a message to the INBOX.Outbox folder. For all practical matters,
  374. # INBOX.Outbox looks and behaves just like any other IMAP folder. If this
  375. # folder doesn't exist it must be created by the IMAP mail client, just
  376. # like any other IMAP folder. The kicker: any message copied or moved to
  377. # this folder is will be E-mailed by the Courier-IMAP server, by running
  378. # the SENDMAIL program. Therefore, messages copied or moved to this
  379. # folder must be well-formed RFC-2822 messages, with the recipient list
  380. # specified in the To:, Cc:, and Bcc: headers. Courier-IMAP relies on
  381. # SENDMAIL to read the recipient list from these headers (and delete the Bcc:
  382. # header) by running the command "$SENDMAIL -oi -t -f $SENDER", with the
  383. # message piped on standard input. $SENDER will be the return address
  384. # of the message, which is set by the authentication module.
  385. #
  386. # DO NOT MODIFY SENDMAIL, below, unless you know what you're doing.
  387. #
  388.  
  389. SENDMAIL=/usr/sbin/sendmail
  390.  
  391. ##NAME: HEADERFROM:0
  392. #
  393. # For administrative and oversight purposes, the return address, $SENDER
  394. # will also be saved in the X-IMAP-Sender mail header. This header gets
  395. # added to the sent E-mail (but it doesn't get saved in the copy of the
  396. # message that's saved in the folder)
  397. #
  398. # WARNING - By enabling OUTBOX above, *every* IMAP mail client will receive
  399. # the magic OUTBOX treatment. Therefore advance LARTing is in order for
  400. # _all_ of your lusers, until every one of them is aware of this. Otherwise if
  401. # OUTBOX is left at its default setting - a folder name that might be used
  402. # accidentally - some people may be in for a rude surprise. You can redefine
  403. # the name of the magic folder by changing OUTBOX, above. You should do that
  404. # and pick a less-obvious name. Perhaps brand it with your organizational
  405. # name ( OUTBOX=.WidgetsAndSonsOutbox )
  406.  
  407. HEADERFROM=X-IMAP-Sender
  408.  
  409. ##NAME: OUTBOX_MULTIPLE_SEND:0
  410. #
  411. # Remove the following comment to allow a COPY of more than one message to
  412. # the Outbox, at a time.
  413. #
  414. # OUTBOX_MULTIPLE_SEND=1
  415.  
  416. ##NAME: IMAPDSTART:0
  417. #
  418. # IMAPDSTART is not used directly. Rather, this is a convenient flag to
  419. # be read by your system startup script in /etc/rc.d, like this:
  420. #
  421. # . /etc/courier-imap/imapd
  422. #
  423. # case x$IMAPDSTART in
  424. # x[yY]*)
  425. # /usr/lib/imapd.rc start
  426. # ;;
  427. # esac
  428. #
  429. # The default setting is going to be NO, so you'll have to manually flip
  430. # it to yes.
  431.  
  432. IMAPDSTART=YES
  433.  
  434. ##NAME: MAILDIRPATH:0
  435. #
  436. # MAILDIRPATH - directory name of the maildir directory.
  437. #
  438. MAILDIRPATH=Maildir
  439. MAILDIRPATH=Maildir
  440. # *** AUTHMODULES added by Parallels Plesk ***
  441. AUTHMODULES="authpsa"
  442. POPLOCK_TIME=30
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement