Dave Platt writes:
I'm running Debian stable (Sarge), and have installed the courier-mta and courier-maildrop packages from that distribution. Both have a version number of 0.47-somethingorother. [I'm not clear on the distinction between Debian's courier-maildrop package, and the standalone maildrop package... I picked courier-maildrop on the assumption that's a better choice for embedded use with courier :-]Courier itself seems to be functional. However, I cannot get the maildrop-based rcptfilters to run. During an SMTP session, the filter script is never invoked at all. I installed a wrapper script around the /usr/bin/maildrop executable and logged its environment and invocation parameters. They seem to be reasonable - the -D uid/gid option gives the correct uid/gid and the -M option gives the correct recipient rcptfilter name. If I run /usr/bin/maildrop manually, with the specified options, it exits immediately complaining about a permissions problem on the home directory... a "world writeable" situation. I rechecked the permissions every way I could, and it didn't fix the problem. I then ran maildrop under "strace", and it appears that the error is caused by a logic problem. It looks as if maildrop: [1] Finds its home directory, based on the uid it's running under. Since it's suid-root, it chooses "/root'.
Wrong version of maildrop. This is the standalone version of maildrop. With Courier, the Courier-specific version of maildrop must be used.
pgp1y1AcpQEdu.pgp
Description: PGP signature
