Re: popmap fallback
Haw Loeung <[email protected]>
| Newsgroups | gmane.mail.perdition.user |
|---|---|
| Organization | TPG Internet |
| Message-ID | <[email protected]> |
Hello Hugo, On Fri, 19 Nov 2010 12:42:30 am Hugo Monteiro wrote: > Hello list, > > We have perdition working for both POPS and IMAPS, using an LDAP > backend. Everything has been working fine and we are very glad that > there is such a fine product in the OSS world. > Now we have the special need to redirect a small set of email > accounts, that don't exist in the LDAP tree, to another storage > server. I started looking at the popmap feature and we would like to > use the regular expression backend, but we've run into trouble. > > my popmap.re file looks like > > redir-.*: mailbak2.domain.com:995 > > This allows us to redirect every account on the form of > redir-username to an alternate server. But using this will not allow > us to use the LDAP backend also. > > Is there any way to make perdition fallback in any of the cases? i.e. > .. either try redir-.* and perform the redirect if matches, doing > the ldap lookup otherwise, or perform the ldap lookup and next try > the popmap, in the case ldap returned no entries. > > I have also tried a global redirection, in the form of .*: > mailbak2.domain.com:995 and redirection only worked for POP > connections, not IMAP. Did i miss anything, or is this supposed to > work for IMAP only? > We had this requirement when we needed to migrate mailboxes for entire domains on different mail systems onto ours. We managed to achieve this by using the following in the Perdition configuration: query_key \\U,+default@\\d So if the user doesn't exist in LDAP, it would try to look for "+default@<domain>". We would then have an LDAP record something along these lines: dn: uid=+default@<domain>, ... uid: +default@<domain> cn: +default@<domain> mailLocalAddress: +default@<domain> mailHost: <old-server> -- ____________________________________________________________________________ *Haw Loeung* | System Administrator *T* 02 9850 0902 | *F* 02 9850 0817 63-65 Waterloo Road, Macquarie Park NSW 2113 [email protected] | http://www.tpg.com.au *TPG Telecom* *(ASX: TPM)* ______________________________________________ Perdition-users mailing list [email protected] http://lists.vergenet.net/listinfo/perdition-users
signature.asc
(application/pgp-signature, 490 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iQEcBAABAgAGBQJM5dQlAAoJEDDvhERxNeNmggMIAI+4kByF+tquhvexc6t5PH6O iAFYhY2We4722e68M5p2kCJ1ZrMl3h0NcIWoX4PxMQ5fILd8zVGo1zHPRt4k8e35 Tx2sxBSuEsYwHAAncDOTLACHNh2UzTgsbYHuHCHVjOUI5cSBzqyMoVd+Ai22nzeI jrPCO78ZRIqdgZKuUSZ/HmrkP0Ou1ThGp3LNvKQuBfMHyxgyz/i9GA4O9EYoRqoA OLAM2zaXs344RtwgxdyuiS4XuDOJMP1LhFvPhh2SCA4Tu8klOo94H0pL5cUefr5B v3hgUy1zszUhC4/r2GoVun2mqvrCtZG1YO0w8mtld3s5UqX+nn/MZwm5ZwfFocY= =EjOB -----END PGP SIGNATURE-----