postfix-users October 2010 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Forwarding Mail to Local Account AND External Add

Forwarding Mail to Local Account AND External Address with LDAP ...

From: Christopher Koeber <ckoeber_at_nospam>
Date: Thu Oct 21 2010 - 02:09:04 GMT
To: Postfix users <postfix-users@postfix.org>

Hello,

My guess is that this is an easy question but I am not sure.

I would like for the client to have the ability to forward email BUT I also
need to keep a copy of that message. So, I have the following template that
I believe can work for an alias file for an LDAP setup:

server_host = [LDAP Server here]
search_base = [Search Base Here]
version=3
timeout = 10
bind = yes
bind_dn = [bind-dn here]
bind_pw = [bind password here]
query_filter = (mail=%s)
result_attribute = (local account?) + (forwarding account?)

Now, I have a separate attribute called vacationForward within my LDAP
system that contains the forwarding address. My local email address is
stored as mail within LDAP.

The problem is that I would need to return TWO results, correct? I need to
return the local account and the forwarding account, correct?

Thanks for any help with this.

Regards,
Christopher Koeber