sendmail and cyrus (virtdomains)

Andrew B. Panphiloff andrew at panfilov.org.ru
Mon Jun 13 10:45:55 EDT 2005


Two month ago I have setuped postfix with ldap lookups:

main.cf (qmail.schema used):
================================>8======================================
virtual_mailbox_domains = ldap:domains
domains_server_host = localhost
domains_server_port = 389
domains_base_dn = o=ydn.ru
domains_scope = one
domains_bind_dn = uid=postfix,ou=Admins,o=ydn.ru
domains_bind_pw = secret
domains_search_base = ou=domains,o=ydn.ru
domains_query_filter = (&(objectClass=top)(ou=%s))
domains_result_attribute = ou

virtual_mailbox_maps = ldap:ldapvirtual
ldapvirtual_server_host = localhost
ldapvirtual_server_port = 389
ldapvirtual_base_dn = o=ydn.ru
ldapvirtual_scope = sub
ldapvirtual_bind_dn = uid=postfix,ou=Admins,o=ydn.ru
ldapvirtual_bind_pw = secret
ldapvirtual_search_base = ou=domains,o=ydn.ru
ldapvirtual_query_filter = (|(mail=%s)(mailAlternateAddress=%s))
ldapvirtual_result_attribute = mailForwardingAddress


virtual_alias_maps = ldap:ldapvirtual
ldapvirtual_server_host = localhost
ldapvirtual_server_port = 389
ldapvirtual_base_dn = o=ydn.ru
ldapvirtual_scope = sub
ldapvirtual_bind_dn = uid=postfix,ou=Admins,o=ydn.ru
ldapvirtual_bind_pw = secret
ldapvirtual_search_base = ou=domains,o=ydn.ru
ldapvirtual_query_filter = (|(mail=%s)(mailAlternateAddress=%s))
ldapvirtual_result_attribute = mailForwardingAddress

================================8<======================================

I.e. postfix always looks for mail or mailAlternateAddress and always
get mailForwardingAddress, after that
it forwards mail to lmtp (virtual_transport =
lmtp:unix:/var/imap/socket/lmtp) or another host. But due to
ugly postfix's logs I need replace postfix with sendmail, but I'm
beginner at sendmail, so has anybody success story
about setup sendmail with cyrus virtdomains and ldap lookups ?
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list