Pawel Sawicki wrote:
Is there a way to mimic Postfix' "table search order" in Dovecot's LDAP configuration of pass_filter/user_filter?
(...)
Well I think I've managed to prepare a rather simple patch:
---
$ cvs diff -u src/deliver.c
Index: src/deliver.c
===================================================================
RCS file: /home/cvs/dovecot-lda/src/deliver.c,v
retrieving revision 1.39
diff -u -r1.39 deliver.c
--- src/deliver.c 8 Feb 2006 11:39:29 -0000 1.39
+++ src/deliver.c 21 Mar 2006 21:05:55 -0000
@@ -477,7 +477,6 @@
return NULL;
}
- script_path = home_expand(SIEVE_SCRIPT_PATH);
if (*script_path != '/' && *script_path != '\0') {
/* relative path. change to absolute. */
script_path = t_strconcat(getenv("HOME"), "/",
@@ -570,6 +569,23 @@
auth_socket = DEFAULT_AUTH_SOCKET_PATH;
ret = user_init(auth_socket, destination);
+
+ /*
+ * Try to check for Postfix-like catch-all virtual
mailbox address.
+ * Contributed by Pawel Sawicki