dovecot/dovecot.conf

Tue, 29 Mar 2011 20:04:34 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 29 Mar 2011 20:04:34 +0200
changeset 334
4a34d7a82eab
parent 238
642966b63c34
child 608
09548e292fb1
permissions
-rw-r--r--

Rework package yet again, correcting and introducing new buildconf logic:
Conditionally disable bootstrap stage comparison correctly, correct
english grammar, better find system as(1) and ld(1), indotruce detailed
optimization option messages, more completely guess cpu types, allow
profiled bootstrapping without a preinstalled GCC because many other
compilers have long since implemented 64-bit arithmetic, instruct make
to build sequentially (not in sparallel) when building a profiled
bootstrap as GCC online documents recommend, and generally improve
comment blocks.

The single most important correction in this changeset relates to the
GCC changed optimization policy since at least GCC 4.5, in which -march
is always passed and not always correctly guessed. In the case of this
package, allowing GCC to guess the architecture leads to wild build
errors at various subcomponents (zlib, libgcc, libiberty...) and
bootstrap stages. It seems quite platform specific, and the safest
approach to correcting this seems to be explicitly always specifying the
-march argument when bootstrapping GCC. Because the best choice 'native'
is not available when bootstrapping using a foreign (non GCC) compiler,
a guess is made according to rpmmacros l_platform in that case.

It is questionable as to whether these recent optimization changes
on the part of GCC or this package are compatible with each other,
or if either are complete or correct at all. At least applying these
corrections allows this package to build again in most cases test.

michael@238 1 ##
michael@238 2 ## dovecot.conf -- Dovecot server configuration
michael@238 3 ##
michael@238 4
michael@238 5 protocols = imap
michael@238 6
michael@238 7 protocol imap {
michael@238 8 listen = 127.0.0.1:143
michael@238 9 ssl_listen = 127.0.0.1:993
michael@239 10 log_path = @l_prefix@/var/dovecot/log/imap-error.log
michael@239 11 info_log_path = @l_prefix@/var/dovecot/log/imap-info.log
michael@239 12 login_executable = @l_prefix@/libexec/dovecot/imap-login
michael@239 13 mail_executable = @l_prefix@/libexec/dovecot/rawlog @l_prefix@/libexec/dovecot/imap
michael@238 14 }
michael@238 15
michael@238 16 ssl = yes
michael@238 17 ssl_cert_file = @l_prefix@/etc/x509/example-server.crt.pem
michael@238 18 ssl_key_file = @l_prefix@/etc/x509/example-server.key.pem
michael@238 19
michael@239 20 log_path = @l_prefix@/var/dovecot/log/dovecot-error.log
michael@239 21 info_log_path = @l_prefix@/var/dovecot/log/dovecot-info.log
michael@239 22 log_timestamp = '%b %d %H:%M:%S '
michael@239 23
michael@239 24 login_user = @l_nusr@
michael@238 25 login_processes_count = 4
michael@238 26 login_max_processes_count = 128
michael@238 27 login_max_connections = 256
michael@238 28
michael@238 29 mail_location = mbox:~/.mail:INBOX=~/.mail/inbox
michael@238 30 mail_uid = @l_rusr@
michael@238 31 mail_gid = @l_rusr@
michael@238 32 mail_privileged_group = @l_rusr@
michael@238 33 mbox_read_locks = fcntl
michael@238 34 mbox_write_locks = fcntl
michael@238 35
michael@238 36 auth_realms = example.com
michael@238 37 auth_default_realm =
michael@238 38 auth_verbose = yes
michael@238 39 disable_plaintext_auth = no
michael@238 40
michael@238 41 auth_debug = no
michael@238 42 auth_debug_passwords = no
michael@238 43 mail_debug = no
michael@238 44 verbose_ssl = no
michael@238 45
michael@238 46 protocol lda {
michael@238 47 postmaster_address = postmaster
michael@239 48 log_path = @l_prefix@/var/dovecot/log/deliver-error.log
michael@239 49 info_log_path = @l_prefix@/var/dovecot/log/deliver-info.log
michael@238 50 }
michael@238 51
michael@238 52 auth default {
michael@238 53 mechanisms = plain login
michael@238 54 passdb passwd {
michael@238 55 }
michael@238 56 userdb passwd {
michael@238 57 }
michael@238 58 socket listen {
michael@238 59 master {
michael@238 60 path = @l_prefix@/var/dovecot/run/auth-master
michael@239 61 mode = 0600
michael@239 62 user = @l_rusr@
michael@239 63 group = @l_rugrp@
michael@238 64 }
michael@238 65 client {
michael@238 66 path = @l_prefix@/var/dovecot/run/auth-client
michael@238 67 mode = 0660
michael@239 68 user = @l_musr@
michael@239 69 group = @l_mgrp@
michael@238 70 }
michael@238 71 }
michael@238 72 }
michael@238 73

mercurial