I'm tring to get out of my windows mail server I'm trying to make work a server with exim4 and openldap, but I can't make it work. I've a directory with the following configuration:
[image: +-] <http://localhost/phpldapadmin/index.php?server_id=0#>[image: ->]<http://localhost/phpldapadmin/cmd.php?cmd=template_engine&server_id=0&dn=dc%3Dltu%2Cdc%3Dsld%2Cdc%3Dcu> dc=lll,dc=sld,dc=cu (2...)<http://localhost/phpldapadmin/cmd.php?cmd=template_engine&server_id=0&dn=dc%3Dltu%2Cdc%3Dsld%2Cdc%3Dcu> [image: --][image: ->]<http://localhost/phpldapadmin/cmd.php?cmd=template_engine&server_id=0&dn=cn%3Dadmin%2Cdc%3Dltu%2Cdc%3Dsld%2Cdc%3Dcu> cn=admin<http://localhost/phpldapadmin/cmd.php?cmd=template_engine&server_id=0&dn=cn%3Dadmin%2Cdc%3Dltu%2Cdc%3Dsld%2Cdc%3Dcu> [image: +-] <http://localhost/phpldapadmin/index.php?server_id=0#>[image: ->]<http://localhost/phpldapadmin/cmd.php?cmd=template_engine&server_id=0&dn=ou%3Dusuarios%2Cdc%3Dltu%2Cdc%3Dsld%2Cdc%3Dcu> ou=usuarios (1....)<http://localhost/phpldapadmin/cmd.php?cmd=template_engine&server_id=0&dn=ou%3Dusuarios%2Cdc%3Dltu%2Cdc%3Dsld%2Cdc%3Dcu> [image: |][image: +-] <http://localhost/phpldapadmin/index.php?server_id=0#>[image: ->]<http://localhost/phpldapadmin/cmd.php?cmd=template_engine&server_id=0&dn=ou%3Dcucalambe%2Cou%3Dusuarios%2Cdc%3Dltu%2Cdc%3Dsld%2Cdc%3Dcu> ou=cucalambe (3.....)<http://localhost/phpldapadmin/cmd.php?cmd=template_engine&server_id=0&dn=ou%3Dcucalambe%2Cou%3Dusuarios%2Cdc%3Dltu%2Cdc%3Dsld%2Cdc%3Dcu> <http://localhost/phpldapadmin/cmd.php?cmd=template_engine&server_id=0&container=ou%3Dcucalambe%2Cou%3Dusuarios%2Cdc%3Dltu%2Cdc%3Dsld%2Cdc%3Dcu> [image: |][image: |][image: --][image: ->]<http://localhost/phpldapadmin/cmd.php?cmd=template_engine&server_id=0&dn=cn%3Daabreu%2Cou%3Dcucalambe%2Cou%3Dusuarios%2Cdc%3Dltu%2Cdc%3Dsld%2Cdc%3Dcu> cn=aabreu<http://localhost/phpldapadmin/cmd.php?cmd=template_engine&server_id=0&dn=cn%3Daabreu%2Cou%3Dcucalambe%2Cou%3Dusuarios%2Cdc%3Dltu%2Cdc%3Dsld%2Cdc%3Dcu> [image: |][image: |][image: --][image: ->]<http://localhost/phpldapadmin/cmd.php?cmd=template_engine&server_id=0&dn=cn%3Dabatista%2Cou%3Dcucalambe%2Cou%3Dusuarios%2Cdc%3Dltu%2Cdc%3Dsld%2Cdc%3Dcu> cn=abatista<http://localhost/phpldapadmin/cmd.php?cmd=template_engine&server_id=0&dn=cn%3Dabatista%2Cou%3Dcucalambe%2Cou%3Dusuarios%2Cdc%3Dltu%2Cdc%3Dsld%2Cdc%3Dcu> [image: |][image: |][image: --][image: ->]<http://localhost/phpldapadmin/cmd.php?cmd=template_engine&server_id=0&dn=cn%3Dabel%2Cou%3Dcucalambe%2Cou%3Dusuarios%2Cdc%3Dltu%2Cdc%3Dsld%2Cdc%3Dcu> cn=abel<http://localhost/phpldapadmin/cmd.php?cmd=template_engine&server_id=0&dn=cn%3Dabel%2Cou%3Dcucalambe%2Cou%3Dusuarios%2Cdc%3Dltu%2Cdc%3Dsld%2Cdc%3Dcu> [image: |][image: |][image: --][image: ->]<http://localhost/phpldapadmin/cmd.php?cmd=template_engine&server_id=0&dn=cn%3Dabel19%2Cou%3Dcucalambe%2Cou%3Dusuarios%2Cdc%3Dltu%2Cdc%3Dsld%2Cdc%3Dcu> cn=abel19<http://localhost/phpldapadmin/cmd.php?cmd=template_engine&server_id=0&dn=cn%3Dabel19%2Cou%3Dcucalambe%2Cou%3Dusuarios%2Cdc%3Dltu%2Cdc%3Dsld%2Cdc%3Dcu> There I've the users, but I can't make exim's lookup for ldap work. The string tha I'm trying to expand is: *POP_WAY = ${lookup ldap {user=cn=admin,dc=lll,dc=sld,dc=cu pass=XXXXXXXXX ldap://XXX.XXX.XXX.XXX/ou=cucalambe,ou=usuarios,dc=lll,dc=sld,dc=cu?pop?sub?cn=aguzmans}} * (The search filter parameter (*cn=aguzmans*) is fixed because this is a test) In the pop atribute I'm storing the path to te mail box of each user. The transport that I'm using is this one: my_local_delivery_transport: driver = appendfile envelope_to_add return_path_add maildir_format = true create_directory = true directory = POP_WAY delivery_date_add group = Debian-exim user = Debian-exim #$local_part mode = 0660 * The logs I'm getting are the followings: *2010-05-22 13:52:58 1OFssc-0002X9-H7 <= [email protected] <http://webmail.ltu.sld.cu/src/compose.php?send_to=ags%40zeus.ltu.sld.cu> U=ags P=local S=369 2010-05-22 13:52:58 1OFssc-0002X9-H7 == [email protected] <http://webmail.ltu.sld.cu/src/compose.php?send_to=aguzmans%40cucalambe.ltu.sld.cu> R=my_local_domains_router T=my_local_delivery_transport defer (-21): appendfile: file or directory name "" is not absolute Besides I'm sure that the exim is connecting correctly to the OpenLDAP server because if I change *cn=aguzmans* by something like cn=* I get an error with a massage that says that there is to many registers in the result with the number of entrances in the ldap directory.* * What I'm donig wrong? thanks -- ## List details at http://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/
