Re: [courier-users] Howto: Virtual mail users on courier

2003-12-14 Thread Dave Kliczbor
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


[ Discussion of http://da.andaka.org/Doku/courier-vmaildir.html ]

Bowie Bailey wrote:
 #1
 Do NOT use dots in the directory names! It somehow confuses at
 least one part of the courier mail suite. Instead, substitute
 dots with e.g. dashes.

 What problems did you have with dots?  All of my domain directories
 have dots and I've never run into any problems.

I just figured out what I thought wrong ... Somehow I got the idea that
the first part of maligree-yi-org/[EMAIL PROTECTED] corresponds
in some way to the directory. Silly thought, now that I think it over...
Changed it.

 #2
 userdb maligree-yi-org/[EMAIL PROTECTED] set home=/var/mail \
 mail=/var/mail/domains/maligree-yi-org/maligree/ uid=8 gid=8

[..]
 In your case, I would rather do this:
 home=/var/mail/domains/maligree-yi-org/maligree/

Tried it. You convinced me.
I thought the home field corresponds to the real un*x home dir.

 And if you create an /etc/courier/maildroprc file like this:
[..]

I do not like the idea of creating system-wide rules for spam handling.
I'd rather like my users to choose (OK, in this setup I need to give
them a web interface or similar to make their settings).

 #3
 echo |spamc |maildrop /var/mail/.maildroprc .courier

 If you set maildrop as DEFAULTDELIVERY in /etc/courier/courierd, then
 you don't have to specify it in everyone's .courier file.  And with
 the directory structure I mentioned above, you don't need to specify
 the maildroprc location.  Also see above for an alternate way to call
 spamc.

I'd rather keep as many settings as possible at their default value.

Thanks for your answer, Bowie.

cu
 Dave KLiczbor
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQE/3IkZ9gy0Ccu0VlMRAscGAKCH1kSh4WA0GP1IS6iFg1Xd3fOcxwCeIl5u
c4qll/yeD+Vlw8nMg0z0GYQ=
=drqr
-END PGP SIGNATURE-



---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Howto: Virtual mail users on courier

2003-12-09 Thread Bowie Bailey
From: Dave Kliczbor [mailto:[EMAIL PROTECTED]
 
 After I did not find any howto to create virtual mail hosting on
 courier besides the standard installation documentation, I tinkered
 around on my own server and logged what I did. Then I added some
 comments and put the whole thing online on
 http://da.andaka.org/Doku/courier-vmaildir.html
 
 Before I release the document into the public (i.e. advertising
 it) I'd like to discuss it with people who know Courier.
 
 So, I'd be delighted if some people on this list read that document
 and give me some feedback (and typo and grammar correction, as I'm
 german).

I didn't notice any typos or grammar problems on a quick read through.
I did come up with a couple of other questions/suggestions.


#1
Do NOT use dots in the directory names! It somehow confuses at
least one part of the courier mail suite. Instead, substitute
dots with e.g. dashes.

What problems did you have with dots?  All of my domain directories
have dots and I've never run into any problems.


#2
userdb maligree-yi-org/[EMAIL PROTECTED] set home=/var/mail \
mail=/var/mail/domains/maligree-yi-org/maligree/ uid=8 gid=8

Unless you have a compelling reason to do otherwise, it's usually a
good idea not to specify the 'mail' attribute in userdb.  It causes
headaches because the maildir is not in the default location.  It's
better to just specify the home directory and let the maildir default
to $HOME/Maildir.

It looks like you are also making the home directory be the same for
everyone.  If you give everyone their own home directory, then
Courier can manage their .courier and .mailfilter files separately.

In your case, I would rather do this:
home=/var/mail/domains/maligree-yi-org/maligree/

And if you create an /etc/courier/maildroprc file like this:
xfilter spamc
if (/^X-Spam-Level: *.*$/)
{
  to ./Maildir/.Spam
}

Then you have almost the same delivery setup with much less work.
Any non-spam email will be filtered through $HOME/.mailfilter if it
exists.  With no other delivery instructions, mail is automatically
delivered to $HOME/Maildir.


#3
echo |spamc |maildrop /var/mail/.maildroprc .courier

If you set maildrop as DEFAULTDELIVERY in /etc/courier/courierd, then
you don't have to specify it in everyone's .courier file.  And with
the directory structure I mentioned above, you don't need to specify
the maildroprc location.  Also see above for an alternate way to call
spamc.

Just keep in mind that if a .courier file exists in the user's home
directory, it will override the delivery instructions in courierd.


Hopefully this is helpful.

Bowie


---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users