Comment posted qmail-scanner-queue.pl: X-Qmail-Scanner-2.08st:[] cannot create /var/spool/qscan/tmp – Permission denied – Finally a working solution and what causes the error” href=”https://www.pc-freak.net/blog/fix-qmailscannerqueuepl-xqmailscanner208st-create-varspoolqscantmp-permission-denied-finally-working-solution-error/”>Fix qmail-scanner-queue.pl: X-Qmail-Scanner-2.08st:[] cannot create /var/spool/qscan/tmp – Permission denied – Finally a working solution and what causes the error by .
Recent comments by
Tags: blog, clamd, Connected, couple, libexec, qq, scanner, solution, spool, var, vpopmail, working, Working Qmail
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36 OPR/30.0.1835.125
Another way is through adding somewhere after line 71:
/var/qmail/bin/qmail-scanner-queue.pl
##$whoami = getpwuid($) || “unknown”;
View CommentView Comment##if($whoami ne “qscand”) {
exec(“/usr/bin/sudo -u qscand /var/qmail/bin/qmail-scanner-queue.pl”) || die;
##}
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36 OPR/30.0.1835.125
Actually though this ways works. Finally I’ve choose to use another C written wrapper which works much better. I warmly recommend implement this instead of sudo and the other C wrapper above:
View CommentView Commenthttp://www.pc-freak.net/files/suid-wrapper.c
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2
After all other errors related to memory continued to occur after some time and after doing a thorough research, I’ve found out the errors is probably appearing because the resource on the VPS is not enough to run qmail. So I will speak with VPS provider to raise the VPS hardware to make it working … But anyways I hope hints helps someone out there.
View CommentView CommentDrop me a comment if you fix it my way or how you did if you stumble same problem.
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36
The final solution I found to this weird error was to just switch qmail-scanner-queue.pl to compiled simscan binary and set proper permissions
View CommentView CommentMozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0
Another thing I had to do that finally resolved the problem is to rebuild clamav from latest source version and use this one instead of Debian default clamav daemon. I’ve seen reports online there is a problem with clamav also on Ubuntu and even on Gentoo Linux.
View CommentView CommentMozilla/5.0 (Windows NT 6.1; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0
And if you want I’ve recently updated my guide so you could upgrade it to Debian 8.0 Jessie 😉
View CommentView Comment