<html style="direction: ltr;">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<style type="text/css">body p { margin-bottom: 0.2cm; margin-top: 0pt; } </style>
</head>
<body style="direction: ltr;"
bidimailui-detected-decoding-type="UTF-8" bgcolor="#FFFFFF"
text="#000000">
<div class="moz-cite-prefix">On 05/07/13 16:16, Dotan Cohen wrote:<br>
</div>
<blockquote
cite="mid:CAKDXFkMyaai8_43=-g-tqjuGGeD9fV=ooYupm_fghBGzSF=4kw@mail.gmail.com"
type="cite">
<pre wrap="">Hi all. I need to set up a virtual alias (forwarder) and a virtual
mailbox on the same domain. I'm using Postfix on Ubuntu Server 12.04.
Here is my setup:
</pre>
</blockquote>
It has been ages since I've set up a system with postfix, so my
memory is rather sketchy. Here, however, is my setup:<br>
main.cf (relevant parts of it):<br>
<br>
virtual_mailbox_base = /var/spool/vmail<br>
virtual_mailbox_domains = <a class="moz-txt-link-freetext" href="ldap:/etc/postfix/ldap-domains.cf">ldap:/etc/postfix/ldap-domains.cf</a><br>
virtual_transport = virtual<br>
virtual_mailbox_maps = <a class="moz-txt-link-freetext" href="ldap:/etc/postfix/ldap-accounts.cf">ldap:/etc/postfix/ldap-accounts.cf</a><br>
virtual_alias_maps = <a class="moz-txt-link-freetext" href="ldap:/etc/postfix/ldap-aliases.cf">ldap:/etc/postfix/ldap-aliases.cf</a><br>
<br>
I'm using LDAP rather than plain files, but should not matter much
for our discussion. I see two things obviously different. One is
that you did not mention "virtual_transport" -shouldn't matter -
default is same as my setting.<br>
<br>
The other is that you did not have a virtual_alias_maps. This is
weird, as the maps are the one you claim actually work. This is
probably a copy/paste problem.<br>
<br>
As for your error message. I'd remove BOTH lines. The default for
both are to use the hash files.<br>
<br>
Let me know if this helped....<br>
<br>
Shachar<br>
</body>
</html>