Hi,

I am having a problem where if I pipe an email into any of my programs, and
then pipe to vdelivermail, vdelivermail core dumps.
I have this configuration working flawlessly on two of my other servers.
The only difference I can tell is that the working servers are running
Solaris 2.7 on an UltraSparc III, and the non-working server is running
Solaris 2.8 on a SparcStation-20.

I'm running qmail pretty much from LWQ:
 qmail-1.03
  qmail-maildir++.patch (from vpopmail 5.3.19)
  qmail-tarpit.patch
  qmail-smtpd-auth-0.31 patch
  ext_todo-20030105 (www.nrg4u.com)
 vpopmail 5.3.19
  configured with:




./configure --enable-defaultquota=10485760S --enable-many-domains=n --enable
-logging=v



for example:
unix11> cat /home/vpopmail/domains/broadviewnet.net/.qmail-tester
|/usr/local/bin/spamc | /home/vpopmail/bin/vdelivermail ''
/home/vpopmail/domains/broadviewnet.net/tester
unix11> tail -f /var/log/qmail/current &
[2] 3040
unix11> echo somestuff | /usr/lib/sendmail [EMAIL PROTECTED]

@400000003e800bbd0edbd734 new msg 46225
@400000003e800bbd0ee18c24 info msg 46225: bytes 222 from
<[EMAIL PROTECTED]> qp 3022 uid 0
@400000003e800bbd0eea0034 starting delivery 24: msg 46225 to local
[EMAIL PROTECTED]
@400000003e800bbd0eec4254 status: local 1/85 remote 0/70
@400000003e800bbd0edbd734 new msg 46225
@400000003e800bbd0ee18c24 info msg 46225: bytes 222 from
<[EMAIL PROTECTED]> qp 3022 uid 0
@400000003e800bbd0eea0034 starting delivery 24: msg 46225 to local
[EMAIL PROTECTED]
@400000003e800bbd0eec4254 status: local 1/85 remote 0/70
@400000003e800bbe31efe9a4 delivery 24: deferral:
Segmentation_Fault_-_core_dumped/
@400000003e800bbe31f0fefc status: local 0/85 remote 0/70
@400000003e800bbe31efe9a4 delivery 24: deferral:
Segmentation_Fault_-_core_dumped/
@400000003e800bbe31f0fefc status: local 0/85 remote 0/70

and then there is a core file in
/home/vpopmail/domains/broadviewnet.net/tester/Maildir/

It acts the same way if i change the .qmail-tester to:
| /usr/local/bin/perl -e 'while(<>){print;}' |
/home/vpopmail/bin/vdelivermail ''
/home/vpopmail/domains/broadviewnet.net/tester


I created my own delivery agent, which i called mydeliver.pl:
#!/usr/local/bin/perl

use Sys::Hostname;

$hostname=hostname();
$file="/home/vpopmail/domains/broadviewnet.net/tester/Maildir";
open (P, ">$file/tmp/$^T.$$.$hostname") || die "cannot write: $!\n";
while(<>){
        print P;
}

close P;

rename ("$file/tmp/$^T.$$.$hostname", "$file/new/$^T.$$.$hostname") || die
"cannot rename: $!\n";
## EOF

Not suprising to me at this point, if i make the .qmail-tester:
| /usr/local/bin/spamc | mydeliver.pl

then all works.

Any ideas?  This is semi-reminicent of the non-seekable problem of the
earlier versions, except that I dont see anything here that would have to be
rewound..


Jim


Reply via email to