Mark Constable wrote: > On Wednesday 06 June 2007 07:55:28 Lindsay Haisley wrote: > >> I have a Courier installation which has some strange behaviors. I have >> DEFAULTDELIVERY="| /usr/bin/maildrop" in /etc/courier/courierd, which I >> would assume makes maildrop run in Delivery Mode, however apparently >> neither ~/.mailfilter nor /etc/courier/maildroprc are processed as a >> result of this invocation. If I put "|/usr/bin/maildrop" into my >> ~/.courier file, then ~/.mailfilter gets processed, but once >> again /etc/courier/maildroprc seems to be ignored. >> > > Make sure maildroprc is owned by the MTA user:group, maybe > chmod 600 it too. >
If you chmod the file to 0600, then maildrop won't be able to read it when delivering messages, since it will read that file as the user receiving the mail, not as the delivery daemon's user. Its mode should be at least 0444. >> I'm trying to set up SpamAssassin, which needs hooks >> in /etc/courier/maildroprc, but I can find no way apparently to allow >> this file to be processed. >> >> Any help? Is there an easy way to run debugging tests on an >> installation of maildrop to see what it is and isn't doing? >> > > Put something like this in maildroprc... > > logfile "/var/log/maildrop.log" > If you do that, you'll need to manually create /var/log/maildrop.log and chmod 0666 the file, so that all of your users can write to it. > and put something like this in .mailfilters... > > log "start of joe's mailfilter" > .mailfilters/* are used in embedded mode, where the "log" directive isn't allowed. You can use that command in a user's .mailfilter file, though. :) ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
