[courier-users] maildrop under user daemon

2004-01-30 Thread me



Greetings to all!

I have been trying to get the courier suite working 
for the past two weeks with modest results. I did some serious RTFM, googled a 
lot, read this archives but I am hopelessly stuck and in need of your 
help.

I am using the Debian Woody courier "out of the 
box" installed with apt-get using virtual users with maildirs autheticated by 
mysql. After three installations from scratch (Debian and all) I managed to get 
everything to work except maildrop which is the essential link for spam and 
virus filtering. Courier now accepts mails and delivers them to the correct 
maildirs. Only it does not seem to trigger maildrop although in 
/etc/courier/courierd DEFAULTDELIERY="| /usr/bin/maildrop" is set. No logging or 
any other sign of life from the /etc/courier/maildroprc file.

If I run maildrop as root from the command line (# 
cat some_mail_file | maildrop V5) it works like a charm and delivers the mail 
from some_mail_file into $HOME/maildir/new. But apt-get installs courier under user daemon.So when I "# su - 
daemon" and try the same I get following error: "maildrop: Invalid home 
directory permissions - world writable" (which is not true for"$ echo 
$HOME" gives /usr/sbin and this has following permissions: drwxr-xr-x but who is 
going to argue with an error message).

I suspect that courier first tries to deliver using 
the maildrop pipe and being daemon fails. So it reverts to its internal delivery 
mechanism and delivers the mail successfully. But then probably I am wrong. I am 
new to courier, new to mail servers, new to the UNIX paradigma. I don't know how 
to make apt-get install courier under the user courier or change this setting 
after installation. Generally I have no idea what else to try.

Any input would be greatly appreciated. Please 
help.

michael einem.


Re: [courier-users] maildrop under user daemon

2004-01-30 Thread Tim Hunter



 Original Message From: [EMAIL PROTECTED]To: 
[EMAIL PROTECTED]Sent: Friday, January 30, 2004 5:56 
PMSubject: [courier-users] maildrop under user daemon Greetings to all!  I have been trying to get the 
courier suite working for the past two weeks with modest results. I did 
some serious RTFM, googled a lot, read this archives but I am hopelessly 
stuck and in need of your help.   I am using 
the Debian Woody courier "out of the box" installed with apt-get using 
virtual users with maildirs autheticated by mysql. After three 
installations from scratch (Debian and all) I managed to get everything 
to work except maildrop which is the essential link for spam and virus 
filtering. Courier now accepts mails and delivers them to the correct 
maildirs. Only it does not seem to trigger maildrop although in 
/etc/courier/courierd DEFAULTDELIERY="| /usr/bin/maildrop" is set. No 
logging or any other sign of life from the /etc/courier/maildroprc 
file. 
My first guess is that you have MAIL set in mysql, this will 
overwrite defaultdelivery  If I run maildrop as root from the 
command line (# cat some_mail_file | maildrop V5) 
it works like a charm and delivers the mail from 
some_mail_file into $HOME/maildir/new. But apt-get installs courier 
under user daemon. So when I "# su - daemon" and try the same I get 
following error: "maildrop: Invalid home directory permissions - world 
writable" (which is not true for "$ echo $HOME" gives /usr/sbin and this 
has following permissions: drwxr-xr-x but who is going to argue with an 
error message). 
courier first switches to the uid/gid for the user before it 
delivers  I suspect that courier first tries to deliver using 
the maildrop pipe and being daemon fails. So it reverts to its internal 
delivery mechanism and delivers the mail successfully. But then probably 
I am wrong. I am new to courier, new to mail servers, new to the 
UNIX paradigma. I don't know how to make apt-get install courier under 
the user courier or change this setting after installation. Generally 
I have no idea what else to try. 

dont  Any input would be greatly 
appreciated. Please help.
logs and a sample user would be greatly helpful 
 michael einem.