Dominic Marks wrote:
On Sunday 17 July 2005 15:40, Marc Perkel wrote:
  
Actually maybe it's passwd-file I want? Docs are confusing.

auth passwd {
 userdb = passwd-file /etc/vmail/passwd.%d
 passdb = passwd-file /etc/vmail/shadow.%d
}
    

Yes. If the %d expansion happened at authentication time,
that would be correct.

You should (could) run the auth process as a non-root user as
a security enhancement since there is no need for root privs
with passwd-file authentication.

  
If that worked then all I would need then is a way to us %n instead of the whole email address to be the user that is looked up. The idea is that the domain name %d selects the file to look in and the %n part is the username within that file.