I can't understand, where is the problem.
System is OpenBSD-current. Qmail version is 1.3.
Any command in .qmail* files doesn't execute.
What i learn from code (I'm not C programmer - don't laugh please :)
This is that part of code where execution of program from .qmail* happens:
switch(child = fork())
{
case -1:
temp_fork();
case 0:
args[0] = "/bin/sh"; args[1] = "-c"; args[2] = prog; args[3] = 0;
sig_pipedefault();
execv(*args, args);
strerr_die3x(111,"Unable to run /bin/sh: ",error_str(errno),". (#4.3.0)");
}
Looks like forking and execv() happens (if I 'mv /bin/sh /bin/sh~' qmail-local
writes error message to syslog). /bin/sh works.
My .qmail file:
------ .qmail -------
./Maildir/
|/var/qmail/bin/qbiff
--- end of .qmail ---
Output of '/var/qmail/bin/qmail-local -n pvk /home/users/pvk/ '' '' '' \
mail.tsinet.ru [EMAIL PROTECTED] postmaster':
maildir ./Maildir/
program /var/qmail/bin/qbiff
did 1+0+1
If i put something like this to ~/.qmail:
|lkjsdlkfjsdlkfhsdlkfhsldkfhsdlkfhsdlkfhsldkfhsdlkfh
it writes error to syslog:
May 10 08:39:56 gw-nat1 qmail: 926311196.381569 delivery 4: deferral:
/bin/sh:_lkjsdlkfjsdlkfhsdlkfhsldkfhsdlkfhsdlkfhsldkfhsdlkfh:_not_found/
So where is the problem? All qmail programs work correctly, but qmail-local.
Any suggestions?
---
Pavel Korovin
SMTP: [EMAIL PROTECTED]
PSTN: +7 (095) 721-26-00