From: David W Bell [mailto:[EMAIL PROTECTED] > > I have a number of domains, but for simplicity I will restrict all > correspondence to just 3 of these, which are > > chaoscrypt.net > armourers-guild.net > sfuk.org.uk > > chaoscrypt.net is the default domain for the server > > I have all 3 of these in /etc/courier/locals, > /etc/courier/hosteddomains/locals and > /etc/courier/esmtpaccess.dir/locals > > I have Postgres set up and I can deliver mail to > [EMAIL PROTECTED] locally using using mailx and the recipient > 'david' > > What I want to set up is so that I can set up virtual users on all > of the domains - ie. > > [EMAIL PROTECTED] > [EMAIL PROTECTED] > [EMAIL PROTECTED] > [EMAIL PROTECTED] > > I thought this could be done by making the id field in my postgres > table equal to the full email address, but this doesn't seem to > work. > > So can someone please give me the answers to the following > questions > > 1) Can this be done > > 2) What config steps do I have to take to get it working > > 3) Is the postgres method impossible and would userdb do a better > job
1) Yes, this can be done. 2) Take all of the domains out of /etc/courier/locals. A domain can only be in hosteddomains or locals -- never both. 3) Either postgres or userdb should work just fine. My userdb works great with just under 1000 users. The backend database is more or less transparent. I use userdb mainly because I'm not familiar with any of the databases and I didn't want the hassle of trying to learn the DB configuration at the same time I'm trying to learn the mailserver configuration. My userdb works great with just under 1000 entries. Keep in mind that with the virtual user setup, there is no 'david' as far as the mailserver is concerned. There is only '[EMAIL PROTECTED]'. If you want to be able to refer to your default domain by name only, then leave that one in /etc/courier/locals, and refer to it by name only in the DB. I don't recommend that setup, just because it means that your DB entries are not all the same and you have to keep track of which entries need the name and which ones need the full email address. The deal with /etc/courier/locals is that any domain in that file will be stripped off incoming emails. For example, '[EMAIL PROTECTED]' will become 'david' if the domain is in /etc/courier/locals. Hopefully this helps a bit. Bowie ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
