Actually, if I set EXITCODE to something like 70
in /etc/courier/maildroprc then delivery shuts down.  I'll try the
logfile method you recommend and see what's happening.

On Wed, 2007-06-06 at 08:18 +0000, 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.
> 
> > 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"
> 
> and this to see all the variables available, I use log $HOME...
> 
>  log `env` 
> 
> and put something like this in .mailfilters...
> 
>  log "start of joe's mailfilter"
> 
> and a...
> 
>  alias mdlog='tail -f /var/log/maildrop.log'
> 
> to make life easier (don't forget to chown that logfile).
> 
> --markc
> 
> -------------------------------------------------------------------------
> 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
-- 
Lindsay Haisley       | "In an open world,    |     PGP public key
FMP Computer Services |    who needs Windows  |      available at
512-259-1190          |      or Gates"        | http://pubkeys.fmp.com
http://www.fmp.com    |                       |


-------------------------------------------------------------------------
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

Reply via email to