3 messages in net.sourceforge.lists.courier-users[courier-users] Both local and virtua...
FromSent OnAttachments
Andrei IordacheJul 25, 2004 11:52 am 
Sam VarshavchikJul 25, 2004 12:17 pm 
Matthew WilsonJul 26, 2004 6:20 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] Both local and virtual users in the same domain namespacesActions...
From:Andrei Iordache (andr@hotmail.com)
Date:Jul 25, 2004 11:52:38 am
List:net.sourceforge.lists.courier-users

Hello list,

It is a while now since I'm trying to figure out how to have both local and virtual users in the same domain namespaces. I am hosting 6 domains and I have several users, few of them local. It is ok if the local users receive mail @all.the.6.domains.i.host. But most of the users are NOT local and I cannot seem to figure out how to setup courier this so it will accept mail for loca@domain-1.tld AND virt@domain-1.tld (and the same for domain-2, domain-3... domain-6)in the same time.

I added all 6 domains to esmtpacceptmailfor.dir and run makeacceptmailfor.

Now, If I add the 6 domains to locals, I can only receive mail for the local users. If on the other hand I put them in hosteddomains (and run makehosteddomains and restart courier, just to be sure), I cannot receive mail for local users anymore. I cannot have the 6 domains both in locals and hosteddomains because locals take precedence and hosteddomains is never checked. Right ?

I use authdaemonrc, with authcustom, authcram, authuserdb and authpam modules. It is working correctly.

The local users are in /etc/passwd. The virtual users are in the userdb file, I run makeuserdb whenever I change that file (I even restart courier), and the e-mail is received correctly as long as I have the domains listed in hosteddomains (but not in locals). But how can I make that bot are checked ? Or something ? Because I am trying NOT to have to create domains of the type virtual.domain1.tld for the virtual users, they will not be in the same namespace as the local users.

I have read the manuals, I have searched the list, I have searched the web, I used courier for 2 years now, I have overcame on my own many problems with compilation and configuration, I thought I am fairly familiar with it. But this is something I just don't seem to figure it out. What am I missing ?

Thanks for looking