[Phamm] Per User Delivary
max power
el_shershaby at hotmail.com
Tue Mar 9 09:27:53 CET 2010
Hi Guys ,
i think i figure it out how to do per user delivary
first i am using dovecot: instead of maildrop: in mail plugin as i am using dovecot lda with no problems
what i am trying to do now is to transport user mail to there defined mailboxs on different servers based on the mailhost value
so the challange is to make all users that have mailhost pointing to the same server use dovecot for transport and other user that have mailhost NOT pointing to the same server be transported to there coresponding server using smtp
this exist in qmail , sorry if i can't express exactly cause english is not my native language
anyway the solution was the following
i found that ISPEnv2.schema have mailhost attrbitute so instead of using other schema , i just use phpldapadmin to add a new object to current users which is called mailAccount , then add the mailhost attr with "mail.example.com" which for example where the mail resides
to make the configuration easy in postfix , i use the same main.cf in phamm/examples dir with the added transport map that look like follow
xyz_server_host = $ldap_server_host
xyz_search_base = $ldap_search_base
xyz_query_filter = (&(|(mail=%s))(!(mailHost=$myhostname)))
xyz_result_attribute = mailHost
xyz_result_format = smtp:[%s]
xyz_cache = no
xyz_bind = yes
xyz_bind_dn = $ldap_bind_dn
xyz_bind_pw = $ldap_bind_pw
xyz_version = $ldap_version
transport_maps = ldap:xyz, hash:/etc/postfix/transport, ldap:transport
so now how it works , if user " test at example4.com" have mailhost "mail.example4.com" he got the mail relayed to mail.example4.com instead of local delivary using dovecot
please share your ideas if possible
what i am looking forward now is how to make phamm create this object by default "mailAccount" for new users and enable configure the mailhost attr using the interface ,, i am not a php developer and don't know how it works , any ideas
thanks in advance
_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
http://clk.atdmt.com/GBL/go/201469227/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rhx.it/pipermail/phamm/attachments/20100309/978db692/attachment.htm>
More information about the Phamm
mailing list