Hi Haw,
On 11/19/2010 01:34 AM, Haw Loeung wrote:
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>
Thank you for your input.
I already suspected that i would have to use LDAP to be able to validate
the user, but i'd like it to be a last resort effort.
As for my concerns regarding IMAP. Can you confirm that i will be able
to apply those rules both for POP and IMAP? I'm asking because the
mapping i tried with popmap only worked for POP access.
Regards,
Hugo Monteiro.
--
fct.unl.pt:~# cat .signature
Hugo Monteiro
Email : hugo.monteiro(a)fct.unl.pt
Telefone : +351 212948300 Ext.15307
Web :
http://hmonteiro.net
Divisão de Informática
Faculdade de Ciências e Tecnologia da
Universidade Nova de Lisboa
Quinta da Torre 2829-516 Caparica Portugal
Telefone: +351 212948596 Fax: +351 212948548
www.fct.unl.pt apoio(a)fct.unl.pt
fct.unl.pt:~# _