Lindsay Haisley writes:
Here's what I'd like to do for virtual accounts. The setup is easy, getting
courier to work with it is where I have questions.
I want to create virtual mail accounts so that the id for each account is
unique, tied to the domain name under which the virtual account will be
used. I'm using authmysql and authpam, the former being checked first.
I can set up a virtual mailbox account so that the id field in the mysql
passwd table contains user@domain, so POP logins will be unique, and the
'home' field will be set to something like /home/virtmail/domain/user, which
uniquely defines the mailbox. This works fine for POP access, but won't
work for esmtp, which gives me a "User unknown" in response to rcpt to:
<user@domain>. If I set the ID field to "user" instead of "user@domain"
Put domain in hosteddomains, instead of locals.