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