| |||||||||||||||||||||||||||||||
|
> > Rajkumar S wrote: > > Hi, > > > > I am learning postfix with The Book of Postfix. I have created virtual > > domains using virtual_mailbox_domains and it's working fine. Now I > > need to relay mails for another server using postfix, (eventually > > after anti spam and anti virus). So I added relay_domains and > > transport_maps. But when I sent mails to a domain in relay_domains I > > get an error: 550 5.1.1 <raj>: Recipient address rejected: > > User unknown > > in virtual mailbox table > > > > Relaying works if I comment out all my virtual_* entries. I can also > > sent without any problems to domains in my virtual_mailbox_domains > > > > main.cf: > > virtual_mailbox_domains = proxy:ldap:/etc/postfix/virtual_ldap/domains > > do not list a domain in multiple domain classes. so sarovar.org, > users.sarovar.org, lists.sarovar.org should not be found in > virtual_mailbox_domains. They were not listed in virtual_mailbox_domains postfix:/etc/postfix# postmap -q sarovar.org ldap:/etc/postfix/virtual_ldap/domains postmap: warning: dict_ldap_open: /etc/postfix/virtual_ldap/domains: Fixed query_filter (objectClass=dcObject) is probably useless horde.usablebytes.com,yios.org,acidpuppies.com,asnetproxy.homelinux.org I have now fixed (objectClass=dcObject) to (&(defaultDomain=%s)(objectClass=dcObject)) and it's now working. postfix:/etc/postfix# postmap -q asnetproxy.homelinux.org ldap:/etc/postfix/virtual_ldap/domains asnetproxy.homelinux.org Thanks for your answer. raj
| ||||||||||||||||||||||||||||||
© 2004-2008 readlist.com