Andrew Chan | 3 Jan 2003 10:51

Re: vpopmail + maildrop

I found the problem.

Instead of hardcoded to use /bin/sh, maildrop looks up the shell of the
invoking user and uses it to flock the pipe.

I changed the shell of "vpopmail" to /bin/sh and now things work. I wonder
if there is a better way.

Andrew

> Greetings,
>
> I am running FreeBSD 4.5, qmail 1.0.3, vpopmail 5.3.9 (with seekable
> option set to Yes, if it matters) and things have been working quite
> well. I recently want to try out maildrop 1.5.0 (for using SpamProbe).
>
> === The following original environment works as expected ===
>
> server# cat /var/vpopmail/domains/achan.com/.qmail-default
> | /var/vpopmail/bin/vdelivermail '' bounce-no-mailbox
>
> === The following most simple "wrapper" filter doesn't work ===
>
> server# cat /var/vpopmail/domains/achan.com/.qmail-default
> | /usr/local/bin/maildrop -V 5 filter_file
>
> server# cat /var/vpopmail/domains/achan.com/filter_file
> CMD='| /var/vpopmail/bin/vdelivermail "" bounce-no-mailbox'
>
> exception {
(Continue reading)

Hanno Hecker | 6 Jan 2003 11:16
X-Face
Picon

Re: vpopmail + maildrop

On Fri, 3 Jan 2003 17:51:51 +0800 (HKT) "Andrew Chan" <achan <at> achan.com>
wrote:
> I found the problem.
> 
> Instead of hardcoded to use /bin/sh, maildrop looks up the shell of
> the invoking user and uses it to flock the pipe.
> 
> I changed the shell of "vpopmail" to /bin/sh and now things work. I
> wonder if there is a better way.
try SHELL="/bin/sh" as the first line in your filter file 

	Hanno

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

Gmane