[Dovecot] using uid in ldap to send email with postfix to
dovecot-users!!
Karl Latiss
karl.latiss at atvert.com.au
Mon Mar 6 08:28:25 EET 2006
On Mon, 2006-03-06 at 07:09 +0100, hotten wrote:
> Hallo @All
>
> I want to use the uid entry in an ldap-database to send email to
> virtuell dovecot users.
>
> What have I to to in postfix??
>
> Allways get an error message user does not exist!!
>
> Can abybody help with an example??
>
> Thanks a lot
in main.cf
virtual_transport = virtual
virtual_mailbox_base = /var/spool/mail/vmail
virtual_mailbox_maps = ldap:virtualMailbox
virtual_mailbox_domains = hash:/etc/postfix/vmaildomains
virtual_minimum_uid = 1000
virtual_uid_maps = ldap:virtualUID
virtual_gid_maps = ldap:virtualGID
virtualMailbox_server_host = ho.st.na.me
virtualMailbox_search_base = ou=clients,dc=domain,dc=com,dc=au
virtualMailbox_query_filter = (uid=%s)
virtualMailbox_result_attribute = mailbox
virtualAliases_server_host = ho.st.na.me
virtualAliases_search_base = ou=clients,dc=domain,dc=com,dc=au
virtualAliases_query_filter = (maildrop=%s)
virtualAliases_result_attribute = mail
virtualUID_server_host = ho.st.na.me
virtualUID_search_base = ou=clients,dc=domain,dc=com,dc=au
virtualUID_query_filter = (uid=%s)
virtualUID_result_attribute = uidNumber
virtualGID_server_host = ho.st.na.me
virtualGID_search_base = ou=clients,dc=domain,dc=com,dc=au
virtualGID_query_filter = (uid=%s)
virtualGID_result_attribute = gidNumber
You don't need virtualUID/GID if you are using static UID/GID. Also make
sure you have a list of the domains you are accepting mail for in the
file referenced by virtual_mailbox_domains
--
Karl Latiss <karl.latiss at atvert.com.au>
Atvert Systems
More information about the dovecot
mailing list