-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > Ok, I've been reading docs, and now know that it can access a mysql > database. So I guess my question now is: if it can't find the user > there, will it look for it in the /etc/password file afterwards? > Or the other way around? It has to look in both, because my > virtual users are in the database and my local users are in > /etc/passwd. >
I believe that the local /etc/passwd lookup is done first, followed by the mysql lookup. > Ok, I now know the name of the file is actually ".mailfilter". I > also know that my virtual users will need a homedir specified for > them in my database. Correct me if I'm wrong, but that means > maildrop *will* use that file for virtual users, yes? Global delivery instructions will always be read from /etc/maildroprc, and local users will always place user-specific instructions in a file called .mailfilter in their home directories. As far as filter files for virtual users, you have two choices: Option 1. Do just as you said. Create a .mailfilter file in the home directory where your virtual mailboxes are located, and then use it to filter mail for everybody. Option 2. Have a separate .mailfilter for each virtual user. To do this, you will need to configure your MTA to deliver the mail to a program. The program is maildrop, and the argument you should pass it is the name of the file to use as the mail filter. For example, you could place .mailfilter-jon, and .mailfilter-bob in the directory containing virtual users. Then, set your MTA to deliver mail as follows: mail to jon should be directed to "| <path to maildrop> <homedir>/.mailfilter-jon" mail to bob should be directed to "| <path to maildrop> <homedir>/.mailfilter-bob" I hope all this is clear. If not, please feel free to ask for clarification. - --- Joseph C. Lininger [EMAIL PROTECTED] - ----- Original Message ----- From: "Shaun T. Erickson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, March 21, 2004 12:32 AM Subject: Re: [courier-users] Maildrop questions. > I wrote: > > > I'm considering using maildrop in place of my local and virtual > > delivery agents in postfix. > > > > 1) Can maildrop access user credentials from my mysql database > > and/or /etc/passwd, as I currently have courier-imap doing? > > > 2) I know that for local users, who have actual accounts on the > > system, I can put a .maildroprc (I think that's it) file in > > their home directory to handle delivery of mail to various > > folders. Is there anyway to achieve this for my virtual users, > > who do not have accounts? > > > -ste > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO > of GenToo technologies. Learn everything from fundamentals to > system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=clic > k _______________________________________________ > courier-users mailing list > [EMAIL PROTECTED] > Unsubscribe: > https://lists.sourceforge.net/lists/listinfo/courier-users -----BEGIN PGP SIGNATURE----- Version: PGP 8.0.3 iQA/AwUBQF1eiyenap9Jqj2wEQI0xACgyY56Par0JkoUwfIKcwRgMMvltH4AoMY1 IY5AIuWEntuN9x6eU+10Kz3C =BuSv -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
