Sat, 18 Jul 2009 14:08:34 +0200
Adjust buildconf until Nokia corrects flawed GNU iconv integration.
The problem corrected by this adjustment involves font glyphs appearing
as normal font sized empty squares. All text is illegible.
michael@204 | 1 | Index: configure |
michael@204 | 2 | diff -Nau configure.orig configure |
michael@204 | 3 | --- configure.orig 2009-05-18 03:39:51.000000000 +0200 |
michael@204 | 4 | +++ configure 2009-05-27 14:29:11.972121045 +0200 |
michael@204 | 5 | @@ -28482,14 +28482,14 @@ |
michael@204 | 6 | |
michael@204 | 7 | if test $want_pgsql != no; then |
michael@204 | 8 | # based on code from PHP |
michael@204 | 9 | - for i in /usr /usr/local /usr/local/pgsql; do |
michael@204 | 10 | - for j in include include/pgsql include/postgres include/postgresql ""; do |
michael@204 | 11 | + for i in @l_prefix@; do |
michael@204 | 12 | + for j in include/postgresql; do |
michael@204 | 13 | if test -r "$i/$j/libpq-fe.h"; then |
michael@204 | 14 | PGSQL_INCLUDE=$i/$j |
michael@204 | 15 | fi |
michael@204 | 16 | done |
michael@204 | 17 | - for lib in lib lib64; do |
michael@204 | 18 | - for j in $lib $lib/pgsql $lib/postgres $lib/postgresql ""; do |
michael@204 | 19 | + for lib in lib; do |
michael@204 | 20 | + for j in $lib; do |
michael@204 | 21 | if test -f "$i/$j/libpq.so" || test -f "$i/$j/libpq.a"; then |
michael@204 | 22 | PGSQL_LIBDIR=$i/$j |
michael@204 | 23 | fi |
michael@148 | 24 | Index: configure.in |
michael@204 | 25 | diff -Nau configure.in.orig configure.in |
michael@204 | 26 | --- configure.in.orig 2009-05-18 03:39:35.000000000 +0200 |
michael@204 | 27 | +++ configure.in 2009-05-27 14:29:11.926298334 +0200 |
michael@148 | 28 | @@ -1962,14 +1962,14 @@ |
michael@148 | 29 | |
michael@148 | 30 | if test $want_pgsql != no; then |
michael@148 | 31 | # based on code from PHP |
michael@148 | 32 | - for i in /usr /usr/local /usr/local/pgsql; do |
michael@148 | 33 | - for j in include include/pgsql include/postgres include/postgresql ""; do |
michael@148 | 34 | + for i in @l_prefix@; do |
michael@148 | 35 | + for j in include/postgresql; do |
michael@148 | 36 | if test -r "$i/$j/libpq-fe.h"; then |
michael@148 | 37 | PGSQL_INCLUDE=$i/$j |
michael@148 | 38 | fi |
michael@148 | 39 | done |
michael@148 | 40 | - for lib in lib lib64; do |
michael@148 | 41 | - for j in $lib $lib/pgsql $lib/postgres $lib/postgresql ""; do |
michael@148 | 42 | + for lib in lib; do |
michael@148 | 43 | + for j in $lib; do |
michael@148 | 44 | if test -f "$i/$j/libpq.so" || test -f "$i/$j/libpq.a"; then |
michael@148 | 45 | PGSQL_LIBDIR=$i/$j |
michael@148 | 46 | fi |
michael@148 | 47 | Index: doc/dovecot-sql-example.conf |
michael@204 | 48 | diff -Nau doc/dovecot-sql-example.conf.orig doc/dovecot-sql-example.conf |
michael@204 | 49 | --- doc/dovecot-sql-example.conf.orig 2009-01-05 21:49:58.000000000 +0100 |
michael@204 | 50 | +++ doc/dovecot-sql-example.conf 2009-05-27 14:29:11.973657746 +0200 |
michael@148 | 51 | @@ -47,7 +47,8 @@ |
michael@148 | 52 | # the default my.cnf location |
michael@148 | 53 | # option_group - Read options from the given group (default: client) |
michael@148 | 54 | # |
michael@148 | 55 | -# You can connect to UNIX sockets by using host: host=/var/run/mysql.sock |
michael@148 | 56 | +# You can connect to UNIX sockets by using host: |
michael@148 | 57 | +# host=@l_prefix@/var/mysql/mysql.sock |
michael@148 | 58 | # Note that currently you can't use spaces in parameters. |
michael@148 | 59 | # |
michael@148 | 60 | # MySQL supports multiple host parameters for load balancing / HA. |
michael@148 | 61 | @@ -58,7 +59,7 @@ |
michael@148 | 62 | # Examples: |
michael@148 | 63 | # connect = host=192.168.1.1 dbname=users |
michael@148 | 64 | # connect = host=sql.example.com dbname=virtual user=virtual password=blarg |
michael@148 | 65 | -# connect = /etc/dovecot/authdb.sqlite |
michael@148 | 66 | +# connect = @l_prefix@/etc/dovecot/authdb.sqlite |
michael@148 | 67 | # |
michael@148 | 68 | #connect = |
michael@148 | 69 | |
michael@148 | 70 | Index: dovecot-example.conf |
michael@204 | 71 | diff -Nau dovecot-example.conf.orig dovecot-example.conf |
michael@204 | 72 | --- dovecot-example.conf.orig 2009-05-13 18:41:46.000000000 +0200 |
michael@204 | 73 | +++ dovecot-example.conf 2009-05-27 14:29:11.981522023 +0200 |
michael@204 | 74 | @@ -13,11 +13,10 @@ |
michael@204 | 75 | # those. These are exceptions to this though: No sections (e.g. namespace {}) |
michael@204 | 76 | # or plugin settings are added by default, they're listed only as examples. |
michael@204 | 77 | # Paths are also just examples with the real defaults being based on configure |
michael@204 | 78 | -# options. The paths listed here are for configure --prefix=/usr |
michael@204 | 79 | -# --sysconfdir=/etc --localstatedir=/var --with-ssldir=/etc/ssl |
michael@204 | 80 | +# options. |
michael@148 | 81 | |
michael@148 | 82 | # Base directory where to store runtime data. |
michael@148 | 83 | -#base_dir = /var/run/dovecot/ |
michael@148 | 84 | +#base_dir = @l_prefix@/var/dovecot/run |
michael@148 | 85 | |
michael@204 | 86 | # Protocols we want to be serving: imap imaps pop3 pop3s managesieve |
michael@148 | 87 | # If you only want to use dovecot-auth, you can set this to "none". |
michael@204 | 88 | @@ -43,7 +42,7 @@ |
michael@204 | 89 | # listen = *:12000 |
michael@148 | 90 | # .. |
michael@148 | 91 | # } |
michael@148 | 92 | -#listen = * |
michael@148 | 93 | +#listen = 127.0.0.1 |
michael@148 | 94 | |
michael@148 | 95 | # Disable LOGIN command and all other plaintext authentications unless |
michael@148 | 96 | # SSL/TLS is used (LOGINDISABLED capability). Note that if the remote IP |
michael@204 | 97 | @@ -65,7 +64,9 @@ |
michael@187 | 98 | |
michael@187 | 99 | # Log file to use for error messages, instead of sending them to syslog. |
michael@187 | 100 | # /dev/stderr can be used to log into stderr. |
michael@187 | 101 | -#log_path = |
michael@187 | 102 | +log_path = @l_prefix@/var/dovecot/log/dovecot-error.log # Error messages. |
michael@187 | 103 | +info_log_path = @l_prefix@/var/dovecot/log/dovecot-info.log # Info/debug messages. |
michael@187 | 104 | +log_timestamp = '%b %d %H:%M:%S ' # Prefix for each line written to log file. |
michael@187 | 105 | |
michael@187 | 106 | # Log file to use for informational and debug messages. |
michael@187 | 107 | # Default is the same as log_path. |
michael@204 | 108 | @@ -87,7 +88,7 @@ |
michael@148 | 109 | # IP or host address where to listen in for SSL connections. Remember to also |
michael@148 | 110 | # add imaps and/or pop3s to protocols setting. Defaults to same as "listen" |
michael@148 | 111 | # setting if not specified. |
michael@148 | 112 | -#ssl_listen = |
michael@148 | 113 | +#ssl_listen = 127.0.0.1 |
michael@148 | 114 | |
michael@204 | 115 | # Disable SSL/TLS support. <doc/wiki/SSL.txt> |
michael@204 | 116 | #ssl_disable = no |
michael@204 | 117 | @@ -96,8 +97,8 @@ |
michael@148 | 118 | # dropping root privileges, so keep the key file unreadable by anyone but |
michael@148 | 119 | # root. Included doc/mkcert.sh can be used to easily generate self-signed |
michael@148 | 120 | # certificate, just make sure to update the domains in dovecot-openssl.cnf |
michael@148 | 121 | -#ssl_cert_file = /etc/ssl/certs/dovecot.pem |
michael@148 | 122 | -#ssl_key_file = /etc/ssl/private/dovecot.pem |
michael@148 | 123 | +#ssl_cert_file = @l_prefix@/etc/dovecot/ssl/dovecot.crt |
michael@148 | 124 | +#ssl_key_file = @l_prefix@/etc/dovecot/ssl/dovecot.key |
michael@148 | 125 | |
michael@148 | 126 | # If key file is password protected, give the password here. Alternatively |
michael@148 | 127 | # give it when starting dovecot with -p parameter. Since this file is often |
michael@204 | 128 | @@ -140,7 +141,7 @@ |
michael@148 | 129 | # which login needs to be able to connect to. The sockets are created when |
michael@148 | 130 | # running as root, so you don't have to worry about permissions. Note that |
michael@148 | 131 | # everything in this directory is deleted when Dovecot is started. |
michael@148 | 132 | -#login_dir = /var/run/dovecot/login |
michael@148 | 133 | +#login_dir = @l_prefix@/var/dovecot/run/login |
michael@148 | 134 | |
michael@148 | 135 | # chroot login process to the login_dir. Only reason not to do this is if you |
michael@148 | 136 | # wish to run the whole Dovecot without roots. <doc/wiki/Rootless.txt> |
michael@204 | 137 | @@ -150,7 +151,7 @@ |
michael@148 | 138 | # and don't use it anywhere else. The user must also belong to a group where |
michael@148 | 139 | # only it has access, it's used to control access for authentication process. |
michael@148 | 140 | # Note that this user is NOT used to access mails. <doc/wiki/UserIds.txt> |
michael@148 | 141 | -#login_user = dovecot |
michael@187 | 142 | +#login_user = @l_nusr@ |
michael@148 | 143 | |
michael@148 | 144 | # Set max. process size in megabytes. If you don't use |
michael@148 | 145 | # login_process_per_connection you might need to grow this. |
michael@204 | 146 | @@ -271,8 +272,8 @@ |
michael@187 | 147 | # System user and group used to access mails. If you use multiple, userdb |
michael@187 | 148 | # can override these by returning uid or gid fields. You can use either numbers |
michael@204 | 149 | # or names. <doc/wiki/UserIds.txt> |
michael@187 | 150 | -#mail_uid = |
michael@187 | 151 | -#mail_gid = |
michael@187 | 152 | +#mail_uid = @l_rusr@ |
michael@187 | 153 | +#mail_gid = @l_rusr@ |
michael@187 | 154 | |
michael@187 | 155 | # Group to enable temporarily for privileged operations. Currently this is |
michael@187 | 156 | # used only with INBOX when either its initial creation or dotlocking fails. |
michael@204 | 157 | @@ -507,20 +508,24 @@ |
michael@187 | 158 | ## |
michael@148 | 159 | |
michael@148 | 160 | protocol imap { |
michael@187 | 161 | + # Override main log file paths |
michael@187 | 162 | + log_path = @l_prefix@/var/dovecot/log/imap-error.log |
michael@187 | 163 | + info_log_path = @l_prefix@/var/dovecot/log/imap-info.log |
michael@187 | 164 | + |
michael@148 | 165 | # Login executable location. |
michael@148 | 166 | - #login_executable = /usr/libexec/dovecot/imap-login |
michael@148 | 167 | + #login_executable = @l_prefix@/libexec/dovecot/imap-login |
michael@148 | 168 | |
michael@148 | 169 | # IMAP executable location. Changing this allows you to execute other |
michael@148 | 170 | # binaries before the imap process is executed. |
michael@204 | 171 | # |
michael@204 | 172 | # This would write rawlogs into ~/dovecot.rawlog/ directory: |
michael@204 | 173 | - # mail_executable = /usr/libexec/dovecot/rawlog /usr/libexec/dovecot/imap |
michael@204 | 174 | + # mail_executable = @l_prefix@/libexec/dovecot/rawlog @l_prefix@/libexec/dovecot/imap |
michael@204 | 175 | # |
michael@204 | 176 | # This would attach gdb into the imap process and write backtraces into |
michael@148 | 177 | # /tmp/gdbhelper.* files: |
michael@204 | 178 | - # mail_executable = /usr/libexec/dovecot/gdbhelper /usr/libexec/dovecot/imap |
michael@204 | 179 | + # mail_executable = @l_prefix@/libexec/dovecot/gdbhelper @l_prefix@/libexec/dovecot/imap |
michael@148 | 180 | # |
michael@148 | 181 | - #mail_executable = /usr/libexec/dovecot/imap |
michael@148 | 182 | + #mail_executable = @l_prefix@/libexec/dovecot/imap |
michael@148 | 183 | |
michael@148 | 184 | # Maximum IMAP command line length in bytes. Some clients generate very long |
michael@148 | 185 | # command lines with huge mailboxes, so you may need to raise this if you get |
michael@204 | 186 | @@ -534,7 +539,7 @@ |
michael@148 | 187 | # Support for dynamically loadable plugins. mail_plugins is a space separated |
michael@148 | 188 | # list of plugins to load. |
michael@148 | 189 | #mail_plugins = |
michael@148 | 190 | - #mail_plugin_dir = /usr/lib/dovecot/imap |
michael@148 | 191 | + #mail_plugin_dir = @l_prefix@/lib/dovecot/imap |
michael@148 | 192 | |
michael@148 | 193 | # Send IMAP capabilities in greeting message. This makes it unnecessary for |
michael@148 | 194 | # clients to request it with CAPABILITY command, so it saves one round-trip. |
michael@204 | 195 | @@ -576,12 +581,16 @@ |
michael@187 | 196 | ## |
michael@148 | 197 | |
michael@148 | 198 | protocol pop3 { |
michael@187 | 199 | + # Override main log file paths |
michael@187 | 200 | + log_path = @l_prefix@/var/dovecot/log/pop3-error.log |
michael@187 | 201 | + info_log_path = @l_prefix@/var/dovecot/log/pop3-info.log |
michael@187 | 202 | + |
michael@148 | 203 | # Login executable location. |
michael@148 | 204 | - #login_executable = /usr/libexec/dovecot/pop3-login |
michael@148 | 205 | + #login_executable = @l_prefix@/libexec/dovecot/pop3-login |
michael@148 | 206 | |
michael@148 | 207 | # POP3 executable location. See IMAP's mail_executable above for examples |
michael@148 | 208 | # how this could be changed. |
michael@148 | 209 | - #mail_executable = /usr/libexec/dovecot/pop3 |
michael@148 | 210 | + #mail_executable = @l_prefix@/libexec/dovecot/pop3 |
michael@148 | 211 | |
michael@148 | 212 | # Don't try to set mails non-recent or seen with POP3 sessions. This is |
michael@148 | 213 | # mostly intended to reduce disk I/O. With maildir it doesn't move files |
michael@204 | 214 | @@ -641,7 +650,7 @@ |
michael@148 | 215 | # Support for dynamically loadable plugins. mail_plugins is a space separated |
michael@148 | 216 | # list of plugins to load. |
michael@148 | 217 | #mail_plugins = |
michael@148 | 218 | - #mail_plugin_dir = /usr/lib/dovecot/pop3 |
michael@148 | 219 | + #mail_plugin_dir = @l_prefix@/lib/dovecot/pop3 |
michael@148 | 220 | |
michael@148 | 221 | # Workarounds for various client bugs: |
michael@148 | 222 | # outlook-no-nuls: |
michael@204 | 223 | @@ -701,6 +710,10 @@ |
michael@187 | 224 | ## |
michael@187 | 225 | |
michael@187 | 226 | protocol lda { |
michael@187 | 227 | + # Override main log file paths |
michael@187 | 228 | + log_path = @l_prefix@/var/dovecot/log/deliver-error.log |
michael@187 | 229 | + info_log_path = @l_prefix@/var/dovecot/log/deliver-info.log |
michael@187 | 230 | + |
michael@187 | 231 | # Address to use when sending rejection mails. |
michael@187 | 232 | postmaster_address = postmaster@example.com |
michael@187 | 233 | |
michael@204 | 234 | @@ -711,7 +724,7 @@ |
michael@148 | 235 | # Support for dynamically loadable plugins. mail_plugins is a space separated |
michael@148 | 236 | # list of plugins to load. |
michael@148 | 237 | #mail_plugins = |
michael@148 | 238 | - #mail_plugin_dir = /usr/lib/dovecot/lda |
michael@148 | 239 | + #mail_plugin_dir = @l_prefix@/lib/dovecot/lda |
michael@148 | 240 | |
michael@148 | 241 | # If user is over quota, return with temporary failure instead of |
michael@148 | 242 | # bouncing the mail. |
michael@204 | 243 | @@ -725,7 +738,7 @@ |
michael@148 | 244 | #deliver_log_format = msgid=%m: %$ |
michael@148 | 245 | |
michael@148 | 246 | # Binary to use for sending mails. |
michael@148 | 247 | - #sendmail_path = /usr/lib/sendmail |
michael@148 | 248 | + #sendmail_path = @l_prefix@/sbin/sendmail |
michael@148 | 249 | |
michael@148 | 250 | # Subject: header to use for rejection mails. You can use the same variables |
michael@148 | 251 | # as for rejection_reason below. |
michael@204 | 252 | @@ -736,7 +749,7 @@ |
michael@148 | 253 | #rejection_reason = Your message to <%t> was automatically rejected:%n%r |
michael@148 | 254 | |
michael@148 | 255 | # UNIX socket path to master authentication server to find users. |
michael@148 | 256 | - #auth_socket_path = /var/run/dovecot/auth-master |
michael@148 | 257 | + #auth_socket_path = @l_prefix@/var/dovecot/run/auth-master |
michael@148 | 258 | } |
michael@148 | 259 | |
michael@148 | 260 | ## |
michael@204 | 261 | @@ -744,7 +757,7 @@ |
michael@148 | 262 | ## |
michael@148 | 263 | |
michael@148 | 264 | # Executable location |
michael@148 | 265 | -#auth_executable = /usr/libexec/dovecot/dovecot-auth |
michael@148 | 266 | +#auth_executable = @l_prefix@/libexec/dovecot/dovecot-auth |
michael@148 | 267 | |
michael@148 | 268 | # Set max. process size in megabytes. |
michael@148 | 269 | #auth_process_size = 256 |
michael@204 | 270 | @@ -834,7 +847,7 @@ |
michael@148 | 271 | #auth_ntlm_use_winbind = no |
michael@148 | 272 | |
michael@148 | 273 | # Path for Samba's ntlm_auth helper binary. |
michael@148 | 274 | -#auth_winbind_helper_path = /usr/bin/ntlm_auth |
michael@148 | 275 | +#auth_winbind_helper_path = @l_prefix@/bin/ntlm_auth |
michael@148 | 276 | |
michael@148 | 277 | # Number of seconds to delay before replying to failed authentications. |
michael@148 | 278 | #auth_failure_delay = 2 |
michael@204 | 279 | @@ -867,7 +880,7 @@ |
michael@148 | 280 | |
michael@148 | 281 | #passdb passwd-file { |
michael@148 | 282 | # File contains a list of usernames, one per line |
michael@148 | 283 | - #args = /etc/dovecot.deny |
michael@148 | 284 | + #args = @l_prefix@/etc/dovecot/dovecot.deny |
michael@148 | 285 | #deny = yes |
michael@148 | 286 | #} |
michael@148 | 287 | |
michael@204 | 288 | @@ -950,13 +963,13 @@ |
michael@148 | 289 | # SQL database <doc/wiki/AuthDatabase.SQL.txt> |
michael@148 | 290 | #passdb sql { |
michael@148 | 291 | # Path for SQL configuration file, see doc/dovecot-sql-example.conf |
michael@148 | 292 | - #args = |
michael@148 | 293 | + #args = @l_prefix@/etc/dovecot/dovecot-sql.conf |
michael@148 | 294 | #} |
michael@148 | 295 | |
michael@148 | 296 | # LDAP database <doc/wiki/AuthDatabase.LDAP.txt> |
michael@148 | 297 | #passdb ldap { |
michael@148 | 298 | # Path for LDAP configuration file, see doc/dovecot-ldap-example.conf |
michael@148 | 299 | - #args = |
michael@148 | 300 | + #args = @l_prefix@/etc/dovecot/dovecot-ldap.conf |
michael@148 | 301 | #} |
michael@148 | 302 | |
michael@148 | 303 | # vpopmail authentication <doc/wiki/AuthDatabase.VPopMail.txt> |
michael@204 | 304 | @@ -1021,13 +1034,13 @@ |
michael@148 | 305 | # SQL database <doc/wiki/AuthDatabase.SQL.txt> |
michael@148 | 306 | #userdb sql { |
michael@148 | 307 | # Path for SQL configuration file, see doc/dovecot-sql-example.conf |
michael@148 | 308 | - #args = |
michael@148 | 309 | + #args = @l_prefix@/etc/dovecot/dovecot-sql.conf |
michael@148 | 310 | #} |
michael@148 | 311 | |
michael@148 | 312 | # LDAP database <doc/wiki/AuthDatabase.LDAP.txt> |
michael@148 | 313 | #userdb ldap { |
michael@148 | 314 | # Path for LDAP configuration file, see doc/dovecot-ldap-example.conf |
michael@148 | 315 | - #args = |
michael@148 | 316 | + #args = @l_prefix@/etc/dovecot/dovecot-ldap.conf |
michael@148 | 317 | #} |
michael@148 | 318 | |
michael@148 | 319 | # vpopmail <doc/wiki/AuthDatabase.VPopMail.txt> |
michael@204 | 320 | @@ -1040,7 +1053,7 @@ |
michael@187 | 321 | # authentication with BSDs internally accesses shadow files, which also |
michael@187 | 322 | # requires roots. Note that this user is NOT used to access mails. |
michael@187 | 323 | # That user is specified by userdb above. |
michael@187 | 324 | - user = root |
michael@187 | 325 | + user = @l_nusr@ |
michael@187 | 326 | |
michael@187 | 327 | # Directory where to chroot the process. Most authentication backends don't |
michael@187 | 328 | # work if this is set, and there's no point chrooting if auth_user is root. |
michael@204 | 329 | @@ -1064,7 +1077,7 @@ |
michael@148 | 330 | # Master socket provides access to userdb information. It's typically |
michael@148 | 331 | # used to give Dovecot's local delivery agent access to userdb so it |
michael@148 | 332 | # can find mailbox locations. |
michael@148 | 333 | - #path = /var/run/dovecot/auth-master |
michael@168 | 334 | + #path = @l_prefix@/var/dovecot/run/auth-master |
michael@148 | 335 | #mode = 0600 |
michael@148 | 336 | # Default user/group is the one who started dovecot-auth (root) |
michael@148 | 337 | #user = |
michael@204 | 338 | @@ -1074,7 +1087,7 @@ |
michael@148 | 339 | # The client socket is generally safe to export to everyone. Typical use |
michael@148 | 340 | # is to export it to your SMTP server so it can do SMTP AUTH lookups |
michael@148 | 341 | # using it. |
michael@148 | 342 | - #path = /var/run/dovecot/auth-client |
michael@168 | 343 | + #path = @l_prefix@/var/dovecot/run/auth-client |
michael@148 | 344 | #mode = 0660 |
michael@148 | 345 | #} |
michael@148 | 346 | #} |
michael@204 | 347 | @@ -1088,7 +1101,7 @@ |
michael@148 | 348 | #auth external { |
michael@148 | 349 | # socket connect { |
michael@148 | 350 | # master { |
michael@148 | 351 | -# path = /var/run/dovecot/auth-master |
michael@148 | 352 | +# path = @l_prefix@/dovecot/run/auth-master |
michael@148 | 353 | # } |
michael@148 | 354 | # } |
michael@148 | 355 | #} |
michael@204 | 356 | @@ -1104,8 +1117,8 @@ |
michael@148 | 357 | # referenced using URIs in format "proxy::<name>". |
michael@148 | 358 | |
michael@148 | 359 | dict { |
michael@148 | 360 | - #quota = mysql:/etc/dovecot-dict-quota.conf |
michael@148 | 361 | - #expire = db:/var/lib/dovecot/expire.db |
michael@148 | 362 | + #quota = mysql:@l_prefix@/etc/dovecot/dovecot-dict-quota.conf |
michael@148 | 363 | + #expire = db:@l_prefix@/var/dovecot/lib/expire.db |
michael@148 | 364 | } |
michael@148 | 365 | |
michael@148 | 366 | # Path to Berkeley DB's configuration file. See doc/dovecot-db-example.conf |
michael@204 | 367 | @@ -1156,7 +1169,7 @@ |
michael@148 | 368 | # one file for each mailbox, eg. INBOX or sub.mailbox. cache_secs parameter |
michael@148 | 369 | # specifies how many seconds to wait between stat()ing dovecot-acl file |
michael@148 | 370 | # to see if it changed. |
michael@148 | 371 | - #acl = vfile:/etc/dovecot-acls:cache_secs=300 |
michael@148 | 372 | + #acl = vfile:@l_prefix@/etc/dovecot/dovecot-acls:cache_secs=300 |
michael@148 | 373 | |
michael@148 | 374 | # Convert plugin. If set, specifies the source storage path which is |
michael@148 | 375 | # converted to destination storage (mail_location) when the user logs in. |
michael@204 | 376 | @@ -1175,14 +1188,14 @@ |
michael@148 | 377 | # until the message can be saved within quota limits. The configuration file |
michael@148 | 378 | # is a text file where each line is in format: <priority> <mailbox name> |
michael@148 | 379 | # Mails are first deleted in lowest -> highest priority number order |
michael@148 | 380 | - #trash = /etc/dovecot-trash.conf |
michael@148 | 381 | + #trash = @l_prefix@/etc/dovecot/dovecot-trash.conf |
michael@148 | 382 | |
michael@148 | 383 | # Expire plugin. Mails are expunged from mailboxes after being there the |
michael@148 | 384 | # configurable time. The first expiration date for each mailbox is stored in |
michael@148 | 385 | # a dictionary so it can be quickly determined which mailboxes contain |
michael@148 | 386 | # expired mails. The actual expunging is done in a nightly cronjob, which |
michael@148 | 387 | # you must set up: |
michael@148 | 388 | - # dovecot --exec-mail ext /usr/libexec/dovecot/expire-tool |
michael@148 | 389 | + # dovecot --exec-mail ext @l_prefix@/libexec/dovecot/expire-tool |
michael@148 | 390 | #expire = Trash 7 Spam 30 |
michael@148 | 391 | #expire_dict = proxy::expire |
michael@148 | 392 | |
michael@148 | 393 | Index: src/deliver/deliver.c |
michael@204 | 394 | diff -Nau src/deliver/deliver.c.orig src/deliver/deliver.c |
michael@204 | 395 | --- src/deliver/deliver.c.orig 2009-02-27 00:31:13.000000000 +0100 |
michael@204 | 396 | +++ src/deliver/deliver.c 2009-05-27 14:29:11.983461484 +0200 |
michael@148 | 397 | @@ -41,7 +41,7 @@ |
michael@148 | 398 | #include <syslog.h> |
michael@148 | 399 | |
michael@148 | 400 | #define DEFAULT_CONFIG_FILE SYSCONFDIR"/dovecot.conf" |
michael@148 | 401 | -#define DEFAULT_SENDMAIL_PATH "/usr/lib/sendmail" |
michael@148 | 402 | +#define DEFAULT_SENDMAIL_PATH "@l_prefix@/sbin/sendmail" |
michael@148 | 403 | #define DEFAULT_ENVELOPE_SENDER "MAILER-DAEMON" |
michael@148 | 404 | |
michael@148 | 405 | /* After buffer grows larger than this, create a temporary file to /tmp |
michael@148 | 406 | Index: src/master/master-settings.c |
michael@204 | 407 | diff -Nau src/master/master-settings.c.orig src/master/master-settings.c |
michael@204 | 408 | --- src/master/master-settings.c.orig 2009-05-13 19:32:34.000000000 +0200 |
michael@204 | 409 | +++ src/master/master-settings.c 2009-05-27 14:29:11.985776641 +0200 |
michael@148 | 410 | @@ -178,14 +178,14 @@ |
michael@148 | 411 | MEMBER(syslog_facility) "mail", |
michael@148 | 412 | |
michael@148 | 413 | /* general */ |
michael@148 | 414 | - MEMBER(protocols) "imap imaps", |
michael@148 | 415 | - MEMBER(listen) "*", |
michael@148 | 416 | - MEMBER(ssl_listen) "", |
michael@148 | 417 | + MEMBER(protocols) "imap", |
michael@148 | 418 | + MEMBER(listen) "127.0.0.1", |
michael@148 | 419 | + MEMBER(ssl_listen) "127.0.0.1", |
michael@148 | 420 | |
michael@148 | 421 | - MEMBER(ssl_disable) FALSE, |
michael@148 | 422 | + MEMBER(ssl_disable) TRUE, |
michael@148 | 423 | MEMBER(ssl_ca_file) "", |
michael@148 | 424 | - MEMBER(ssl_cert_file) SSLDIR"/certs/dovecot.pem", |
michael@148 | 425 | - MEMBER(ssl_key_file) SSLDIR"/private/dovecot.pem", |
michael@148 | 426 | + MEMBER(ssl_cert_file) "@l_prefix@/etc/dovecot/ssl/dovecot.crt", |
michael@148 | 427 | + MEMBER(ssl_key_file) "@l_prefix@/etc/dovecot/ssl/dovecot.key", |
michael@148 | 428 | MEMBER(ssl_key_password) "", |
michael@148 | 429 | MEMBER(ssl_parameters_regenerate) 168, |
michael@148 | 430 | MEMBER(ssl_cipher_list) "", |
michael@148 | 431 | @@ -200,7 +200,7 @@ |
michael@148 | 432 | /* login */ |
michael@148 | 433 | MEMBER(login_dir) "login", |
michael@148 | 434 | MEMBER(login_executable) NULL, |
michael@148 | 435 | - MEMBER(login_user) "dovecot", |
michael@148 | 436 | + MEMBER(login_user) "@l_musr@", |
michael@148 | 437 | MEMBER(login_greeting) "Dovecot ready.", |
michael@148 | 438 | MEMBER(login_log_format_elements) "user=<%u> method=%m rip=%r lip=%l %c", |
michael@148 | 439 | MEMBER(login_log_format) "%$: %s", |
michael@204 | 440 | @@ -325,7 +325,7 @@ |
michael@148 | 441 | MEMBER(anonymous_username) "anonymous", |
michael@148 | 442 | MEMBER(krb5_keytab) "", |
michael@148 | 443 | MEMBER(gssapi_hostname) "", |
michael@148 | 444 | - MEMBER(winbind_helper_path) "/usr/bin/ntlm_auth", |
michael@148 | 445 | + MEMBER(winbind_helper_path) "@l_prefix@/bin/ntlm_auth", |
michael@148 | 446 | MEMBER(failure_delay) 2, |
michael@148 | 447 | |
michael@148 | 448 | MEMBER(verbose) FALSE, |