Want more features on Pastebin? Sign Up, it's FREE!
Guest

jonizen

By: a guest on Oct 2nd, 2011  |  syntax: C  |  size: 94.09 KB  |  views: 72  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. My log in webmin but these are empty, this i s all i can see....
  2.  
  3.  
  4.  
  5. Aktivitet       Modul           Användare      Klientadress    Datum           Tid  
  6. Started Postfix server  Postfixinställningar   root    94.191.174.227  01/okt/2011     11:20
  7. Started Postfix server  Postfixinställningar   root    94.191.174.227  01/okt/2011     10:36
  8. Started Postfix server  Postfixinställningar   root    95.209.102.35   30/sep/2011     22:11
  9. Started Postfix server  Postfixinställningar   root    95.209.102.35   30/sep/2011     22:11
  10. Started Postfix server  Postfixinställningar   root    95.209.102.35   30/sep/2011     22:11
  11. Modifierade loggning till -/var/log/mail.warn   Systemloggar    root    95.209.102.35   30/sep/2011     22:10
  12. Modifierade loggning till /var/log/mail.info    Systemloggar    root    95.209.102.35   30/sep/2011     22:09
  13. Modifierade loggning till -/var/log/debug       Systemloggar    root    95.209.102.35   30/sep/2011     22:09
  14. Modifierade loggning till /var/log/mail.err     Systemloggar    root    95.209.102.35   30/sep/2011     22:08
  15. Modifierade loggning till -/var/log/daemon.log  Systemloggar    root    95.209.102.35   30/sep/2011     22:06
  16. Started Postfix server  Postfixinställningar   root    95.209.102.35   30/sep/2011     21:48
  17. Started Postfix server  Postfixinställningar   root    95.209.102.35   30/sep/2011     21:36
  18. Started Postfix server  Postfixinställningar   root    95.209.102.35   30/sep/2011     21:36
  19. Started Postfix server  Postfixinställningar   root    95.209.102.35   30/sep/2011     21:23
  20. Changed virtual domain options  Postfixinställningar   root    95.209.102.35   30/sep/2011     21:23
  21. Started Postfix server  Postfixinställningar   root    95.209.102.35   30/sep/2011     21:18
  22. Changed virtual domain options  Postfixinställningar   root    95.209.102.35   30/sep/2011     21:18
  23. Changed virtual domain options  Postfixinställningar   root    95.209.102.35   30/sep/2011     21:18
  24. Started Postfix server  Postfixinställningar   root    95.209.102.35   30/sep/2011     21:17
  25. Started Postfix server  Postfixinställningar   root    95.209.102.35   30/sep/2011     21:15
  26. Changed virtual domain options  Postfixinställningar   root    95.209.102.35   30/sep/2011     21:13
  27. Changed debugging features      Postfixinställningar   root    95.209.102.35   30/sep/2011     21:13
  28.  
  29.  
  30.  
  31. My Postfix main file!
  32.  
  33.  
  34. # Global Postfix configuration file. This file lists only a subset
  35. # of all parameters. For the syntax, and for a complete parameter
  36. # list, see the postconf(5) manual page (command: "man 5 postconf").
  37. #
  38. # For common configuration examples, see BASIC_CONFIGURATION_README
  39. # and STANDARD_CONFIGURATION_README. To find these documents, use
  40. # the command "postconf html_directory readme_directory", or go to
  41. # http://www.postfix.org/.
  42. #
  43. # For best results, change no more than 2-3 parameters at a time,
  44. # and test if Postfix still works after every change.
  45.  
  46. # SOFT BOUNCE
  47. #
  48. # The soft_bounce parameter provides a limited safety net for
  49. # testing.  When soft_bounce is enabled, mail will remain queued that
  50. # would otherwise bounce. This parameter disables locally-generated
  51. # bounces, and prevents the SMTP server from rejecting mail permanently
  52. # (by changing 5xx replies into 4xx replies). However, soft_bounce
  53. # is no cure for address rewriting mistakes or mail routing mistakes.
  54. #
  55. #soft_bounce = no
  56.  
  57. # LOCAL PATHNAME INFORMATION
  58. #
  59. # The queue_directory specifies the location of the Postfix queue.
  60. # This is also the root directory of Postfix daemons that run chrooted.
  61. # See the files in examples/chroot-setup for setting up Postfix chroot
  62. # environments on different UNIX systems.
  63. #
  64. #queue_directory = /var/spool/postfix
  65.  
  66. # The command_directory parameter specifies the location of all
  67. # postXXX commands.
  68. #
  69. command_directory = /usr/sbin
  70.  
  71. # The daemon_directory parameter specifies the location of all Postfix
  72. # daemon programs (i.e. programs listed in the master.cf file). This
  73. # directory must be owned by root.
  74. #
  75. daemon_directory = /usr/lib/postfix
  76.  
  77. # The data_directory parameter specifies the location of Postfix-writable
  78. # data files (caches, random numbers). This directory must be owned
  79. # by the mail_owner account (see below).
  80. #
  81. data_directory = /var/lib/postfix
  82.  
  83. # QUEUE AND PROCESS OWNERSHIP
  84. #
  85. # The mail_owner parameter specifies the owner of the Postfix queue
  86. # and of most Postfix daemon processes.  Specify the name of a user
  87. # account THAT DOES NOT SHARE ITS USER OR GROUP ID WITH OTHER ACCOUNTS
  88. # AND THAT OWNS NO OTHER FILES OR PROCESSES ON THE SYSTEM.  In
  89. # particular, don't specify nobody or daemon. PLEASE USE A DEDICATED
  90. # USER.
  91. #
  92. mail_owner = postfix
  93.  
  94. # The default_privs parameter specifies the default rights used by
  95. # the local delivery agent for delivery to external file or command.
  96. # These rights are used in the absence of a recipient user context.
  97. # DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER.
  98. #
  99. #default_privs = nobody
  100.  
  101. # INTERNET HOST AND DOMAIN NAMES
  102. #
  103. # The myhostname parameter specifies the internet hostname of this
  104. # mail system. The default is to use the fully-qualified domain name
  105. # from gethostname(). $myhostname is used as a default value for many
  106. # other configuration parameters.
  107. #
  108. #myhostname = host.domain.tld
  109. myhostname = mail.e-ject.se
  110.  
  111. # The mydomain parameter specifies the local internet domain name.
  112. # The default is to use $myhostname minus the first component.
  113. # $mydomain is used as a default value for many other configuration
  114. # parameters.
  115. #
  116. mydomain = e-ject.se
  117.  
  118. # SENDING MAIL
  119. #
  120. # The myorigin parameter specifies the domain that locally-posted
  121. # mail appears to come from. The default is to append $myhostname,
  122. # which is fine for small sites.  If you run a domain with multiple
  123. # machines, you should (1) change this to $mydomain and (2) set up
  124. # a domain-wide alias database that aliases each user to
  125. # user@that.users.mailhost.
  126. #
  127. # For the sake of consistency between sender and recipient addresses,
  128. # myorigin also specifies the default domain name that is appended
  129. # to recipient addresses that have no @domain part.
  130. #
  131. # Debian GNU/Linux specific:  Specifying a file name will cause the
  132. # first line of that file to be used as the name.  The Debian default
  133. # is /etc/mailname.
  134. #
  135. #myorigin = /etc/mailname
  136. #myorigin = $myhostname
  137. myorigin = /etc/mailname
  138.  
  139. # RECEIVING MAIL
  140.  
  141. # The inet_interfaces parameter specifies the network interface
  142. # addresses that this mail system receives mail on.  By default,
  143. # the software claims all active interfaces on the machine. The
  144. # parameter also controls delivery of mail to user@[ip.address].
  145. #
  146. # See also the proxy_interfaces parameter, for network addresses that
  147. # are forwarded to us via a proxy or network address translator.
  148. #
  149. # Note: you need to stop/start Postfix when this parameter changes.
  150. #
  151. inet_interfaces = all
  152. #inet_interfaces = $myhostname
  153. #inet_interfaces = $myhostname, localhost
  154.  
  155. # The proxy_interfaces parameter specifies the network interface
  156. # addresses that this mail system receives mail on by way of a
  157. # proxy or network address translation unit. This setting extends
  158. # the address list specified with the inet_interfaces parameter.
  159. #
  160. # You must specify your proxy/NAT addresses when your system is a
  161. # backup MX host for other domains, otherwise mail delivery loops
  162. # will happen when the primary MX host is down.
  163. #
  164. #proxy_interfaces =
  165. #proxy_interfaces = 1.2.3.4
  166.  
  167. # The mydestination parameter specifies the list of domains that this
  168. # machine considers itself the final destination for.
  169. #
  170. # These domains are routed to the delivery agent specified with the
  171. # local_transport parameter setting. By default, that is the UNIX
  172. # compatible delivery agent that lookups all recipients in /etc/passwd
  173. # and /etc/aliases or their equivalent.
  174. #
  175. # The default is $myhostname + localhost.$mydomain.  On a mail domain
  176. # gateway, you should also include $mydomain.
  177. #
  178. # Do not specify the names of virtual domains - those domains are
  179. # specified elsewhere (see VIRTUAL_README).
  180. #
  181. # Do not specify the names of domains that this machine is backup MX
  182. # host for. Specify those names via the relay_domains settings for
  183. # the SMTP server, or use permit_mx_backup if you are lazy (see
  184. # STANDARD_CONFIGURATION_README).
  185. #
  186. # The local machine is always the final destination for mail addressed
  187. # to user@[the.net.work.address] of an interface that the mail system
  188. # receives mail on (see the inet_interfaces parameter).
  189. #
  190. # Specify a list of host or domain names, /file/name or type:table
  191. # patterns, separated by commas and/or whitespace. A /file/name
  192. # pattern is replaced by its contents; a type:table is matched when
  193. # a name matches a lookup key (the right-hand side is ignored).
  194. # Continue long lines by starting the next line with whitespace.
  195. #
  196. # See also below, section "REJECTING MAIL FOR UNKNOWN LOCAL USERS".
  197. #
  198. #mydestination = $myhostname, localhost.$mydomain, localhost
  199. mydestination = mail.e-ject.se,e-ject.se, localhost, localhost.localdomain, localhost
  200. #mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
  201. #       mail.$mydomain, www.$mydomain, ftp.$mydomain
  202.  
  203. # REJECTING MAIL FOR UNKNOWN LOCAL USERS
  204. #
  205. # The local_recipient_maps parameter specifies optional lookup tables
  206. # with all names or addresses of users that are local with respect
  207. # to $mydestination, $inet_interfaces or $proxy_interfaces.
  208. #
  209. # If this parameter is defined, then the SMTP server will reject
  210. # mail for unknown local users. This parameter is defined by default.
  211. #
  212. # To turn off local recipient checking in the SMTP server, specify
  213. # local_recipient_maps = (i.e. empty).
  214. #
  215. # The default setting assumes that you use the default Postfix local
  216. # delivery agent for local delivery. You need to update the
  217. # local_recipient_maps setting if:
  218. #
  219. # - You define $mydestination domain recipients in files other than
  220. #   /etc/passwd, /etc/aliases, or the $virtual_alias_maps files.
  221. #   For example, you define $mydestination domain recipients in    
  222. #   the $virtual_mailbox_maps files.
  223. #
  224. # - You redefine the local delivery agent in master.cf.
  225. #
  226. # - You redefine the "local_transport" setting in main.cf.
  227. #
  228. # - You use the "luser_relay", "mailbox_transport", or "fallback_transport"
  229. #   feature of the Postfix local delivery agent (see local(8)).
  230. #
  231. # Details are described in the LOCAL_RECIPIENT_README file.
  232. #
  233. # Beware: if the Postfix SMTP server runs chrooted, you probably have
  234. # to access the passwd file via the proxymap service, in order to
  235. # overcome chroot restrictions. The alternative, having a copy of
  236. # the system passwd file in the chroot jail is just not practical.
  237. #
  238. # The right-hand side of the lookup tables is conveniently ignored.
  239. # In the left-hand side, specify a bare username, an @domain.tld
  240. # wild-card, or specify a user@domain.tld address.
  241. #
  242. local_recipient_maps = unix:passwd.byname $alias_maps
  243. #local_recipient_maps = proxy:unix:passwd.byname $alias_maps
  244. #local_recipient_maps =
  245.  
  246. # The unknown_local_recipient_reject_code specifies the SMTP server
  247. # response code when a recipient domain matches $mydestination or
  248. # ${proxy,inet}_interfaces, while $local_recipient_maps is non-empty
  249. # and the recipient address or address local-part is not found.
  250. #
  251. # The default setting is 550 (reject mail) but it is safer to start
  252. # with 450 (try again later) until you are certain that your
  253. # local_recipient_maps settings are OK.
  254. #
  255. unknown_local_recipient_reject_code = 550
  256.  
  257. # TRUST AND RELAY CONTROL
  258.  
  259. # The mynetworks parameter specifies the list of "trusted" SMTP
  260. # clients that have more privileges than "strangers".
  261. #
  262. # In particular, "trusted" SMTP clients are allowed to relay mail
  263. # through Postfix.  See the smtpd_recipient_restrictions parameter
  264. # in postconf(5).
  265. #
  266. # You can specify the list of "trusted" network addresses by hand
  267. # or you can let Postfix do it for you (which is the default).
  268. #
  269. # By default (mynetworks_style = subnet), Postfix "trusts" SMTP
  270. # clients in the same IP subnetworks as the local machine.
  271. # On Linux, this does works correctly only with interfaces specified
  272. # with the "ifconfig" command.
  273. #
  274. # Specify "mynetworks_style = class" when Postfix should "trust" SMTP
  275. # clients in the same IP class A/B/C networks as the local machine.
  276. # Don't do this with a dialup site - it would cause Postfix to "trust"
  277. # your entire provider's network.  Instead, specify an explicit
  278. # mynetworks list by hand, as described below.
  279. #  
  280. # Specify "mynetworks_style = host" when Postfix should "trust"
  281. # only the local machine.
  282. #
  283. #mynetworks_style = class
  284. #mynetworks_style = subnet
  285. #mynetworks_style = host
  286.  
  287. # Alternatively, you can specify the mynetworks list by hand, in
  288. # which case Postfix ignores the mynetworks_style setting.
  289. #
  290. # Specify an explicit list of network/netmask patterns, where the
  291. # mask specifies the number of bits in the network part of a host
  292. # address.
  293. #
  294. # You can also specify the absolute pathname of a pattern file instead
  295. # of listing the patterns here. Specify type:table for table-based lookups
  296. # (the value on the table right-hand side is not used).
  297. #
  298. #mynetworks = 168.100.189.0/28, 127.0.0.0/8
  299. #mynetworks = $config_directory/mynetworks
  300. #mynetworks = hash:/etc/postfix/network_table
  301. mynetworks = 127.0.0.0/8
  302.  
  303. # The relay_domains parameter restricts what destinations this system will
  304. # relay mail to.  See the smtpd_recipient_restrictions description in
  305. # postconf(5) for detailed information.
  306. #
  307. # By default, Postfix relays mail
  308. # - from "trusted" clients (IP address matches $mynetworks) to any destination,
  309. # - from "untrusted" clients to destinations that match $relay_domains or
  310. #   subdomains thereof, except addresses with sender-specified routing.
  311. # The default relay_domains value is $mydestination.
  312. #
  313. # In addition to the above, the Postfix SMTP server by default accepts mail
  314. # that Postfix is final destination for:
  315. # - destinations that match $inet_interfaces or $proxy_interfaces,
  316. # - destinations that match $mydestination
  317. # - destinations that match $virtual_alias_domains,
  318. # - destinations that match $virtual_mailbox_domains.
  319. # These destinations do not need to be listed in $relay_domains.
  320. #
  321. # Specify a list of hosts or domains, /file/name patterns or type:name
  322. # lookup tables, separated by commas and/or whitespace.  Continue
  323. # long lines by starting the next line with whitespace. A file name
  324. # is replaced by its contents; a type:name table is matched when a
  325. # (parent) domain appears as lookup key.
  326. #
  327. # NOTE: Postfix will not automatically forward mail for domains that
  328. # list this system as their primary or backup MX host. See the
  329. # permit_mx_backup restriction description in postconf(5).
  330. #
  331. #relay_domains = $mydestination
  332.  
  333. # INTERNET OR INTRANET
  334.  
  335. # The relayhost parameter specifies the default host to send mail to
  336. # when no entry is matched in the optional transport(5) table. When
  337. # no relayhost is given, mail is routed directly to the destination.
  338. #
  339. # On an intranet, specify the organizational domain name. If your
  340. # internal DNS uses no MX records, specify the name of the intranet
  341. # gateway host instead.
  342. #
  343. # In the case of SMTP, specify a domain, host, host:port, [host]:port,
  344. # [address] or [address]:port; the form [host] turns off MX lookups.
  345. #
  346. # If you're connected via UUCP, see also the default_transport parameter.
  347. #
  348. #relayhost = $mydomain
  349. #relayhost = [gateway.my.domain]
  350. #relayhost = [mailserver.isp.tld]
  351. #relayhost = uucphost
  352. #relayhost = [an.ip.add.ress]
  353.  
  354. # REJECTING UNKNOWN RELAY USERS
  355. #
  356. # The relay_recipient_maps parameter specifies optional lookup tables
  357. # with all addresses in the domains that match $relay_domains.
  358. #
  359. # If this parameter is defined, then the SMTP server will reject
  360. # mail for unknown relay users. This feature is off by default.
  361. #
  362. # The right-hand side of the lookup tables is conveniently ignored.
  363. # In the left-hand side, specify an @domain.tld wild-card, or specify
  364. # a user@domain.tld address.
  365. #
  366. #relay_recipient_maps = hash:/etc/postfix/relay_recipients
  367.  
  368. # INPUT RATE CONTROL
  369. #
  370. # The in_flow_delay configuration parameter implements mail input
  371. # flow control. This feature is turned on by default, although it
  372. # still needs further development (it's disabled on SCO UNIX due
  373. # to an SCO bug).
  374. #
  375. # A Postfix process will pause for $in_flow_delay seconds before
  376. # accepting a new message, when the message arrival rate exceeds the
  377. # message delivery rate. With the default 100 SMTP server process
  378. # limit, this limits the mail inflow to 100 messages a second more
  379. # than the number of messages delivered per second.
  380. #
  381. # Specify 0 to disable the feature. Valid delays are 0..10.
  382. #
  383. #in_flow_delay = 1s
  384.  
  385. # ADDRESS REWRITING
  386. #
  387. # The ADDRESS_REWRITING_README document gives information about
  388. # address masquerading or other forms of address rewriting including
  389. # username->Firstname.Lastname mapping.
  390.  
  391. # ADDRESS REDIRECTION (VIRTUAL DOMAIN)
  392. #
  393. # The VIRTUAL_README document gives information about the many forms
  394. # of domain hosting that Postfix supports.
  395.  
  396. # "USER HAS MOVED" BOUNCE MESSAGES
  397. #
  398. # See the discussion in the ADDRESS_REWRITING_README document.
  399.  
  400. # TRANSPORT MAP
  401. #
  402. # See the discussion in the ADDRESS_REWRITING_README document.
  403.  
  404. # ALIAS DATABASE
  405. #
  406. # The alias_maps parameter specifies the list of alias databases used
  407. # by the local delivery agent. The default list is system dependent.
  408. #
  409. # On systems with NIS, the default is to search the local alias
  410. # database, then the NIS alias database. See aliases(5) for syntax
  411. # details.
  412. #
  413. # If you change the alias database, run "postalias /etc/aliases" (or
  414. # wherever your system stores the mail alias file), or simply run
  415. # "newaliases" to build the necessary DBM or DB file.
  416. #
  417. # It will take a minute or so before changes become visible.  Use
  418. # "postfix reload" to eliminate the delay.
  419. #
  420. #alias_maps = dbm:/etc/aliases
  421. alias_maps = hash:/etc/aliases
  422. #alias_maps = hash:/etc/aliases, nis:mail.aliases
  423. #alias_maps = netinfo:/aliases
  424.  
  425. # The alias_database parameter specifies the alias database(s) that
  426. # are built with "newaliases" or "sendmail -bi".  This is a separate
  427. # configuration parameter, because alias_maps (see above) may specify
  428. # tables that are not necessarily all under control by Postfix.
  429. #
  430. #alias_database = dbm:/etc/aliases
  431. #alias_database = dbm:/etc/mail/aliases
  432. alias_database = hash:/etc/aliases
  433. #alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases
  434.  
  435. # ADDRESS EXTENSIONS (e.g., user+foo)
  436. #
  437. # The recipient_delimiter parameter specifies the separator between
  438. # user names and address extensions (user+foo). See canonical(5),
  439. # local(8), relocated(5) and virtual(5) for the effects this has on
  440. # aliases, canonical, virtual, relocated and .forward file lookups.
  441. # Basically, the software tries user+foo and .forward+foo before
  442. # trying user and .forward.
  443. #
  444. #recipient_delimiter = +
  445.  
  446. # DELIVERY TO MAILBOX
  447. #
  448. # The home_mailbox parameter specifies the optional pathname of a
  449. # mailbox file relative to a user's home directory. The default
  450. # mailbox file is /var/spool/mail/user or /var/mail/user.  Specify
  451. # "Maildir/" for qmail-style delivery (the / is required).
  452. #
  453. #home_mailbox = Mailbox
  454. home_mailbox = Maildir/
  455.  
  456. # The mail_spool_directory parameter specifies the directory where
  457. # UNIX-style mailboxes are kept. The default setting depends on the
  458. # system type.
  459. #
  460. #mail_spool_directory = /var/mail
  461. #mail_spool_directory = /var/spool/mail
  462.  
  463. # The mailbox_command parameter specifies the optional external
  464. # command to use instead of mailbox delivery. The command is run as
  465. # the recipient with proper HOME, SHELL and LOGNAME environment settings.
  466. # Exception:  delivery for root is done as $default_user.
  467. #
  468. # Other environment variables of interest: USER (recipient username),
  469. # EXTENSION (address extension), DOMAIN (domain part of address),
  470. # and LOCAL (the address localpart).
  471. #
  472. # Unlike other Postfix configuration parameters, the mailbox_command
  473. # parameter is not subjected to $parameter substitutions. This is to
  474. # make it easier to specify shell syntax (see example below).
  475. #
  476. # Avoid shell meta characters because they will force Postfix to run
  477. # an expensive shell process. Procmail alone is expensive enough.
  478. #
  479. # IF YOU USE THIS TO DELIVER MAIL SYSTEM-WIDE, YOU MUST SET UP AN
  480. # ALIAS THAT FORWARDS MAIL FOR ROOT TO A REAL USER.
  481. #
  482. #mailbox_command = /usr/bin/procmail
  483. #mailbox_command = /usr/bin/procmail -a "$EXTENSION"
  484.  
  485. # The mailbox_transport specifies the optional transport in master.cf
  486. # to use after processing aliases and .forward files. This parameter
  487. # has precedence over the mailbox_command, fallback_transport and
  488. # luser_relay parameters.
  489. #
  490. # Specify a string of the form transport:nexthop, where transport is
  491. # the name of a mail delivery transport defined in master.cf.  The
  492. # :nexthop part is optional. For more details see the sample transport
  493. # configuration file.
  494. #
  495. # NOTE: if you use this feature for accounts not in the UNIX password
  496. # file, then you must update the "local_recipient_maps" setting in
  497. # the main.cf file, otherwise the SMTP server will reject mail for    
  498. # non-UNIX accounts with "User unknown in local recipient table".
  499. #
  500. #mailbox_transport = lmtp:unix:/file/name
  501. #mailbox_transport = cyrus
  502.  
  503. # The fallback_transport specifies the optional transport in master.cf
  504. # to use for recipients that are not found in the UNIX passwd database.
  505. # This parameter has precedence over the luser_relay parameter.
  506. #
  507. # Specify a string of the form transport:nexthop, where transport is
  508. # the name of a mail delivery transport defined in master.cf.  The
  509. # :nexthop part is optional. For more details see the sample transport
  510. # configuration file.
  511. #
  512. # NOTE: if you use this feature for accounts not in the UNIX password
  513. # file, then you must update the "local_recipient_maps" setting in
  514. # the main.cf file, otherwise the SMTP server will reject mail for    
  515. # non-UNIX accounts with "User unknown in local recipient table".
  516. #
  517. #fallback_transport = lmtp:unix:/file/name
  518. #fallback_transport = cyrus
  519. #fallback_transport =
  520.  
  521. # The luser_relay parameter specifies an optional destination address
  522. # for unknown recipients.  By default, mail for unknown@$mydestination,
  523. # unknown@[$inet_interfaces] or unknown@[$proxy_interfaces] is returned
  524. # as undeliverable.
  525. #
  526. # The following expansions are done on luser_relay: $user (recipient
  527. # username), $shell (recipient shell), $home (recipient home directory),
  528. # $recipient (full recipient address), $extension (recipient address
  529. # extension), $domain (recipient domain), $local (entire recipient
  530. # localpart), $recipient_delimiter. Specify ${name?value} or
  531. # ${name:value} to expand value only when $name does (does not) exist.
  532. #
  533. # luser_relay works only for the default Postfix local delivery agent.
  534. #
  535. # NOTE: if you use this feature for accounts not in the UNIX password
  536. # file, then you must specify "local_recipient_maps =" (i.e. empty) in
  537. # the main.cf file, otherwise the SMTP server will reject mail for    
  538. # non-UNIX accounts with "User unknown in local recipient table".
  539. #
  540. #luser_relay = $user@other.host
  541. #luser_relay = $local@other.host
  542. #luser_relay = admin+$local
  543.  
  544. # JUNK MAIL CONTROLS
  545. #
  546. # The controls listed here are only a very small subset. The file
  547. # SMTPD_ACCESS_README provides an overview.
  548.  
  549. # The header_checks parameter specifies an optional table with patterns
  550. # that each logical message header is matched against, including
  551. # headers that span multiple physical lines.
  552. #
  553. # By default, these patterns also apply to MIME headers and to the
  554. # headers of attached messages. With older Postfix versions, MIME and
  555. # attached message headers were treated as body text.
  556. #
  557. # For details, see "man header_checks".
  558. #
  559. header_checks = regexp:/etc/postfix/header_checks
  560. body_checks = regexp:/etc/postfix/body_checks
  561. # FAST ETRN SERVICE
  562. #
  563. # Postfix maintains per-destination logfiles with information about
  564. # deferred mail, so that mail can be flushed quickly with the SMTP
  565. # "ETRN domain.tld" command, or by executing "sendmail -qRdomain.tld".
  566. # See the ETRN_README document for a detailed description.
  567. #
  568. # The fast_flush_domains parameter controls what destinations are
  569. # eligible for this service. By default, they are all domains that
  570. # this server is willing to relay mail to.
  571. #
  572. #fast_flush_domains = $relay_domains
  573.  
  574. # SHOW SOFTWARE VERSION OR NOT
  575. #
  576. # The smtpd_banner parameter specifies the text that follows the 220
  577. # code in the SMTP server's greeting banner. Some people like to see
  578. # the mail version advertised. By default, Postfix shows no version.
  579. #
  580. # You MUST specify $myhostname at the start of the text. That is an
  581. # RFC requirement. Postfix itself does not care.
  582. #
  583. #smtpd_banner = $myhostname ESMTP $mail_name
  584. #smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
  585. #smtpd_banner = $myhostname ESMTP $mail_name (@@DISTRO@@)
  586. smtpd_banner = $myhostname ESMTP
  587.  
  588. # PARALLEL DELIVERY TO THE SAME DESTINATION
  589. #
  590. # How many parallel deliveries to the same user or domain? With local
  591. # delivery, it does not make sense to do massively parallel delivery
  592. # to the same user, because mailbox updates must happen sequentially,
  593. # and expensive pipelines in .forward files can cause disasters when
  594. # too many are run at the same time. With SMTP deliveries, 10
  595. # simultaneous connections to the same domain could be sufficient to
  596. # raise eyebrows.
  597. #
  598. # Each message delivery transport has its XXX_destination_concurrency_limit
  599. # parameter.  The default is $default_destination_concurrency_limit for
  600. # most delivery transports. For the local delivery agent the default is 2.
  601.  
  602. #local_destination_concurrency_limit = 2
  603. #default_destination_concurrency_limit = 20
  604.  
  605. # DEBUGGING CONTROL
  606. #
  607. # The debug_peer_level parameter specifies the increment in verbose
  608. # logging level when an SMTP client or server host name or address
  609. # matches a pattern in the debug_peer_list parameter.
  610. #
  611. #debug_peer_level = 2
  612.  
  613. # The debug_peer_list parameter specifies an optional list of domain
  614. # or network patterns, /file/name patterns or type:name tables. When
  615. # an SMTP client or server host name or address matches a pattern,
  616. # increase the verbose logging level by the amount specified in the
  617. # debug_peer_level parameter.
  618. #
  619. #debug_peer_list = 127.0.0.1
  620. #debug_peer_list = some.domain
  621.  
  622. # The debugger_command specifies the external command that is executed
  623. # when a Postfix daemon program is run with the -D option.
  624. #
  625. # Use "command .. & sleep 5" so that the debugger can attach before
  626. # the process marches on. If you use an X-based debugger, be sure to
  627. # set up your XAUTHORITY environment variable before starting Postfix.
  628. #
  629. debugger_command =
  630.          PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
  631.          ddd $daemon_directory/$process_name $process_id & sleep 5
  632.  
  633. # If you can't use X, use this to capture the call stack when a
  634. # daemon crashes. The result is in a file in the configuration
  635. # directory, and is named after the process name and the process ID.
  636. #
  637. # debugger_command =
  638. #       PATH=/bin:/usr/bin:/usr/local/bin; export PATH; (echo cont;
  639. #       echo where) | gdb $daemon_directory/$process_name $process_id 2>&1
  640. #       >$config_directory/$process_name.$process_id.log & sleep 5
  641. #
  642. # Another possibility is to run gdb under a detached screen session.
  643. # To attach to the screen sesssion, su root and run "screen -r
  644. # <id_string>" where <id_string> uniquely matches one of the detached
  645. # sessions (from "screen -list").
  646. #
  647. # debugger_command =
  648. #       PATH=/bin:/usr/bin:/sbin:/usr/sbin; export PATH; screen
  649. #       -dmS $process_name gdb $daemon_directory/$process_name
  650. #       $process_id & sleep 1
  651.  
  652. # INSTALL-TIME CONFIGURATION INFORMATION
  653. #
  654. # The following parameters are used when installing a new Postfix version.
  655. #
  656. # sendmail_path: The full pathname of the Postfix sendmail command.
  657. # This is the Sendmail-compatible mail posting interface.
  658. #
  659. sendmail_path =/usr/sbin/postfix
  660.  
  661. # newaliases_path: The full pathname of the Postfix newaliases command.
  662. # This is the Sendmail-compatible command to build alias databases.
  663. #
  664. newaliases_path =/usr/bin/newaliases
  665.  
  666. # mailq_path: The full pathname of the Postfix mailq command.  This
  667. # is the Sendmail-compatible mail queue listing command.
  668. #
  669. mailq_path = /usr/bin/mailq
  670.  
  671. # setgid_group: The group for mail submission and queue management
  672. # commands.  This must be a group name with a numerical group ID that
  673. # is not shared with other accounts, not even with the Postfix account.
  674. #
  675. setgid_group = postdrop
  676.  
  677. # html_directory: The location of the Postfix HTML documentation.
  678. #
  679. #html_directory =
  680.  
  681. # manpage_directory: The location of the Postfix on-line manual pages.
  682. #
  683. #manpage_directory =
  684.  
  685. # sample_directory: The location of the Postfix sample configuration files.
  686. # This parameter is obsolete as of Postfix 2.1.
  687. #
  688. #sample_directory =
  689.  
  690. # readme_directory: The location of the Postfix README files.
  691. #
  692. #readme_directory =
  693.  
  694. # add at the lasdt line: limit an email size 10M
  695. message_size_limit = 10485760
  696. # limit mailbox 1G
  697. mailbox_size_limit = 0
  698.  
  699. # for SMTP-Auth settings
  700. smtpd_sasl_type = dovecot
  701. smtpd_sasl_path = private/auth-client
  702. smtpd_sasl_auth_enable = yes
  703. smtpd_sasl_security_options = noanonymous
  704. smtpd_sasl_local_domain =
  705. smtpd_client_restrictions = permit_mynetworks,reject_unknown_client,permit
  706. smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
  707. relayhost =
  708. recipient_delimiter = +
  709. inet_protocols = ipv4
  710. broken_sasl_auth_clients = yes
  711. smtpd_tls_auth_only = no
  712. smtp_use_tls = yes
  713. smtpd_use_tls = yes
  714. smtp_tls_note_starttls_offer = yes
  715. smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
  716. smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
  717. smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
  718. smtpd_tls_loglevel = 1
  719. smtpd_tls_received_header = yes
  720. smtpd_tls_session_cache_timeout = 3600s
  721. tls_random_source = dev:/dev/urandom
  722. mailbox_command =
  723.  
  724.  
  725. And my master file:
  726.  
  727.  
  728. #
  729. # Postfix master process configuration file.  For details on the format
  730. # of the file, see the master(5) manual page (command: "man 5 master").
  731. #
  732. # Do not forget to execute "postfix reload" after editing this file.
  733. #
  734. # ==========================================================================
  735. # service type  private unpriv  chroot  wakeup  maxproc command + args
  736. #               (yes)   (yes)   (yes)   (never) (100)
  737. # ==========================================================================
  738. smtp      inet  n       -       -       n       -       smtpd
  739. #smtp      inet  n       -       -       -       1       postscreen
  740. #smtpd     pass  -       -       -       -       -       smtpd
  741. #dnsblog   unix  -       -       -       -       0       dnsblog
  742. #tlsproxy  unix  -       -       -       -       0       tlsproxy
  743. #submission inet n       -       -       -       -       smtpd
  744. #  -o smtpd_tls_security_level=encrypt
  745. #  -o smtpd_sasl_auth_enable=yes
  746. #  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  747. #  -o milter_macro_daemon_name=ORIGINATING
  748. #smtps     inet  n       -       -       -       -       smtpd
  749. #  -o smtpd_tls_wrappermode=yes
  750. #  -o smtpd_sasl_auth_enable=yes
  751. #  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  752. #  -o milter_macro_daemon_name=ORIGINATING
  753. #628       inet  n       -       -       -       -       qmqpd
  754. pickup    fifo  n       -       -       60      1       pickup
  755. cleanup   unix  n       -       -       -       0       cleanup
  756. qmgr      fifo  n       -       n       300     1       qmgr
  757. #qmgr     fifo  n       -       -       300     1       oqmgr
  758. tlsmgr    unix  -       -       -       1000?   1       tlsmgr
  759. rewrite   unix  -       -       -       -       -       trivial-rewrite
  760. bounce    unix  -       -       -       -       0       bounce
  761. defer     unix  -       -       -       -       0       bounce
  762. trace     unix  -       -       -       -       0       bounce
  763. verify    unix  -       -       -       -       1       verify
  764. flush     unix  n       -       -       1000?   0       flush
  765. proxymap  unix  -       -       n       -       -       proxymap
  766. proxywrite unix -       -       n       -       1       proxymap
  767. smtp      unix  -       -       -       -       -       smtp
  768. # When relaying mail as backup MX, disable fallback_relay to avoid MX loops
  769. relay     unix  -       -       -       -       -       smtp
  770.         -o smtp_fallback_relay=
  771. #       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
  772. showq     unix  n       -       -       -       -       showq
  773. error     unix  -       -       -       -       -       error
  774. retry     unix  -       -       -       -       -       error
  775. discard   unix  -       -       -       -       -       discard
  776. local     unix  -       n       n       -       -       local
  777. virtual   unix  -       n       n       -       -       virtual
  778. lmtp      unix  -       -       -       -       -       lmtp
  779. anvil     unix  -       -       -       -       1       anvil
  780. scache    unix  -       -       -       -       1       scache
  781. #
  782. # ====================================================================
  783. # Interfaces to non-Postfix software. Be sure to examine the manual
  784. # pages of the non-Postfix software to find out what options it wants.
  785. #
  786. # Many of the following services use the Postfix pipe(8) delivery
  787. # agent.  See the pipe(8) man page for information about ${recipient}
  788. # and other message envelope options.
  789. # ====================================================================
  790. #
  791. # maildrop. See the Postfix MAILDROP_README file for details.
  792. # Also specify in main.cf: maildrop_destination_recipient_limit=1
  793. #
  794. maildrop  unix  -       n       n       -       -       pipe
  795.   flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
  796. #
  797. # ====================================================================
  798. #
  799. # Recent Cyrus versions can use the existing "lmtp" master.cf entry.
  800. #
  801. # Specify in cyrus.conf:
  802. #   lmtp    cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
  803. #
  804. # Specify in main.cf one or more of the following:
  805. #  mailbox_transport = lmtp:inet:localhost
  806. #  virtual_transport = lmtp:inet:localhost
  807. #
  808. # ====================================================================
  809. #
  810. # Cyrus 2.1.5 (Amos Gouaux)
  811. # Also specify in main.cf: cyrus_destination_recipient_limit=1
  812. #
  813. #cyrus     unix  -       n       n       -       -       pipe
  814. #  user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
  815. #
  816. # ====================================================================
  817. # Old example of delivery via Cyrus.
  818. #
  819. #old-cyrus unix  -       n       n       -       -       pipe
  820. #  flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
  821. #
  822. # ====================================================================
  823. #
  824. # See the Postfix UUCP_README file for configuration details.
  825. #
  826. uucp      unix  -       n       n       -       -       pipe
  827.   flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
  828. #
  829. # Other external delivery methods.
  830. #
  831. ifmail    unix  -       n       n       -       -       pipe
  832.   flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
  833. bsmtp     unix  -       n       n       -       -       pipe
  834.   flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
  835. scalemail-backend unix  -       n       n       -       2       pipe
  836.   flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
  837. mailman   unix  -       n       n       -       -       pipe
  838.   flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  839.   ${nexthop} ${user}
  840.  
  841.  
  842. And i got the dovecot file to:
  843.  
  844. ## Dovecot configuration file
  845.  
  846. # If you're in a hurry, see http://wiki.dovecot.org/QuickConfiguration
  847.  
  848. # "dovecot -n" command gives a clean output of the changed settings. Use it
  849. # instead of copy&pasting this file when posting to the Dovecot mailing list.
  850.  
  851. # '#' character and everything after it is treated as comments. Extra spaces
  852. # and tabs are ignored. If you want to use either of these explicitly, put the
  853. # value inside quotes, eg.: key = "# char and trailing whitespace  "
  854.  
  855. # Default values are shown for each setting, it's not required to uncomment
  856. # those. These are exceptions to this though: No sections (e.g. namespace {})
  857. # or plugin settings are added by default, they're listed only as examples.
  858. # Paths are also just examples with the real defaults being based on configure
  859. # options. The paths listed here are for configure --prefix=/usr
  860. # --sysconfdir=/etc --localstatedir=/var --with-ssldir=/etc/ssl
  861.  
  862. # Base directory where to store runtime data.
  863. #base_dir = /var/run/dovecot
  864.  
  865. # Protocols we want to be serving: imap imaps pop3 pop3s managesieve
  866. # If you only want to use dovecot-auth, you can set this to "none".
  867. #protocols = imap imaps
  868. protocols = imap imaps pop3 pop3s
  869.  
  870. # A space separated list of IP or host addresses where to listen in for
  871. # connections. "*" listens in all IPv4 interfaces. "[::]" listens in all IPv6
  872. # interfaces. Use "*, [::]" for listening both IPv4 and IPv6.
  873. #
  874. # If you want to specify ports for each service, you will need to configure
  875. # these settings inside the protocol imap/pop3/managesieve { ... } section,
  876. # so you can specify different ports for IMAP/POP3/MANAGESIEVE. For example:
  877. #   protocol imap {
  878. #     listen = *:10143
  879. #     ssl_listen = *:10943
  880. #     ..
  881. #   }
  882. #   protocol pop3 {
  883. #     listen = *:10100
  884. #     ..
  885. #   }
  886. #   protocol managesieve {
  887. #     listen = *:12000
  888. #     ..
  889. #   }
  890. #listen = *
  891.  
  892. # Disable LOGIN command and all other plaintext authentications unless
  893. # SSL/TLS is used (LOGINDISABLED capability). Note that if the remote IP
  894. # matches the local IP (ie. you're connecting from the same computer), the
  895. # connection is considered secure and plaintext authentication is allowed.
  896. disable_plaintext_auth = no
  897.  
  898. # Should all IMAP and POP3 processes be killed when Dovecot master process
  899. # shuts down. Setting this to "no" means that Dovecot can be upgraded without
  900. # forcing existing client connections to close (although that could also be
  901. # a problem if the upgrade is eg. because of a security fix). This however
  902. # means that after master process has died, the client processes can't write
  903. # to log files anymore.
  904. #shutdown_clients = yes
  905.  
  906. ##
  907. ## Logging
  908. ##
  909.  
  910. # Log file to use for error messages, instead of sending them to syslog.
  911. # /dev/stderr can be used to log into stderr.
  912. #log_path =
  913.  
  914. # Log file to use for informational and debug messages.
  915. # Default is the same as log_path.
  916. #info_log_path =
  917.  
  918. # Prefix for each line written to log file. % codes are in strftime(3)
  919. # format.
  920. #log_timestamp = "%b %d %H:%M:%S "
  921. log_timestamp = "%Y-%m-%d %H:%M:%S "
  922.  
  923. # Syslog facility to use if you're logging to syslog. Usually if you don't
  924. # want to use "mail", you'll use local0..local7. Also other standard
  925. # facilities are supported.
  926. #syslog_facility = mail
  927.  
  928. ##
  929. ## SSL settings
  930. ##
  931.  
  932. # IP or host address where to listen in for SSL connections. Remember to also
  933. # add imaps and/or pop3s to protocols setting. Defaults to same as "listen"
  934. # setting if not specified.
  935. #ssl_listen =
  936.  
  937. # SSL/TLS support: yes, no, required. </usr/share/doc/dovecot-common/wiki/SSL.txt>
  938. ssl = no
  939.  
  940. # PEM encoded X.509 SSL/TLS certificate and private key. They're opened before
  941. # dropping root privileges, so keep the key file unreadable by anyone but
  942. # root.
  943. #ssl_cert_file = /etc/ssl/certs/dovecot.pem
  944. #ssl_key_file = /etc/ssl/private/dovecot.pem
  945.  
  946. # If key file is password protected, give the password here. Alternatively
  947. # give it when starting dovecot with -p parameter. Since this file is often
  948. # world-readable, you may want to place this setting instead to a different
  949. # root owned 0600 file by using !include_try <path>.
  950. #ssl_key_password =
  951.  
  952. # File containing trusted SSL certificate authorities. Set this only if you
  953. # intend to use ssl_verify_client_cert=yes. The CAfile should contain the
  954. # CA-certificate(s) followed by the matching CRL(s).
  955. #ssl_ca_file =
  956.  
  957. # Request client to send a certificate. If you also want to require it, set
  958. # ssl_require_client_cert=yes in auth section.
  959. #ssl_verify_client_cert = no
  960.  
  961. # Which field from certificate to use for username. commonName and
  962. # x500UniqueIdentifier are the usual choices. You'll also need to set
  963. # ssl_username_from_cert=yes.
  964. #ssl_cert_username_field = commonName
  965.  
  966. # How often to regenerate the SSL parameters file. Generation is quite CPU
  967. # intensive operation. The value is in hours, 0 disables regeneration
  968. # entirely.
  969. #ssl_parameters_regenerate = 168
  970.  
  971. # SSL ciphers to use
  972. #ssl_cipher_list = ALL:!LOW:!SSLv2
  973.  
  974. # Show protocol level SSL errors.
  975. #verbose_ssl = no
  976.  
  977. ##
  978. ## Login processes
  979. ##
  980.  
  981. # </usr/share/doc/dovecot-common/wiki/LoginProcess.txt>
  982.  
  983. # Directory where authentication process places authentication UNIX sockets
  984. # which login needs to be able to connect to. The sockets are created when
  985. # running as root, so you don't have to worry about permissions. Note that
  986. # everything in this directory is deleted when Dovecot is started.
  987. #login_dir = /var/run/dovecot/login
  988.  
  989. # chroot login process to the login_dir. Only reason not to do this is if you
  990. # wish to run the whole Dovecot without roots. </usr/share/doc/dovecot-common/wiki/Rootless.txt>
  991. #login_chroot = yes
  992.  
  993. # User to use for the login process. Create a completely new user for this,
  994. # and don't use it anywhere else. The user must also belong to a group where
  995. # only it has access, it's used to control access for authentication process.
  996. # Note that this user is NOT used to access mails. </usr/share/doc/dovecot-common/wiki/UserIds.txt>
  997. #login_user = dovecot
  998.  
  999. # Set max. process size in megabytes. If you don't use
  1000. # login_process_per_connection you might need to grow this.
  1001. #login_process_size = 64
  1002.  
  1003. # Should each login be processed in it's own process (yes), or should one
  1004. # login process be allowed to process multiple connections (no)? Yes is more
  1005. # secure, espcially with SSL/TLS enabled. No is faster since there's no need
  1006. # to create processes all the time.
  1007. #login_process_per_connection = yes
  1008.  
  1009. # Number of login processes to keep for listening new connections.
  1010. #login_processes_count = 3
  1011.  
  1012. # Maximum number of login processes to create. The listening process count
  1013. # usually stays at login_processes_count, but when multiple users start logging
  1014. # in at the same time more extra processes are created. To prevent fork-bombing
  1015. # we check only once in a second if new processes should be created - if all
  1016. # of them are used at the time, we double their amount until the limit set by
  1017. # this setting is reached.
  1018. #login_max_processes_count = 128
  1019.  
  1020. # Maximum number of connections allowed per each login process. This setting
  1021. # is used only if login_process_per_connection=no. Once the limit is reached,
  1022. # the process notifies master so that it can create a new login process.
  1023. #login_max_connections = 256
  1024.  
  1025. # Greeting message for clients.
  1026. #login_greeting = Dovecot ready.
  1027.  
  1028. # Space separated list of trusted network ranges. Connections from these
  1029. # IPs are allowed to override their IP addresses and ports (for logging and
  1030. # for authentication checks). disable_plaintext_auth is also ignored for
  1031. # these networks. Typically you'd specify your IMAP proxy servers here.
  1032. #login_trusted_networks =
  1033.  
  1034. # Space-separated list of elements we want to log. The elements which have
  1035. # a non-empty variable value are joined together to form a comma-separated
  1036. # string.
  1037. #login_log_format_elements = user=<%u> method=%m rip=%r lip=%l %c
  1038.  
  1039. # Login log format. %$ contains login_log_format_elements string, %s contains
  1040. # the data we want to log.
  1041. #login_log_format = %$: %s
  1042.  
  1043. ##
  1044. ## Mailbox locations and namespaces
  1045. ##
  1046.  
  1047. # Location for users' mailboxes. This is the same as the old default_mail_env
  1048. # setting. The default is empty, which means that Dovecot tries to find the
  1049. # mailboxes automatically. This won't work if the user doesn't have any mail
  1050. # yet, so you should explicitly tell Dovecot the full location.
  1051. #
  1052. # If you're using mbox, giving a path to the INBOX file (eg. /var/mail/%u)
  1053. # isn't enough. You'll also need to tell Dovecot where the other mailboxes are
  1054. # kept. This is called the "root mail directory", and it must be the first
  1055. # path given in the mail_location setting.
  1056. #
  1057. # There are a few special variables you can use, eg.:
  1058. #
  1059. #   %u - username
  1060. #   %n - user part in user@domain, same as %u if there's no domain
  1061. #   %d - domain part in user@domain, empty if there's no domain
  1062. #   %h - home directory
  1063. #
  1064. # See </usr/share/doc/dovecot-common/wiki/Variables.txt> for full list.
  1065. # Some examples:
  1066. #
  1067. #   mail_location = maildir:~/Maildir
  1068. #   mail_location = mbox:~/mail:INBOX=/var/mail/%u
  1069. #   mail_location = mbox:/var/mail/%d/%1n/%n:INDEX=/var/indexes/%d/%1n/%n
  1070. #
  1071. # </usr/share/doc/dovecot-common/wiki/MailLocation.txt>
  1072. #
  1073. mail_location = maildir:~/Maildir
  1074.  
  1075. # If you need to set multiple mailbox locations or want to change default
  1076. # namespace settings, you can do it by defining namespace sections.
  1077. #
  1078. # You can have private, shared and public namespaces. Private namespaces
  1079. # are for user's personal mails. Shared namespaces are for accessing other
  1080. # users' mailboxes that have been shared. Public namespaces are for shared
  1081. # mailboxes that are managed by sysadmin. If you create any shared or public
  1082. # namespaces you'll typically want to enable ACL plugin also, otherwise all
  1083. # users can access all the shared mailboxes, assuming they have permissions
  1084. # on filesystem level to do so.
  1085. #
  1086. # REMEMBER: If you add any namespaces, the default namespace must be added
  1087. # explicitly, ie. mail_location does nothing unless you have a namespace
  1088. # without a location setting. Default namespace is simply done by having a
  1089. # namespace with empty prefix.
  1090. namespace private {
  1091.    # Hierarchy separator to use. You should use the same separator for all
  1092.    # namespaces or some clients get confused. '/' is usually a good one.
  1093.    # The default however depends on the underlying mail storage format.
  1094.    #separator =
  1095.  
  1096.    # Prefix required to access this namespace. This needs to be different for
  1097.    # all namespaces. For example "Public/".
  1098.    prefix = INBOX.
  1099.  
  1100.    # Physical location of the mailbox. This is in same format as
  1101.    # mail_location, which is also the default for it.
  1102.    #location =
  1103.  
  1104.    # There can be only one INBOX, and this setting defines which namespace
  1105.    # has it.
  1106.    inbox = yes
  1107.  
  1108.    # If namespace is hidden, it's not advertised to clients via NAMESPACE
  1109.    # extension. You'll most likely also want to set list=no. This is mostly
  1110.    # useful when converting from another server with different namespaces which
  1111.    # you want to deprecate but still keep working. For example you can create
  1112.    # hidden namespaces with prefixes "~/mail/", "~%u/mail/" and "mail/".
  1113.    #hidden = yes
  1114.  
  1115.    # Show the mailboxes under this namespace with LIST command. This makes the
  1116.    # namespace visible for clients that don't support NAMESPACE extension.
  1117.    # "children" value lists child mailboxes, but hides the namespace prefix.
  1118.    #list = yes
  1119.  
  1120.    # Namespace handles its own subscriptions. If set to "no", the parent
  1121.    # namespace handles them (empty prefix should always have this as "yes")
  1122.    #subscriptions = yes
  1123. }
  1124.  
  1125. # Example shared namespace configuration
  1126. #namespace shared {
  1127.    #separator = /
  1128.  
  1129.    # Mailboxes are visible under "shared/user@domain/"
  1130.    # %%n, %%d and %%u are expanded to the destination user.
  1131.    #prefix = shared/%%u/
  1132.  
  1133.    # Mail location for other users' mailboxes. Note that %variables and ~/
  1134.    # expands to the logged in user's data. %%n, %%d, %%u and %%h expand to the
  1135.    # destination user's data.
  1136.    #location = maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u
  1137.  
  1138.    # Use the default namespace for saving subscriptions.
  1139.    #subscriptions = no
  1140.  
  1141.    # List the shared/ namespace only if there are visible shared mailboxes.
  1142.    #list = children
  1143. #}
  1144.  
  1145. # System user and group used to access mails. If you use multiple, userdb
  1146. # can override these by returning uid or gid fields. You can use either numbers
  1147. # or names. </usr/share/doc/dovecot-common/wiki/UserIds.txt>
  1148. #mail_uid =
  1149. #mail_gid =
  1150.  
  1151. # Group to enable temporarily for privileged operations. Currently this is
  1152. # used only with INBOX when either its initial creation or dotlocking fails.
  1153. # Typically this is set to "mail" to give access to /var/mail.
  1154. #mail_privileged_group =
  1155. mail_privileged_group = mail
  1156.  
  1157. # Grant access to these supplementary groups for mail processes. Typically
  1158. # these are used to set up access to shared mailboxes. Note that it may be
  1159. # dangerous to set these if users can create symlinks (e.g. if "mail" group is
  1160. # set here, ln -s /var/mail ~/mail/var could allow a user to delete others'
  1161. # mailboxes, or ln -s /secret/shared/box ~/mail/mybox would allow reading it).
  1162. #mail_access_groups =
  1163.  
  1164. # Allow full filesystem access to clients. There's no access checks other than
  1165. # what the operating system does for the active UID/GID. It works with both
  1166. # maildir and mboxes, allowing you to prefix mailboxes names with eg. /path/
  1167. # or ~user/.
  1168. #mail_full_filesystem_access = no
  1169.  
  1170. ##
  1171. ## Mail processes
  1172. ##
  1173.  
  1174. # Enable mail process debugging. This can help you figure out why Dovecot
  1175. # isn't finding your mails.
  1176. #mail_debug = no
  1177.  
  1178. # Log prefix for mail processes. See </usr/share/doc/dovecot-common/wiki/Variables.txt>
  1179. # for list of possible variables you can use.
  1180. #mail_log_prefix = "%Us(%u): "
  1181.  
  1182. # Max. number of lines a mail process is allowed to log per second before it's
  1183. # throttled. 0 means unlimited. Typically there's no need to change this
  1184. # unless you're using mail_log plugin, which may log a lot. This setting is
  1185. # ignored while mail_debug=yes to avoid pointless throttling.
  1186. #mail_log_max_lines_per_sec = 10
  1187.  
  1188. # Don't use mmap() at all. This is required if you store indexes to shared
  1189. # filesystems (NFS or clustered filesystem).
  1190. #mmap_disable = no
  1191.  
  1192. # Rely on O_EXCL to work when creating dotlock files. NFS supports O_EXCL
  1193. # since version 3, so this should be safe to use nowadays by default.
  1194. #dotlock_use_excl = yes
  1195.  
  1196. # Don't use fsync() or fdatasync() calls. This makes the performance better
  1197. # at the cost of potential data loss if the server (or the file server)
  1198. # goes down.
  1199. #fsync_disable = no
  1200.  
  1201. # Mail storage exists in NFS. Set this to yes to make Dovecot flush NFS caches
  1202. # whenever needed. If you're using only a single mail server this isn't needed.
  1203. #mail_nfs_storage = no
  1204. # Mail index files also exist in NFS. Setting this to yes requires
  1205. # mmap_disable=yes and fsync_disable=no.
  1206. #mail_nfs_index = no
  1207.  
  1208. # Locking method for index files. Alternatives are fcntl, flock and dotlock.
  1209. # Dotlocking uses some tricks which may create more disk I/O than other locking
  1210. # methods. NFS users: flock doesn't work, remember to change mmap_disable.
  1211. #lock_method = fcntl
  1212.  
  1213. # Drop all privileges before exec()ing the mail process. This is mostly
  1214. # meant for debugging, otherwise you don't get core dumps. It could be a small
  1215. # security risk if you use single UID for multiple users, as the users could
  1216. # ptrace() each others processes then.
  1217. #mail_drop_priv_before_exec = no
  1218.  
  1219. # Show more verbose process titles (in ps). Currently shows user name and
  1220. # IP address. Useful for seeing who are actually using the IMAP processes
  1221. # (eg. shared mailboxes or if same uid is used for multiple accounts).
  1222. #verbose_proctitle = no
  1223.  
  1224. # Valid UID range for users, defaults to 500 and above. This is mostly
  1225. # to make sure that users can't log in as daemons or other system users.
  1226. # Note that denying root logins is hardcoded to dovecot binary and can't
  1227. # be done even if first_valid_uid is set to 0.
  1228. #first_valid_uid = 500
  1229. #last_valid_uid = 0
  1230.  
  1231. # Valid GID range for users, defaults to non-root/wheel. Users having
  1232. # non-valid GID as primary group ID aren't allowed to log in. If user
  1233. # belongs to supplementary groups with non-valid GIDs, those groups are
  1234. # not set.
  1235. #first_valid_gid = 1
  1236. #last_valid_gid = 0
  1237.  
  1238. # Maximum number of running mail processes. When this limit is reached,
  1239. # new users aren't allowed to log in.
  1240. #max_mail_processes = 512
  1241.  
  1242. # Set max. process size in megabytes. Most of the memory goes to mmap()ing
  1243. # files, so it shouldn't harm much even if this limit is set pretty high.
  1244. #mail_process_size = 256
  1245.  
  1246. # Maximum allowed length for mail keyword name. It's only forced when trying
  1247. # to create new keywords.
  1248. #mail_max_keyword_length = 50
  1249.  
  1250. # ':' separated list of directories under which chrooting is allowed for mail
  1251. # processes (ie. /var/mail will allow chrooting to /var/mail/foo/bar too).
  1252. # This setting doesn't affect login_chroot, mail_chroot or auth chroot
  1253. # settings. If this setting is empty, "/./" in home dirs are ignored.
  1254. # WARNING: Never add directories here which local users can modify, that
  1255. # may lead to root exploit. Usually this should be done only if you don't
  1256. # allow shell access for users. </usr/share/doc/dovecot-common/wiki/Chrooting.txt>
  1257. #valid_chroot_dirs =
  1258.  
  1259. # Default chroot directory for mail processes. This can be overridden for
  1260. # specific users in user database by giving /./ in user's home directory
  1261. # (eg. /home/./user chroots into /home). Note that usually there is no real
  1262. # need to do chrooting, Dovecot doesn't allow users to access files outside
  1263. # their mail directory anyway. If your home directories are prefixed with
  1264. # the chroot directory, append "/." to mail_chroot. </usr/share/doc/dovecot-common/wiki/Chrooting.txt>
  1265. #mail_chroot =
  1266.  
  1267. ##
  1268. ## Mailbox handling optimizations
  1269. ##
  1270.  
  1271. # The minimum number of mails in a mailbox before updates are done to cache
  1272. # file. This allows optimizing Dovecot's behavior to do less disk writes at
  1273. # the cost of more disk reads.
  1274. #mail_cache_min_mail_count = 0
  1275.  
  1276. # When IDLE command is running, mailbox is checked once in a while to see if
  1277. # there are any new mails or other changes. This setting defines the minimum
  1278. # time in seconds to wait between those checks. Dovecot can also use dnotify,
  1279. # inotify and kqueue to find out immediately when changes occur.
  1280. #mailbox_idle_check_interval = 30
  1281.  
  1282. # Save mails with CR+LF instead of plain LF. This makes sending those mails
  1283. # take less CPU, especially with sendfile() syscall with Linux and FreeBSD.
  1284. # But it also creates a bit more disk I/O which may just make it slower.
  1285. # Also note that if other software reads the mboxes/maildirs, they may handle
  1286. # the extra CRs wrong and cause problems.
  1287. #mail_save_crlf = no
  1288.  
  1289. ##
  1290. ## Maildir-specific settings
  1291. ##
  1292.  
  1293. # By default LIST command returns all entries in maildir beginning with a dot.
  1294. # Enabling this option makes Dovecot return only entries which are directories.
  1295. # This is done by stat()ing each entry, so it causes more disk I/O.
  1296. # (For systems setting struct dirent->d_type, this check is free and it's
  1297. # done always regardless of this setting)
  1298. #maildir_stat_dirs = no
  1299.  
  1300. # When copying a message, do it with hard links whenever possible. This makes
  1301. # the performance much better, and it's unlikely to have any side effects.
  1302. #maildir_copy_with_hardlinks = yes
  1303.  
  1304. # When copying a message, try to preserve the base filename. Only if the
  1305. # destination mailbox already contains the same name (ie. the mail is being
  1306. # copied there twice), a new name is given. The destination filename check is
  1307. # done only by looking at dovecot-uidlist file, so if something outside
  1308. # Dovecot does similar filename preserving copies, you may run into problems.
  1309. # NOTE: This setting requires maildir_copy_with_hardlinks = yes to work.
  1310. #maildir_copy_preserve_filename = no
  1311.  
  1312. # Assume Dovecot is the only MUA accessing Maildir: Scan cur/ directory only
  1313. # when its mtime changes unexpectedly or when we can't find the mail otherwise.
  1314. #maildir_very_dirty_syncs = no
  1315.  
  1316. ##
  1317. ## mbox-specific settings
  1318. ##
  1319.  
  1320. # Which locking methods to use for locking mbox. There are four available:
  1321. #  dotlock: Create <mailbox>.lock file. This is the oldest and most NFS-safe
  1322. #           solution. If you want to use /var/mail/ like directory, the users
  1323. #           will need write access to that directory.
  1324. #  dotlock_try: Same as dotlock, but if it fails because of permissions or
  1325. #               because there isn't enough disk space, just skip it.
  1326. #  fcntl  : Use this if possible. Works with NFS too if lockd is used.
  1327. #  flock  : May not exist in all systems. Doesn't work with NFS.
  1328. #  lockf  : May not exist in all systems. Doesn't work with NFS.
  1329. #
  1330. # You can use multiple locking methods; if you do the order they're declared
  1331. # in is important to avoid deadlocks if other MTAs/MUAs are using multiple
  1332. # locking methods as well. Some operating systems don't allow using some of
  1333. # them simultaneously.
  1334. #
  1335. # The Debian value for mbox_write_locks differs from upstream Dovecot. It is
  1336. # changed to be compliant with Debian Policy (section 11.6) for NFS safety.
  1337. #       Dovecot: mbox_write_locks = dotlock fcntl
  1338. #       Debian:  mbox_write_locks = fcntl dotlock
  1339. #
  1340. #mbox_read_locks = fcntl
  1341. #mbox_write_locks = fcntl dotlock
  1342.  
  1343. # Maximum time in seconds to wait for lock (all of them) before aborting.
  1344. #mbox_lock_timeout = 300
  1345.  
  1346. # If dotlock exists but the mailbox isn't modified in any way, override the
  1347. # lock file after this many seconds.
  1348. #mbox_dotlock_change_timeout = 120
  1349.  
  1350. # When mbox changes unexpectedly we have to fully read it to find out what
  1351. # changed. If the mbox is large this can take a long time. Since the change
  1352. # is usually just a newly appended mail, it'd be faster to simply read the
  1353. # new mails. If this setting is enabled, Dovecot does this but still safely
  1354. # fallbacks to re-reading the whole mbox file whenever something in mbox isn't
  1355. # how it's expected to be. The only real downside to this setting is that if
  1356. # some other MUA changes message flags, Dovecot doesn't notice it immediately.
  1357. # Note that a full sync is done with SELECT, EXAMINE, EXPUNGE and CHECK
  1358. # commands.
  1359. #mbox_dirty_syncs = yes
  1360.  
  1361. # Like mbox_dirty_syncs, but don't do full syncs even with SELECT, EXAMINE,
  1362. # EXPUNGE or CHECK commands. If this is set, mbox_dirty_syncs is ignored.
  1363. #mbox_very_dirty_syncs = no
  1364.  
  1365. # Delay writing mbox headers until doing a full write sync (EXPUNGE and CHECK
  1366. # commands and when closing the mailbox). This is especially useful for POP3
  1367. # where clients often delete all mails. The downside is that our changes
  1368. # aren't immediately visible to other MUAs.
  1369. #mbox_lazy_writes = yes
  1370.  
  1371. # If mbox size is smaller than this (in kilobytes), don't write index files.
  1372. # If an index file already exists it's still read, just not updated.
  1373. #mbox_min_index_size = 0
  1374.  
  1375. ##
  1376. ## dbox-specific settings
  1377. ##
  1378.  
  1379. # Maximum dbox file size in kilobytes until it's rotated.
  1380. #dbox_rotate_size = 2048
  1381.  
  1382. # Minimum dbox file size in kilobytes before it's rotated
  1383. # (overrides dbox_rotate_days)
  1384. #dbox_rotate_min_size = 16
  1385.  
  1386. # Maximum dbox file age in days until it's rotated. Day always begins from
  1387. # midnight, so 1 = today, 2 = yesterday, etc. 0 = check disabled.
  1388. #dbox_rotate_days = 0
  1389.  
  1390. ##
  1391. ## IMAP specific settings
  1392. ##
  1393.  
  1394. protocol imap {
  1395.   # Login executable location.
  1396.   #login_executable = /usr/lib/dovecot/imap-login
  1397.  
  1398.   # IMAP executable location. Changing this allows you to execute other
  1399.   # binaries before the imap process is executed.
  1400.   #
  1401.   # This would write rawlogs into user's ~/dovecot.rawlog/, if it exists:
  1402.   #   mail_executable = /usr/lib/dovecot/rawlog /usr/lib/dovecot/imap
  1403.   # </usr/doc/dovecot-common/wiki/Debugging.Rawlog.txt>
  1404.   #
  1405.   # This would attach gdb into the imap process and write backtraces into
  1406.   # /tmp/gdbhelper.* files:
  1407.   #   mail_executable = /usr/lib/dovecot/gdbhelper /usr/lib/dovecot/imap
  1408.   #
  1409.   #mail_executable = /usr/lib/dovecot/imap
  1410.  
  1411.   # Maximum IMAP command line length in bytes. Some clients generate very long
  1412.   # command lines with huge mailboxes, so you may need to raise this if you get
  1413.   # "Too long argument" or "IMAP command line too large" errors often.
  1414.   #imap_max_line_length = 65536
  1415.  
  1416.   # Maximum number of IMAP connections allowed for a user from each IP address.
  1417.   # NOTE: The username is compared case-sensitively.
  1418.   #mail_max_userip_connections = 10
  1419.  
  1420.   # Support for dynamically loadable plugins. mail_plugins is a space separated
  1421.   # list of plugins to load.
  1422.   #mail_plugins =
  1423.   #mail_plugin_dir = /usr/lib/dovecot/modules/imap
  1424.  
  1425.   # IMAP logout format string:
  1426.   #  %i - total number of bytes read from client
  1427.   #  %o - total number of bytes sent to client
  1428.   #imap_logout_format = bytes=%i/%o
  1429.  
  1430.   # Override the IMAP CAPABILITY response.
  1431.   #imap_capability =
  1432.  
  1433.   # How many seconds to wait between "OK Still here" notifications when
  1434.   # client is IDLEing.
  1435.   #imap_idle_notify_interval = 120
  1436.  
  1437.   # ID field names and values to send to clients. Using * as the value makes
  1438.   # Dovecot use the default value. The following fields have default values
  1439.   # currently: name, version, os, os-version, support-url, support-email.
  1440.   #imap_id_send =
  1441.  
  1442.   # ID fields sent by client to log. * means everything.
  1443.   #imap_id_log =
  1444.  
  1445.   # Workarounds for various client bugs:
  1446.   #   delay-newmail:
  1447.   #     Send EXISTS/RECENT new mail notifications only when replying to NOOP
  1448.   #     and CHECK commands. Some clients ignore them otherwise, for example OSX
  1449.   #     Mail (<v2.1). Outlook Express breaks more badly though, without this it
  1450.   #     may show user "Message no longer in server" errors. Note that OE6 still
  1451.   #     breaks even with this workaround if synchronization is set to
  1452.   #     "Headers Only".
  1453.   #   netscape-eoh:
  1454.   #     Netscape 4.x breaks if message headers don't end with the empty "end of
  1455.   #     headers" line. Normally all messages have this, but setting this
  1456.   #     workaround makes sure that Netscape never breaks by adding the line if
  1457.   #     it doesn't exist. This is done only for FETCH BODY[HEADER.FIELDS..]
  1458.   #     commands. Note that RFC says this shouldn't be done.
  1459.   #   tb-extra-mailbox-sep:
  1460.   #     With mbox storage a mailbox can contain either mails or submailboxes,
  1461.   #     but not both. Thunderbird separates these two by forcing server to
  1462.   #     accept '/' suffix in mailbox names in subscriptions list.
  1463.   # The list is space-separated.
  1464.   #imap_client_workarounds =
  1465. }
  1466.  
  1467. ##
  1468. ## POP3 specific settings
  1469. ##
  1470.  
  1471. protocol pop3 {
  1472.   # Login executable location.
  1473.   #login_executable = /usr/lib/dovecot/pop3-login
  1474.  
  1475.   # POP3 executable location. See IMAP's mail_executable above for examples
  1476.   # how this could be changed.
  1477.   #mail_executable = /usr/lib/dovecot/pop3
  1478.  
  1479.   # Don't try to set mails non-recent or seen with POP3 sessions. This is
  1480.   # mostly intended to reduce disk I/O. With maildir it doesn't move files
  1481.   # from new/ to cur/, with mbox it doesn't write Status-header.
  1482.   #pop3_no_flag_updates = no
  1483.  
  1484.   # Support LAST command which exists in old POP3 specs, but has been removed
  1485.   # from new ones. Some clients still wish to use this though. Enabling this
  1486.   # makes RSET command clear all \Seen flags from messages.
  1487.   #pop3_enable_last = no
  1488.  
  1489.   # If mail has X-UIDL header, use it as the mail's UIDL.
  1490.   #pop3_reuse_xuidl = no
  1491.  
  1492.   # Keep the mailbox locked for the entire POP3 session.
  1493.   #pop3_lock_session = no
  1494.  
  1495.   # POP3 UIDL (unique mail identifier) format to use. You can use following
  1496.   # variables, along with the variable modifiers described in
  1497.   # </usr/share/doc/dovecot-common/wiki/Variables.txt> (e.g. %Uf for the
  1498.   # filename in uppercase)
  1499.   #
  1500.   #  %v - Mailbox's IMAP UIDVALIDITY
  1501.   #  %u - Mail's IMAP UID
  1502.   #  %m - MD5 sum of the mailbox headers in hex (mbox only)
  1503.   #  %f - filename (maildir only)
  1504.   #
  1505.   # If you want UIDL compatibility with other POP3 servers, use:
  1506.   #  UW's ipop3d         : %08Xv%08Xu
  1507.   #  Courier             : %f or %v-%u (both might be used simultaneosly)
  1508.   #  Cyrus (<= 2.1.3)    : %u
  1509.   #  Cyrus (>= 2.1.4)    : %v.%u
  1510.   #  Dovecot v0.99.x     : %v.%u
  1511.   #  tpop3d              : %Mf
  1512.   #
  1513.   # Note that Outlook 2003 seems to have problems with %v.%u format which was
  1514.   # Dovecot's default, so if you're building a new server it would be a good
  1515.   # idea to change this. %08Xu%08Xv should be pretty fail-safe.
  1516.   #
  1517.   pop3_uidl_format = %08Xu%08Xv
  1518.  
  1519.   # Permanently save UIDLs sent to POP3 clients, so pop3_uidl_format changes
  1520.   # won't change those UIDLs. Currently this works only with Maildir.
  1521.   #pop3_save_uidl = no
  1522.  
  1523.   # POP3 logout format string:
  1524.   #  %i - total number of bytes read from client
  1525.   #  %o - total number of bytes sent to client
  1526.   #  %t - number of TOP commands
  1527.   #  %p - number of bytes sent to client as a result of TOP command
  1528.   #  %r - number of RETR commands
  1529.   #  %b - number of bytes sent to client as a result of RETR command
  1530.   #  %d - number of deleted messages
  1531.   #  %m - number of messages (before deletion)
  1532.   #  %s - mailbox size in bytes (before deletion)
  1533.   #pop3_logout_format = top=%t/%p, retr=%r/%b, del=%d/%m, size=%s
  1534.  
  1535.   # Maximum number of POP3 connections allowed for a user from each IP address.
  1536.   # NOTE: The username is compared case-sensitively.
  1537.   #mail_max_userip_connections = 3
  1538.  
  1539.   # Support for dynamically loadable plugins. mail_plugins is a space separated
  1540.   # list of plugins to load.
  1541.   #mail_plugins =
  1542.   #mail_plugin_dir = /usr/lib/dovecot/modules/pop3
  1543.  
  1544.   # Workarounds for various client bugs:
  1545.   #   outlook-no-nuls:
  1546.   #     Outlook and Outlook Express hang if mails contain NUL characters.
  1547.   #     This setting replaces them with 0x80 character.
  1548.   #   oe-ns-eoh:
  1549.   #     Outlook Express and Netscape Mail breaks if end of headers-line is
  1550.   #     missing. This option simply sends it if it's missing.
  1551.   # The list is space-separated.
  1552.   #pop3_client_workarounds =
  1553. }
  1554.  
  1555. ##
  1556. ## ManageSieve specific settings
  1557. ##
  1558.  
  1559. protocol managesieve {
  1560.   # Login executable location.
  1561.   #login_executable = /usr/lib/dovecot/managesieve-login
  1562.  
  1563.   # ManageSieve executable location. See IMAP's mail_executable above for
  1564.   # examples how this could be changed.
  1565.   #mail_executable = /usr/lib/dovecot/managesieve
  1566.  
  1567.   # Maximum ManageSieve command line length in bytes. This setting is
  1568.   # directly borrowed from IMAP. But, since long command lines are very
  1569.   # unlikely with ManageSieve, changing this will not be very useful.
  1570.   #managesieve_max_line_length = 65536
  1571.  
  1572.   # ManageSieve logout format string:
  1573.   #  %i - total number of bytes read from client
  1574.   #  %o - total number of bytes sent to client
  1575.   #managesieve_logout_format = bytes=%i/%o
  1576.  
  1577.   # If, for some inobvious reason, the sieve_storage remains unset, the
  1578.   # ManageSieve daemon uses the specification of the mail_location to find out
  1579.   # where to store the sieve files (see explaination in README.managesieve).
  1580.   # The example below, when uncommented, overrides any global mail_location
  1581.   # specification and stores all the scripts in '~/mail/sieve' if sieve_storage
  1582.   # is unset. However, you should always use the sieve_storage setting.
  1583.   # mail_location = mbox:~/mail
  1584.  
  1585.   # To fool ManageSieve clients that are focused on timesieved you can
  1586.   # specify the IMPLEMENTATION capability that the dovecot reports to clients
  1587.   # (default: "dovecot").
  1588.   #managesieve_implementation_string = Cyrus timsieved v2.2.13
  1589. }
  1590.  
  1591. ##
  1592. ## LDA specific settings
  1593. ##
  1594.  
  1595. #protocol lda {
  1596.   # Address to use when sending rejection mails (e.g. postmaster@example.com).
  1597.   #postmaster_address =
  1598.  
  1599.   # Hostname to use in various parts of sent mails, eg. in Message-Id.
  1600.   # Default is the system's real hostname.
  1601.   #hostname =
  1602.  
  1603.   # Support for dynamically loadable plugins. mail_plugins is a space separated
  1604.   # list of plugins to load.
  1605.   #mail_plugins =
  1606.   #mail_plugin_dir = /usr/lib/dovecot/modules/lda
  1607.  
  1608.   # If user is over quota, return with temporary failure instead of
  1609.   # bouncing the mail.
  1610.   #quota_full_tempfail = no
  1611.  
  1612.   # Format to use for logging mail deliveries. You can use variables:
  1613.   #  %$ - Delivery status message (e.g. "saved to INBOX")
  1614.   #  %m - Message-ID
  1615.   #  %s - Subject
  1616.   #  %f - From address
  1617.   #deliver_log_format = msgid=%m: %$
  1618.  
  1619.   # Binary to use for sending mails.
  1620.   #sendmail_path = /usr/sbin/sendmail
  1621.  
  1622.   # Subject: header to use for rejection mails. You can use the same variables
  1623.   # as for rejection_reason below.
  1624.   #rejection_subject = Rejected: %s
  1625.  
  1626.   # Human readable error message for rejection mails. You can use variables:
  1627.   #  %n = CRLF, %r = reason, %s = original subject, %t = recipient
  1628.   #rejection_reason = Your message to <%t> was automatically rejected:%n%r
  1629.  
  1630.   # UNIX socket path to master authentication server to find users.
  1631.   #auth_socket_path = /var/run/dovecot/auth-master
  1632. #}
  1633.  
  1634. ##
  1635. ## Authentication processes
  1636. ##
  1637.  
  1638. # Executable location
  1639. #auth_executable = /usr/lib/dovecot/dovecot-auth
  1640.  
  1641. # Set max. process size in megabytes.
  1642. #auth_process_size = 256
  1643.  
  1644. # Authentication cache size in kilobytes. 0 means it's disabled.
  1645. # Note that bsdauth, PAM and vpopmail require cache_key to be set for caching
  1646. # to be used.
  1647. #auth_cache_size = 0
  1648. # Time to live in seconds for cached data. After this many seconds the cached
  1649. # record is no longer used, *except* if the main database lookup returns
  1650. # internal failure. We also try to handle password changes automatically: If
  1651. # user's previous authentication was successful, but this one wasn't, the
  1652. # cache isn't used. For now this works only with plaintext authentication.
  1653. #auth_cache_ttl = 3600
  1654. # TTL for negative hits (user not found, password mismatch).
  1655. # 0 disables caching them completely.
  1656. #auth_cache_negative_ttl = 3600
  1657.  
  1658. # Space separated list of realms for SASL authentication mechanisms that need
  1659. # them. You can leave it empty if you don't want to support multiple realms.
  1660. # Many clients simply use the first one listed here, so keep the default realm
  1661. # first.
  1662. #auth_realms =
  1663.  
  1664. # Default realm/domain to use if none was specified. This is used for both
  1665. # SASL realms and appending @domain to username in plaintext logins.
  1666. #auth_default_realm =
  1667.  
  1668. # List of allowed characters in username. If the user-given username contains
  1669. # a character not listed in here, the login automatically fails. This is just
  1670. # an extra check to make sure user can't exploit any potential quote escaping
  1671. # vulnerabilities with SQL/LDAP databases. If you want to allow all characters,
  1672. # set this value to empty.
  1673. #auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@
  1674.  
  1675. # Username character translations before it's looked up from databases. The
  1676. # value contains series of from -> to characters. For example "#@/@" means
  1677. # that '#' and '/' characters are translated to '@'.
  1678. #auth_username_translation =
  1679.  
  1680. # Username formatting before it's looked up from databases. You can use
  1681. # the standard variables here, eg. %Lu would lowercase the username, %n would
  1682. # drop away the domain if it was given, or "%n-AT-%d" would change the '@' into
  1683. # "-AT-". This translation is done after auth_username_translation changes.
  1684. #auth_username_format =
  1685.  
  1686. # If you want to allow master users to log in by specifying the master
  1687. # username within the normal username string (ie. not using SASL mechanism's
  1688. # support for it), you can specify the separator character here. The format
  1689. # is then <username><separator><master username>. UW-IMAP uses "*" as the
  1690. # separator, so that could be a good choice.
  1691. #auth_master_user_separator =
  1692.  
  1693. # Username to use for users logging in with ANONYMOUS SASL mechanism
  1694. #auth_anonymous_username = anonymous
  1695.  
  1696. # Log unsuccessful authentication attempts and the reasons why they failed.
  1697. #auth_verbose = no
  1698.  
  1699. # Even more verbose logging for debugging purposes. Shows for example SQL
  1700. # queries.
  1701. #auth_debug = no
  1702.  
  1703. # In case of password mismatches, log the passwords and used scheme so the
  1704. # problem can be debugged. Enabling this also enables auth_debug.
  1705. #auth_debug_passwords = no
  1706.  
  1707. # Maximum number of dovecot-auth worker processes. They're used to execute
  1708. # blocking passdb and userdb queries (eg. MySQL and PAM). They're
  1709. # automatically created and destroyed as needed.
  1710. #auth_worker_max_count = 30
  1711.  
  1712. # Host name to use in GSSAPI principal names. The default is to use the
  1713. # name returned by gethostname(). Use "$ALL" to allow all keytab entries.
  1714. #auth_gssapi_hostname =
  1715.  
  1716. # Kerberos keytab to use for the GSSAPI mechanism. Will use the system
  1717. # default (usually /etc/krb5.keytab) if not specified.
  1718. #auth_krb5_keytab =
  1719.  
  1720. # Do NTLM and GSS-SPNEGO authentication using Samba's winbind daemon and
  1721. # ntlm_auth helper.
  1722. # </usr/share/doc/dovecot-common/wiki/Authentication.Mechanisms.Winbind.txt>
  1723. #auth_use_winbind = no
  1724.  
  1725. # Path for Samba's ntlm_auth helper binary.
  1726. #auth_winbind_helper_path = /usr/bin/ntlm_auth
  1727.  
  1728. # Number of seconds to delay before replying to failed authentications.
  1729. #auth_failure_delay = 2
  1730.  
  1731. auth default {
  1732.   # Space separated list of wanted authentication mechanisms:
  1733.   #   plain login digest-md5 cram-md5 ntlm rpa apop anonymous gssapi otp skey
  1734.   #   gss-spnego
  1735.   # NOTE: See also disable_plaintext_auth setting.
  1736.   mechanisms = plain login
  1737.  
  1738.   #
  1739.   # Password database is used to verify user's password (and nothing more).
  1740.   # You can have multiple passdbs and userdbs. This is useful if you want to
  1741.   # allow both system users (/etc/passwd) and virtual users to login without
  1742.   # duplicating the system users into virtual database.
  1743.   #
  1744.   # </usr/share/doc/dovecot-common/wiki/PasswordDatabase.txt>
  1745.   #
  1746.   # By adding master=yes setting inside a passdb you make the passdb a list
  1747.   # of "master users", who can log in as anyone else. Unless you're using PAM,
  1748.   # you probably still want the destination user to be looked up from passdb
  1749.   # that it really exists. This can be done by adding pass=yes setting to the
  1750.   # master passdb. </usr/share/doc/dovecot-common/wiki/Authentication.MasterUsers.txt>
  1751.  
  1752.   # Users can be temporarily disabled by adding a passdb with deny=yes.
  1753.   # If the user is found from that database, authentication will fail.
  1754.   # The deny passdb should always be specified before others, so it gets
  1755.   # checked first. Here's an example:
  1756.  
  1757.   #passdb passwd-file {
  1758.     # File contains a list of usernames, one per line
  1759.     #args = /etc/dovecot/dovecot.deny
  1760.     #deny = yes
  1761.   #}
  1762.  
  1763.   # PAM authentication. Preferred nowadays by most systems.
  1764.   # Note that PAM can only be used to verify if user's password is correct,
  1765.   # so it can't be used as userdb. If you don't want to use a separate user
  1766.   # database (passwd usually), you can use static userdb.
  1767.   # REMEMBER: You'll need /etc/pam.d/dovecot file created for PAM
  1768.   # authentication to actually work. </usr/share/doc/dovecot-common/wiki/PasswordDatabase.PAM.txt>
  1769.   passdb pam {
  1770.     # [session=yes] [setcred=yes] [failure_show_msg=yes] [max_requests=<n>]
  1771.     # [cache_key=<key>] [<service name>]
  1772.     #
  1773.     # session=yes makes Dovecot open and immediately close PAM session. Some
  1774.     # PAM plugins need this to work, such as pam_mkhomedir.
  1775.     #
  1776.     # setcred=yes makes Dovecot establish PAM credentials if some PAM plugins
  1777.     # need that. They aren't ever deleted though, so this isn't enabled by
  1778.     # default.
  1779.     #
  1780.     # max_requests specifies how many PAM lookups to do in one process before
  1781.     # recreating the process. The default is 100, because many PAM plugins
  1782.     # leak memory.
  1783.     #
  1784.     # cache_key can be used to enable authentication caching for PAM
  1785.     # (auth_cache_size also needs to be set). It isn't enabled by default
  1786.     # because PAM modules can do all kinds of checks besides checking password,
  1787.     # such as checking IP address. Dovecot can't know about these checks
  1788.     # without some help. cache_key is simply a list of variables (see
  1789.     # /usr/share/doc/dovecot-common/wiki/Variables.txt) which must match
  1790.     # for the cached data to be used.
  1791.     # Here are some examples:
  1792.     #   %u - Username must match. Probably sufficient for most uses.
  1793.     #   %u%r - Username and remote IP address must match.
  1794.     #   %u%s - Username and service (ie. IMAP, POP3) must match.
  1795.     #
  1796.     # The service name can contain variables, for example %Ls expands to
  1797.     # pop3 or imap.
  1798.     #
  1799.     # Some examples:
  1800.     #   args = session=yes %Ls
  1801.     #   args = cache_key=%u dovecot
  1802.     #args = dovecot
  1803.   }
  1804.  
  1805.   # System users (NSS, /etc/passwd, or similiar)
  1806.   # In many systems nowadays this uses Name Service Switch, which is
  1807.   # configured in /etc/nsswitch.conf. </usr/share/doc/dovecot-common/wiki/AuthDatabase.Passwd.txt>
  1808.   #passdb passwd {
  1809.     # [blocking=yes] - See userdb passwd for explanation
  1810.     #args =
  1811.   #}
  1812.  
  1813.   # Shadow passwords for system users (NSS, /etc/shadow or similiar).
  1814.   # Deprecated by PAM nowadays.
  1815.   # </usr/share/doc/dovecot-common/wiki/PasswordDatabase.Shadow.txt>
  1816.   #passdb shadow {
  1817.     # [blocking=yes] - See userdb passwd for explanation
  1818.     #args =
  1819.   #}
  1820.  
  1821.   # PAM-like authentication for OpenBSD.
  1822.   # </usr/share/doc/dovecot-common/wiki/PasswordDatabase.BSDAuth.txt>
  1823.   #passdb bsdauth {
  1824.     # [cache_key=<key>] - See cache_key in PAM for explanation.
  1825.     #args =
  1826.   #}
  1827.  
  1828.   # passwd-like file with specified location
  1829.   # </usr/share/doc/dovecot-common/wiki/AuthDatabase.PasswdFile.txt>
  1830.   #passdb passwd-file {
  1831.     # [scheme=<default password scheme>] [username_format=<format>]
  1832.     # <Path for passwd-file>
  1833.     #args =
  1834.   #}
  1835.  
  1836.   # checkpassword executable authentication
  1837.   # NOTE: You will probably want to use "userdb prefetch" with this.
  1838.   # </usr/share/doc/dovecot-common/wiki/AuthDatabase.CheckPassword.txt>
  1839.   #passdb checkpassword {
  1840.     # Path for checkpassword binary
  1841.     #args =
  1842.   #}
  1843.  
  1844.   # SQL database </usr/share/doc/dovecot-common/wiki/AuthDatabase.SQL.txt>
  1845.   #passdb sql {
  1846.     # Path for SQL configuration file
  1847.     #args = /etc/dovecot/dovecot-sql.conf
  1848.   #}
  1849.  
  1850.   # LDAP database </usr/share/doc/dovecot-common/wiki/AuthDatabase.LDAP.txt>
  1851.   #passdb ldap {
  1852.     # Path for LDAP configuration file
  1853.     #args = /etc/dovecot/dovecot-ldap.conf
  1854.   #}
  1855.  
  1856.   # vpopmail authentication </usr/share/doc/dovecot-common/wiki/AuthDatabase.VPopMail.txt>
  1857.   #passdb vpopmail {
  1858.     # [cache_key=<key>] - See cache_key in PAM for explanation.
  1859.     # [quota_template=<template>] - %q expands to Maildir++ quota
  1860.     #   (eg. quota_template=quota_rule=*:backend=%q)
  1861.     #args =
  1862.   #}
  1863.  
  1864.   #
  1865.   # User database specifies where mails are located and what user/group IDs
  1866.   # own them. For single-UID configuration use "static".
  1867.   #
  1868.   # </usr/share/doc/dovecot-common/wiki/UserDatabase.txt>
  1869.   #
  1870.  
  1871.   # "prefetch" user database means that the passdb already provided the
  1872.   # needed information and there's no need to do a separate userdb lookup.
  1873.   # This can be made to work with SQL and LDAP databases, see their example
  1874.   # configuration files for more information how to do it.
  1875.   # </usr/share/doc/dovecot-common/wiki/UserDatabase.Prefetch.txt>
  1876.   #userdb prefetch {
  1877.   #}
  1878.  
  1879.   # System users (NSS, /etc/passwd, or similiar). In many systems nowadays this
  1880.   # uses Name Service Switch, which is configured in /etc/nsswitch.conf.
  1881.   # </usr/share/doc/dovecot-common/wiki/AuthDatabase.Passwd.txt>
  1882.   userdb passwd {
  1883.     # [blocking=yes] - By default the lookups are done in the main dovecot-auth
  1884.     # process. This setting causes the lookups to be done in auth worker
  1885.     # proceses. Useful with remote NSS lookups that may block.
  1886.     # NOTE: Be sure to use this setting with nss_ldap or users might get
  1887.     # logged in as each others!
  1888.     #args =
  1889.   }
  1890.  
  1891.   # passwd-like file with specified location
  1892.   # </usr/share/doc/dovecot-common/wiki/AuthDatabase.PasswdFile.txt>
  1893.   #userdb passwd-file {
  1894.     # [username_format=<format>] <Path for passwd-file>
  1895.     #args =
  1896.   #}
  1897.  
  1898.   # checkpassword executable user database lookup
  1899.   # </usr/share/doc/dovecot-common/wiki/AuthDatabase.CheckPassword.txt>
  1900.   #userdb checkpassword {
  1901.     # Path for checkpassword binary
  1902.     #args =
  1903.   #}
  1904.  
  1905.   # static settings generated from template </usr/share/doc/dovecot-common/wiki/UserDatabase.Static.txt>
  1906.   #userdb static {
  1907.     # Template for the fields. Can return anything a userdb could normally
  1908.     # return. For example:
  1909.     #
  1910.     #  args = uid=500 gid=500 home=/var/mail/%u
  1911.     #
  1912.     # If you use deliver, it needs to look up users only from the userdb. This
  1913.     # of course doesn't work with static because there is no list of users.
  1914.     # Normally static userdb handles this by doing a passdb lookup. This works
  1915.     # with most passdbs, with PAM being the most notable exception. If you do
  1916.     # the user verification another way, you can add allow_all_users=yes to
  1917.     # the args in which case the passdb lookup is skipped.
  1918.     #
  1919.     #args =
  1920.   #}
  1921.  
  1922.   # SQL database </usr/share/doc/dovecot-common/wiki/AuthDatabase.SQL.txt>
  1923.   #userdb sql {
  1924.     # Path for SQL configuration file
  1925.     #args = /etc/dovecot/dovecot-sql.conf
  1926.   #}
  1927.  
  1928.   # LDAP database </usr/share/doc/dovecot-common/wiki/AuthDatabase.LDAP.txt>
  1929.   #userdb ldap {
  1930.     # Path for LDAP configuration file
  1931.     #args = /etc/dovecot/dovecot-ldap.conf
  1932.   #}
  1933.  
  1934.   # vpopmail </usr/share/doc/dovecot-common/wiki/AuthDatabase.VPopMail.txt>
  1935.   #userdb vpopmail {
  1936.   #}
  1937.  
  1938.   # User to use for the process. This user needs access to only user and
  1939.   # password databases, nothing else. Only shadow and pam authentication
  1940.   # requires roots, so use something else if possible. Note that passwd
  1941.   # authentication with BSDs internally accesses shadow files, which also
  1942.   # requires roots. Note that this user is NOT used to access mails.
  1943.   # That user is specified by userdb above.
  1944.   user = root
  1945.  
  1946.   # Directory where to chroot the process. Most authentication backends don't
  1947.   # work if this is set, and there's no point chrooting if auth_user is root.
  1948.   # Note that valid_chroot_dirs isn't needed to use this setting.
  1949.   #chroot =
  1950.  
  1951.   # Number of authentication processes to create
  1952.   #count = 1
  1953.  
  1954.   # Require a valid SSL client certificate or the authentication fails.
  1955.   #ssl_require_client_cert = no
  1956.  
  1957.   # Take the username from client's SSL certificate, using
  1958.   # X509_NAME_get_text_by_NID() which returns the subject's DN's
  1959.   # CommonName.
  1960.   #ssl_username_from_cert = no
  1961.  
  1962.   # It's possible to export the authentication interface to other programs:
  1963.   socket listen {
  1964.     #master {
  1965.       # Master socket provides access to userdb information. It's typically
  1966.       # used to give Dovecot's local delivery agent access to userdb so it
  1967.       # can find mailbox locations.
  1968.       #path = /var/run/dovecot/auth-master
  1969.       #mode = 0600
  1970.       # Default user/group is the one who started dovecot-auth (root)
  1971.       #user =
  1972.       #group =
  1973.     #}
  1974.     client {
  1975.       # The client socket is generally safe to export to everyone. Typical use
  1976.       # is to export it to your SMTP server so it can do SMTP AUTH lookups
  1977.       # using it.
  1978.       path = /var/spool/postfix/private/auth-client
  1979.       mode = 0660
  1980.       user = postfix
  1981.       group = postfix
  1982.     }
  1983.   }
  1984.   !include_try /etc/dovecot/auth.d/*.auth
  1985. }
  1986.  
  1987. # If you wish to use another authentication server than dovecot-auth, you can
  1988. # use connect sockets. They are assumed to be already running, Dovecot's master
  1989. # process only tries to connect to them. They don't need any other settings
  1990. # than the path for the master socket, as the configuration is done elsewhere.
  1991. # Note that the client sockets must exist in the login_dir.
  1992. #auth external {
  1993. #  socket connect {
  1994. #    master {
  1995. #      path = /var/run/dovecot/auth-master
  1996. #    }
  1997. #  }
  1998. #}
  1999.  
  2000. ##
  2001. ## Dictionary server settings
  2002. ##
  2003.  
  2004. # Dictionary can be used by some plugins to store key=value lists, such as
  2005. # quota, expire and acl plugins. The dictionary can be used either directly or
  2006. # though a dictionary server. The following dict block maps dictionary names to
  2007. # URIs when the server is used. These can then be referenced using URIs in
  2008. # format "proxy::<name>".
  2009.  
  2010. dict {
  2011.   #quota = mysql:/etc/dovecot/dovecot-dict-quota.conf
  2012.   #expire = db:/var/lib/dovecot/expire.db
  2013. }
  2014.  
  2015. # Path to Berkeley DB's configuration file. See doc/dovecot-db-example.conf
  2016. #dict_db_config =
  2017.  
  2018. ##
  2019. ## Plugin settings
  2020. ##
  2021.  
  2022. plugin {
  2023.   # Here you can give some extra environment variables to mail processes.
  2024.   # This is mostly meant for passing parameters to plugins. %variable
  2025.   # expansion is done for all values.
  2026.  
  2027.   # Quota plugin. Multiple backends are supported:
  2028.   #   dirsize: Find and sum all the files found from mail directory.
  2029.   #            Extremely SLOW with Maildir. It'll eat your CPU and disk I/O.
  2030.   #   dict: Keep quota stored in dictionary (eg. SQL)
  2031.   #   maildir: Maildir++ quota
  2032.   #   fs: Read-only support for filesystem quota
  2033.   #
  2034.   # Quota limits are set using "quota_rule" parameters, either in here or in
  2035.   # userdb. It's also possible to give mailbox-specific limits, for example:
  2036.   #   quota_rule = *:storage=1048576
  2037.   #   quota_rule2 = Trash:storage=102400
  2038.   # User has now 1GB quota, but when saving to Trash mailbox the user gets
  2039.   # additional 100MB.
  2040.   #
  2041.   # Multiple quota roots are also possible, for example:
  2042.   #   quota = dict:user::proxy::quota
  2043.   #   quota2 = dict:domain:%d:proxy::quota_domain
  2044.   #   quota_rule = *:storage=102400
  2045.   #   quota2_rule = *:storage=1048576
  2046.   # Gives each user their own 100MB quota and one shared 1GB quota within
  2047.   # the domain.
  2048.   #
  2049.   # You can execute a given command when user exceeds a specified quota limit.
  2050.   # Each quota root has separate limits. Only the command for the first
  2051.   # exceeded limit is excecuted, so put the highest limit first.
  2052.   # Note that % needs to be escaped as %%, otherwise "% " expands to empty.
  2053.   #   quota_warning = storage=95%% /usr/local/bin/quota-warning.sh 95
  2054.   #   quota_warning2 = storage=80%% /usr/local/bin/quota-warning.sh 80
  2055.   #quota = maildir
  2056.  
  2057.   # ACL plugin. vfile backend reads ACLs from "dovecot-acl" file from maildir
  2058.   # directory. You can also optionally give a global ACL directory path where
  2059.   # ACLs are applied to all users' mailboxes. The global ACL directory contains
  2060.   # one file for each mailbox, eg. INBOX or sub.mailbox. cache_secs parameter
  2061.   # specifies how many seconds to wait between stat()ing dovecot-acl file
  2062.   # to see if it changed.
  2063.   #acl = vfile:/etc/dovecot/dovecot-acls:cache_secs=300
  2064.  
  2065.   # To let users LIST mailboxes shared by other users, Dovecot needs a
  2066.   # shared mailbox dictionary. For example:
  2067.   #acl_shared_dict = file:/var/lib/dovecot/shared-mailboxes
  2068.  
  2069.   # Convert plugin. If set, specifies the source storage path which is
  2070.   # converted to destination storage (mail_location) when the user logs in.
  2071.   # The existing mail directory is renamed to <dir>-converted.
  2072.   #convert_mail = mbox:%h/mail
  2073.   # Skip mailboxes which we can't open successfully instead of aborting.
  2074.   #convert_skip_broken_mailboxes = no
  2075.   # Skip directories beginning with '.'
  2076.   #convert_skip_dotdirs = no
  2077.   # If source storage has mailbox names with destination storage's hierarchy
  2078.   # separators, replace them with this character.
  2079.   #convert_alt_hierarchy_char = _
  2080.  
  2081.   # Trash plugin. When saving a message would make user go over quota, this
  2082.   # plugin automatically deletes the oldest mails from configured mailboxes
  2083.   # until the message can be saved within quota limits. The configuration file
  2084.   # is a text file where each line is in format: <priority> <mailbox name>
  2085.   # Mails are first deleted in lowest -> highest priority number order
  2086.   #trash = /etc/dovecot/dovecot-trash.conf
  2087.  
  2088.   # Expire plugin. Mails are expunged from mailboxes after being there the
  2089.   # configurable time. The first expiration date for each mailbox is stored in
  2090.   # a dictionary so it can be quickly determined which mailboxes contain
  2091.   # expired mails. The actual expunging is done in a nightly cronjob, which
  2092.   # you must set up:
  2093.   #   dovecot --exec-mail ext /usr/lib/dovecot/expire-tool.sh
  2094.   #expire = Trash 7 Spam 30
  2095.   #expire_dict = proxy::expire
  2096.  
  2097.   # Lazy expunge plugin. Currently works only with maildirs. When a user
  2098.   # expunges mails, the mails are moved to a mailbox in another namespace
  2099.   # (1st). When a mailbox is deleted, the mailbox is moved to another namespace
  2100.   # (2nd) as well. Also if the deleted mailbox had any expunged messages,
  2101.   # they're moved to a 3rd namespace. The mails won't be counted in quota,
  2102.   # and they're not deleted automatically (use a cronjob or something).
  2103.   #lazy_expunge = .EXPUNGED/ .DELETED/ .DELETED/.EXPUNGED/
  2104.  
  2105.   # Events to log. Also available: flag_change append
  2106.   #mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
  2107.   # Group events within a transaction to one line.
  2108.   #mail_log_group_events = no
  2109.   # Available fields: uid, box, msgid, from, subject, size, vsize, flags
  2110.   # size and vsize are available only for expunge and copy events.
  2111.   #mail_log_fields = uid box msgid size
  2112.  
  2113.   # Sieve plugin (http://wiki.dovecot.org/LDA/Sieve) and ManageSieve service
  2114.   #
  2115.   # Location of the active script. When ManageSieve is used this is actually
  2116.   # a symlink pointing to the active script in the sieve storage directory.
  2117.   #sieve=~/.dovecot.sieve
  2118.   #
  2119.   # The path to the directory where the personal Sieve scripts are stored. For
  2120.   # ManageSieve this is where the uploaded scripts are stored.
  2121.   #sieve_dir=~/sieve
  2122. }
  2123.  
  2124. # Config files can also be included. deliver doesn't support them currently.
  2125. !include_try /etc/dovecot/conf.d/*.conf
  2126. # Optional configurations, don't give an error if it's not found:
  2127. #!include_try /etc/dovecot/extra.conf
  2128.  
  2129.  
  2130. and i can also output all that my check config says in webmin:
  2131.  
  2132.  
  2133. Hostname        mail.example.com
  2134. System  Linux mail.example.com 2.6.38-11-generic-pae #50-Ubuntu SMP Mon Sep 12 22:21:04 UTC 2011 i686 i686 i386 GNU/Linux
  2135.  
  2136. Mailbox locking methods
  2137.  
  2138. flock
  2139. fcntl
  2140. dotlock
  2141.  
  2142. Supported Lookup Tables
  2143.  
  2144. btree
  2145. cidr
  2146. environ
  2147. hash
  2148. internal
  2149. nis
  2150. proxy
  2151. regexp
  2152. sdbm
  2153. static
  2154. tcp
  2155. texthash
  2156. unix
  2157.  
  2158. main.cf
  2159.  
  2160.  
  2161. non-default parameters
  2162.  
  2163. alias_maps       hash:/etc/aliases
  2164. body_checks      regexp:/etc/postfix/body_checks
  2165. broken_sasl_auth_clients         yes
  2166. header_checks    regexp:/etc/postfix/header_checks
  2167. home_mailbox     Maildir/
  2168. local_recipient_maps     unix:passwd.byname $alias_maps
  2169. mailbox_size_limit       0
  2170. message_size_limit       10485760
  2171. mydestination    mail.e-ject.se,e-ject.se, localhost, localhost.localdomain, localhost
  2172. mydomain         e-ject.se
  2173. myhostname       mail.e-ject.se
  2174. mynetworks       127.0.0.0/8
  2175. myorigin         /etc/mailname
  2176. recipient_delimiter      +
  2177. sendmail_path    /usr/sbin/postfix
  2178. smtp_tls_note_starttls_offer     yes
  2179. smtp_use_tls     yes
  2180. smtpd_banner     $myhostname ESMTP
  2181. smtpd_client_restrictions        permit_mynetworks,reject_unknown_client,permit
  2182. smtpd_recipient_restrictions     permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
  2183. smtpd_sasl_auth_enable   yes
  2184. smtpd_sasl_path  private/auth-client
  2185. smtpd_sasl_type  dovecot
  2186. smtpd_tls_CAfile         /etc/postfix/ssl/cacert.pem
  2187. smtpd_tls_cert_file      /etc/postfix/ssl/smtpd.crt
  2188. smtpd_tls_key_file       /etc/postfix/ssl/smtpd.key
  2189. smtpd_tls_loglevel       1
  2190. smtpd_tls_received_header        yes
  2191. smtpd_use_tls    yes
  2192.  
  2193. main.cf
  2194.  
  2195.  
  2196. parameters defined as per defaults
  2197.  
  2198. alias_database   hash:/etc/aliases
  2199. command_directory        /usr/sbin
  2200. config_directory         /etc/postfix
  2201. daemon_directory         /usr/lib/postfix
  2202. data_directory   /var/lib/postfix
  2203. inet_interfaces  all
  2204. inet_protocols   ipv4
  2205. mail_owner       postfix
  2206. mailbox_command
  2207. mailq_path       /usr/bin/mailq
  2208. newaliases_path  /usr/bin/newaliases
  2209. relayhost      
  2210. setgid_group     postdrop
  2211. smtpd_sasl_local_domain
  2212. smtpd_sasl_security_options      noanonymous
  2213. smtpd_tls_auth_only      no
  2214. smtpd_tls_session_cache_timeout  3600s
  2215. tls_random_source        dev:/dev/urandom
  2216. unknown_local_recipient_reject_code      550
  2217.  
  2218. master.cf
  2219.  
  2220.  
  2221. service type    private unpriv  chroot  wakeup  maxproc command + args
  2222. smtp   
  2223. inet
  2224. n
  2225. -
  2226. -
  2227. n
  2228. -
  2229. smtpd
  2230. pickup 
  2231. fifo
  2232. n
  2233. -
  2234. -
  2235. 60
  2236. 1
  2237. pickup
  2238. cleanup
  2239. unix
  2240. n
  2241. -
  2242. -
  2243. -
  2244. 0
  2245. cleanup
  2246. qmgr   
  2247. fifo
  2248. n
  2249. -
  2250. n
  2251. 300
  2252. 1
  2253. qmgr
  2254. tlsmgr 
  2255. unix
  2256. -
  2257. -
  2258. -
  2259. 1000?
  2260. 1
  2261. tlsmgr
  2262. rewrite
  2263. unix
  2264. -
  2265. -
  2266. -
  2267. -
  2268. -
  2269. trivial-rewrite
  2270. bounce 
  2271. unix
  2272. -
  2273. -
  2274. -
  2275. -
  2276. 0
  2277. bounce
  2278. defer  
  2279. unix
  2280. -
  2281. -
  2282. -
  2283. -
  2284. 0
  2285. bounce
  2286. trace  
  2287. unix
  2288. -
  2289. -
  2290. -
  2291. -
  2292. 0
  2293. bounce
  2294. verify 
  2295. unix
  2296. -
  2297. -
  2298. -
  2299. -
  2300. 1
  2301. verify
  2302. flush  
  2303. unix
  2304. n
  2305. -
  2306. -
  2307. 1000?
  2308. 0
  2309. flush
  2310. proxymap       
  2311. unix
  2312. -
  2313. -
  2314. n
  2315. -
  2316. -
  2317. proxymap
  2318. proxywrite     
  2319. unix
  2320. -
  2321. -
  2322. n
  2323. -
  2324. 1
  2325. proxymap
  2326. smtp   
  2327. unix
  2328. -
  2329. -
  2330. -
  2331. -
  2332. -
  2333. smtp
  2334. relay  
  2335. unix
  2336. -
  2337. -
  2338. -
  2339. -
  2340. -
  2341. smtp
  2342. -o
  2343. showq  
  2344. unix
  2345. n
  2346. -
  2347. -
  2348. -
  2349. -
  2350. showq
  2351. error  
  2352. unix
  2353. -
  2354. -
  2355. -
  2356. -
  2357. -
  2358. error
  2359. retry  
  2360. unix
  2361. -
  2362. -
  2363. -
  2364. -
  2365. -
  2366. error
  2367. discard
  2368. unix
  2369. -
  2370. -
  2371. -
  2372. -
  2373. -
  2374. discard
  2375. local  
  2376. unix
  2377. -
  2378. n
  2379. n
  2380. -
  2381. -
  2382. local
  2383. virtual
  2384. unix
  2385. -
  2386. n
  2387. n
  2388. -
  2389. -
  2390. virtual
  2391. lmtp   
  2392. unix
  2393. -
  2394. -
  2395. -
  2396. -
  2397. -
  2398. lmtp
  2399. anvil  
  2400. unix
  2401. -
  2402. -
  2403. -
  2404. -
  2405. 1
  2406. anvil
  2407. scache 
  2408. unix
  2409. -
  2410. -
  2411. -
  2412. -
  2413. 1
  2414. scache
  2415. maildrop       
  2416. unix
  2417. -
  2418. n
  2419. n
  2420. -
  2421. -
  2422. pipe
  2423. uucp   
  2424. unix
  2425. -
  2426. n
  2427. n
  2428. -
  2429. -
  2430. pipe
  2431. ifmail 
  2432. unix
  2433. -
  2434. n
  2435. n
  2436. -
  2437. -
  2438. pipe
  2439. bsmtp  
  2440. unix
  2441. -
  2442. n
  2443. n
  2444. -
  2445. -
  2446. pipe
  2447. scalemail-backend      
  2448. unix
  2449. -
  2450. n
  2451. n
  2452. -
  2453. 2
  2454. pipe
  2455. mailman
  2456. unix
  2457. -
  2458. n
  2459. n
  2460. -
  2461. -
  2462. pipe
  2463. ${nexthop}
  2464. ${user}
  2465.  
  2466. Specific file and directory permissions
  2467.  
  2468.  
  2469. Permission Deep Owner Group Size Date Directory/File
  2470. drwx-wx--T 2 postfix postdrop 4096 Oct 1 11:47 /var/spool/postfix/maildrop
  2471. drwx--s--- 2 postfix postdrop 4096 Sep 30 17:31 /var/spool/postfix/public
  2472. srw-rw-rw- 1 postfix postdrop 0 Sep 30 17:31 cleanup
  2473. srw-rw-rw- 1 postfix postdrop 0 Sep 30 17:31 flush
  2474. prw--w--w- 1 postfix postdrop 0 Sep 30 21:00 pickup
  2475. prw--w--w- 1 postfix postdrop 0 Sep 30 20:56 qmgr
  2476. srw-rw-rw- 1 postfix postdrop 0 Sep 30 17:31 showq
  2477. drwx------ 2 postfix root 4096 Sep 30 17:31 /var/spool/postfix/private
  2478. srw-rw-rw- 1 postfix postfix 0 Sep 30 17:31 anvil
  2479. srw-rw---- 1 postfix postfix 0 Sep 30 17:04 auth-client
  2480. srw-rw-rw- 1 postfix postfix 0 Sep 30 17:31 bounce
  2481. srw-rw-rw- 1 postfix postfix 0 Sep 30 17:31 bsmtp
  2482. srw-rw-rw- 1 postfix postfix 0 Sep 30 17:31 defer
  2483. srw-rw-rw- 1 postfix postfix 0 Sep 30 17:31 discard
  2484. srw-rw-rw- 1 postfix postfix 0 Sep 30 17:31 error
  2485. srw-rw-rw- 1 postfix postfix 0 Sep 30 17:31 ifmail
  2486. srw-rw-rw- 1 postfix postfix 0 Sep 30 17:31 lmtp
  2487. srw-rw-rw- 1 postfix postfix 0 Sep 30 17:31 local
  2488. srw-rw-rw- 1 postfix postfix 0 Sep 30 17:31 maildrop
  2489. srw-rw-rw- 1 postfix postfix 0 Sep 30 17:31 mailman
  2490. srw-rw-rw- 1 postfix postfix 0 Sep 30 17:31 proxymap
  2491. srw-rw-rw- 1 postfix postfix 0 Sep 30 17:31 proxywrite
  2492. srw-rw-rw- 1 postfix postfix 0 Sep 30 17:31 relay
  2493. srw-rw-rw- 1 postfix postfix 0 Sep 30 17:31 retry
  2494. srw-rw-rw- 1 postfix postfix 0 Sep 30 17:31 rewrite
  2495. srw-rw-rw- 1 postfix postfix 0 Sep 30 17:31 scache
  2496. srw-rw-rw- 1 postfix postfix 0 Sep 30 17:31 scalemail-backend
  2497. srw-rw-rw- 1 postfix postfix 0 Sep 30 17:31 smtp
  2498. srw-rw-rw- 1 postfix postfix 0 Sep 30 17:31 tlsmgr
  2499. srw-rw-rw- 1 postfix postfix 0 Sep 30 17:31 trace
  2500. srw-rw-rw- 1 postfix postfix 0 Sep 30 17:31 uucp
  2501. srw-rw-rw- 1 postfix postfix 0 Sep 30 17:31 verify
  2502. srw-rw-rw- 1 postfix postfix 0 Sep 30 17:31 virtual
  2503. -r-xr-sr-x 1 root postdrop 13572 May 10 15:08 /usr/sbin/postdrop
  2504. -r-xr-sr-x 1 root postdrop 13556 May 10 15:08 /usr/sbin/postqueue
  2505.  
  2506. Library dependencies
  2507.  
  2508. linux-gate.so.1 => (0x00530000)
  2509. libpostfix-master.so.1  => /usr/lib/libpostfix-master.so.1 (0x00152000)
  2510. libpostfix-tls.so.1     => /usr/lib/libpostfix-tls.so.1 (0x001dc000)
  2511. libpostfix-dns.so.1     => /usr/lib/libpostfix-dns.so.1 (0x00110000)
  2512. libpostfix-global.so.1  => /usr/lib/libpostfix-global.so.1 (0x00cdf000)
  2513. libpostfix-util.so.1    => /usr/lib/libpostfix-util.so.1 (0x00aa9000)
  2514. libssl.so.0.9.8 => /lib/libssl.so.0.9.8 (0x002af000)
  2515. libcrypto.so.0.9.8      => /lib/libcrypto.so.0.9.8 (0x00625000)
  2516. libsasl2.so.2   => /usr/lib/libsasl2.so.2 (0x00e09000)
  2517. libdb-4.8.so    => /usr/lib/i386-linux-gnu/libdb-4.8.so (0x00771000)
  2518. libnsl.so.1     => /lib/i386-linux-gnu/libnsl.so.1 (0x00d74000)
  2519. libresolv.so.2  => /lib/i386-linux-gnu/libresolv.so.2 (0x00116000)
  2520. libc.so.6       => /lib/i386-linux-gnu/libc.so.6 (0x008fb000)
  2521. libdl.so.2      => /lib/i386-linux-gnu/libdl.so.2 (0x0012b000)
  2522. libz.so.1       => /lib/i386-linux-gnu/libz.so.1 (0x0012f000)
  2523. libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0x0055f000)
  2524. /lib/ld-linux.so.2 (0x008dd000) =
  2525.  
  2526.  
clone this paste RAW Paste Data