4 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Maildrop questions.
FromSent OnAttachments
Shaun T. EricksonMar 20, 2004 2:05 pm 
Shaun T. EricksonMar 20, 2004 11:32 pm 
Joseph C. LiningerMar 21, 2004 1:22 am 
Shaun T. EricksonMar 21, 2004 8:08 am 
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:Re: [courier-users] Maildrop questions.Actions...
From:Joseph C. Lininger (jba@pcdesk.net)
Date:Mar 21, 2004 1:22:38 am
List:net.sourceforge.lists.courier-users

-----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 jba@pcdesk.net - ----- Original Message ----- From: "Shaun T. Erickson" <st@smxy.org> To: <cour@lists.sourceforge.net> 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

-----BEGIN PGP SIGNATURE----- Version: PGP 8.0.3

iQA/AwUBQF1eiyenap9Jqj2wEQI0xACgyY56Par0JkoUwfIKcwRgMMvltH4AoMY1 IY5AIuWEntuN9x6eU+10Kz3C =BuSv -----END PGP SIGNATURE-----