Hi: On Thu, Jan 29, 2009 at 4:50 PM, Victor Duchovni <victor.ducho...@morganstanley.com> wrote: > On Thu, Jan 29, 2009 at 04:46:01PM -0500, Jason Voorhees wrote: > >> Ok, something else. Maybe isn't too appropiate for this post to use >> jvoorhe...@gmail.com as result_format because has no relation with my >> virtual domains scenario. >> What I really try to do is: >> >> When accountActive=TRUE for some use, then return (result_format) >> %...@autoreply.domain.com >> >> But Postfix never send the email to u...@autoreply.domain.com, however >> postmap does return the expected value: >> >> $ postmap -q u...@domain.com ldap:/etc/postfix/phamm_vacation.cf >> u...@autoreply.domain.com > >> > virtual_mailbox_maps = ldap:/etc/postfix/phamm_vacation.cf > > Why do you expect virtual_mailbox_maps to perform address rewriting? > You probably wanted virtual_alias_maps instead.
Yes, it was my mistake. I wanted more security (not using .forward files) using virtual(8) instead of local(8) and I suposed that the options was to use virtual mailboxes, but I misinterpreted the correct Postfix working. So I changed my configuration to this: mydestination = localhost virtual_alias_maps = ldap:/etc/postfix/phamm_alias.cf, ldap:/etc/postfix/phamm_usuarios.cf virtual_alias_domains = ldap:/etc/postfix/phamm_dominios_virtuales.cf mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp I disabled the use of ldap:/etc/postfix/phamm_vacation.cf so I'm not rewriting anything.. yet. When I try to send and email to u...@domain.com (domain.com is a virtual domain hosted in my LDAP tree) I get the error "user unknown" from Postfix. Why postfix isn't recognizing u...@domain.com as a valid existent account? It is because u...@domain.com doesn't exist in the local unix account database? If the previous it's true... then should I include $virtual_alias_maps in local_recipient_maps? (I did this but it happens the same "unknown user" error) When I use virtual_alias_maps and virtual_alias_domains, is Postfix using local(8) to deliver? I get a little confused about the relation between Postfix, local_transport, mailbox_transport, local(8) and virtual(8). I thought Postfix would use virtual(8) ONLY when using virtual mailboxes. Is this correct? > -- > Viktor. > > Disclaimer: off-list followups get on-list replies or get ignored. > Please do not ignore the "Reply-To" header. > > To unsubscribe from the postfix-users list, visit > http://www.postfix.org/lists.html or click the link below: > <mailto:majord...@postfix.org?body=unsubscribe%20postfix-users> > > If my response solves your problem, the best way to thank me is to not > send an "it worked, thanks" follow-up. If you must respond, please put > "It worked, thanks" in the "Subject" so I can delete these quickly. >