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.

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

mercurial