Postfix and openldap

Hi all,

sorry for my newbie question, please excuse my mistakes if any.

I was trying to setup Virtualmin but when it finished i encountered this problem:

“A problem was found with your Postfix virtual maps : No map sources were found in the Postfix configuration”

I configured postfix to be use with openldap and the virtual aliases like this

Virtual Aliases

virtual_alias_maps = ldap:valiases
valiases_server_host = 127.0.0.1
valiases_search_base = ou=mailalias,ou=postfix,dc=,dc=,dc=
valiases_query_filter = (&(mail=%s)(objectClass=CourierMailAlias))
valiases_result_attribute = maildrop
aliases_bind = no

I have searched the forum and find out that i need to change

virtual_alias_maps = hash:/etc/postfix/virtual

so that virtualmin will work, but is there any work around for this problem?

Many thanks in advance

Howdy,

Well, before you get too far… are you sure you require LDAP? Using LDAP adds a lot of complexity to your setup… it becomes much trickier to both setup and maintain. If you don’t absolutely require it, you may want to think twice about using it :slight_smile:

There is a document though that may be able to help you get things figured out. I’m unfortunately not much of a LDAP guru, but hopefully there’s something in the writeup that will lend a hand! You can find the Virtualmin+LDAP instructions here:

http://www.virtualmin.com/documentation/id%2Ccombining_virtualmin_and_ldap