Thank you for your fast response. I have prepared following answers to your helpful posting:
>> 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
>>
I'm not sure what you mean, there is no such field as MAIL in the mysql table (see below).
>>
>> 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
>>
Exactly! The user is daemon and the uid/gid is 1/1. After your input i changed the uid/gid in mysql to 1001 (# adduser vpo) and the ownership of the mail directories to vpo but to no avail. Mail still gets delivered, maildrop doesn'*t get triggered. (Then I put it back to daemon 1/1)
>>
>> 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
>> OK. I'm releived I don't have to. > >
> > Any input would be greatly appreciated. Please help. > logs and a sample user would be greatly helpful
>>
I posted the logs, etc and permissions in http://www.bauchladen.at/courier
Sample user:
mysql> select * from pobox;
+------------------------+-----------+-----------+---------------+----- +-----+-------------------------------------+-----------+--------+
| username | cryptpw | clearpw | name | uid | gid | home | maildir | quota |
+------------------------+-----------+-----------+---------------+----- +-----+-------------------------------------+-----------+--------+
| [EMAIL PROTECTED] | | daniel | daniel | 1 | 1 | /data/mail/h...d.com/daniel | ./maildir | |
+------------------------+-----------+-----------+---------------+----- +-----+--------------------------------------+-----------+--------+
3 rows in set (0.01 sec)
mailsmurf:~# courierauthtest daniel Authenticated: module authdaemon Home directory: /data/mail/hannahdavid.com/daniel UID/GID: 1/1 Maildir: ./maildir [EMAIL PROTECTED] AUTHFULLNAME=<none>
Thanks again and please don't give up on me.
michael
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
