<html>
  <head>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I've making a setup for a Debian 7 (wheezy) trying to follow
    strictly the guide in README.Exim4.Debian , but there are two things
    that I think lack to that file:<br>
    <br>
    <b>1.</b> A problem seen in /var/log/exim4/mainlog:<br>
    <i>failed to expand condition
      "${lookup{$local_part@$domain}lsearch{/var/lib/mailman/data/virtual-mailman}{1}{0}}"


      for mailman_router router: failed to open
      /var/lib/mailman/data/virtual-mailman for linear search: No such
      file or directory</i><br>
    <br>
    My solution:<br>
    <tt>$ EximUser="$(sudo ps -A -o pid,ppid,pcpu,user,cmd | grep -ie
      'exim' | grep -ve ' grep ' | cut -f 2 -d '.' | grep -ve '. root '
      | cut -f 2 -d ' ' | head --lines=1)"</tt><tt><br>
    </tt><tt>$ sudo touch /var/lib/mailman/data/virtual-mailman</tt><tt><br>
    </tt><tt>$ sudo chown ${EximUser}:list
      /var/lib/mailman/data/virtual-mailman</tt><tt><br>
    </tt><tt>$ sudo chmod ug=rw,o=r
      /var/lib/mailman/data/virtual-mailman</tt><br>
    <br>
    <b>2.</b> Cannot create lists from web interface with the target
    domain:<br>
    <i>Error: Unknown virtual host: lista.cnt.cat</i><br>
    <br>
    My solution: add the following 2 lines to /etc/mailman/mm_cfg.py ,
    after POSTFIX_STYLE_VIRTUAL_DOMAINS declaration:<br>
    <tt>for CurrentDomain in POSTFIX_STYLE_VIRTUAL_DOMAINS:</tt><tt><br>
    </tt><tt> add_virtualhost(CurrentDomain, CurrentDomain)</tt><br>
    <br>
    <br>
  </body>
</html>