qmail-scanner 1.20 permissions are not correct after emerging, this is causing the crons job to not run at a scheduled time causing problems with the system. Reproducible: Always Steps to Reproduce: 1.emerge qmail vpopmail qmail-scanner 2.configure qmail vpopmail 3./etc/init/svscan start 4. refer to qmail logs Actual Results: qmail is unable to write to /var/spool/qmailscan, this is also a problem for the crons job Expected Results: I believe if we can get the permissions back to same permissions in 1.16-r2 of qmail-scanner we will be fine I have tested this theory of using an older version of qmail-scanner and seems to work fine. That is only possible solution that I can see at this time.
could you please include these errors that you are seeing, as I use and maintain qmail-scanner, qmail, vpopmail here for gentoo without any issues at all.
yeah I will reinstall qmail-scanner from the ebuild and post out the permissions errors... basically you can't recieve any mail due to the fact that qmail-scanner.pl cant be run due to permissions denial.. There are extensive posts on this on the forums.
@40000000408a8cb90c335c14 tcpserver: ok 17306 192.168.2.11:192.168.2.11:25 imf25aec.mail.bellsouth.net:205.152.59.73::62701 @40000000408a8cb91fdd574c X-Qmail-Scanner-1.20:[] cannot create /var/spool/qmailscan/tmp - Permission denied @40000000408a8cb924be5d4c tcpserver: end 17306 status 0 @40000000408a8cb924be70d4 tcpserver: status: 0/40 Here is your basic error after installing qmail-scanner 1.20 Sure hope we can get this fixed soon.
please include the output of "ls -la /var/qmail/bin/qmail-scanner* /var/spool/qmailscan/" and "grep qmail-scanner /etc/tcprules.d/tcp.qmail-smtp /etc/tcp.smtp"
ls -la /var/qmail/bin/qmail-scanner* /var/spool/qmailscan/ -rwsr-xr-x 1 qscand qscand 88604 Apr 24 11:04 /var/qmail/bin/qmail-scanner-queue.pl -rwxr-xr-x 1 qscand qscand 88592 Apr 24 11:01 /var/qmail/bin/qmail-scanner-queue.pl.old /var/spool/qmailscan/: total 60 drwxr-xr-x 6 qscand qscand 4096 Apr 24 11:05 . drwxr-xr-x 6 root root 68 Apr 24 11:01 .. drwxr-xr-x 5 qscand qscand 36 Apr 24 11:01 archive -rw-rw---- 1 qscand qscand 868 Apr 24 11:34 mailstats.csv -rw------- 1 qscand root 26437 Apr 24 11:34 qmail-queue.log -rw------- 1 qscand root 37 Apr 24 11:05 qmail-scanner-queue-version.txt drwxr-xr-x 5 qscand qscand 36 Apr 24 11:01 quarantine -rw-r----- 1 qscand root 12288 Apr 24 11:05 quarantine-attachments.db -rw-r--r-- 1 qscand qscand 4279 Apr 24 11:01 quarantine-attachments.txt -rw-rw---- 1 qscand qscand 0 Apr 24 11:04 quarantine.log drwx------ 2 qscand root 6 Apr 24 11:34 tmp lrwxrwxrwx 1 qscand qscand 31 Apr 24 11:04 viruses -> /var/spool/qmailscan/quarantine lrwxrwxrwx 1 qscand qscand 35 Apr 24 11:04 viruses.log -> /var/spool/qmailscan/quarantine.log drwxr-xr-x 5 qscand qscand 36 Apr 24 11:01 working grep qmail-scanner /etc/tcprules.d/tcp.qmail-smtp 127.0.0.1:allow,RELAYCLIENT="",RBLSMTPD="",QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" 192.168.3.10:allow,RELAYCLIENT="",RBLSMTPD="",QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" # If you are using qmail-scanner, this line here is the correct one to use :allow,QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" 192.168.2.11:allow,RELAYCLIENT="",RBLSMTPD="",QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" /etc/tcp.smtp has never existed on my box.
the -rwxr-xr-x 1 qscand qscand 88592 Apr 24 11:01 /var/qmail/bin/qmail-scanner-queue.pl.old would be the ebuild version of qmail-scanner the new version is qmail-scanner 1.22 hand installed which is only way I solution I have found that really works for my mailserver at the present time .. I will re emerge the actuall ebuild tonight and give you the permissions that it is setting. sorry for post 5.
Created attachment 30011 [details] permissions on qmail-scanner files Here are the permision problems everyone seems to be having problems with at the momement.
I was gonna include that error in the attachment and forgot sorry .... @40000000408bb52b2c5da88c tcpserver: ok 20890 192.168.2.11:192.168.2.11:25 imf20aec.mail.bellsouth.net:205.152.59.68::34688 @40000000408bb52c04c7e65c X-Qmail-Scanner-1.20:[nightkiller108289769846120891] cannot open /var/spool/qmailscan/qmail-scanner-queue-version.txt - did you initialise the system by running "qmail-scanner-queue.pl -z"? - Permission denied
i see your problem right there, if you read the postinst message it tells you to switch AWAY from using qmail-scanner-queue.pl in your other scripts. It's been compounded by somebody else changing part of the ebuild and not noting it in the ChangeLog. for the moment, try switching to qmail-scanner-queue in your QMAILQUEUE variables, and if that still doesn't do it for you, then chmod 4755 on qmail-scanner-queue.pl.
Created attachment 30036 [details] ebuild fixed This is the ebuild I just used to correct the permission problems if you follow the post installation instructions you shouldn't have any problems. We owe robbat2 a huge thanks for pointing out this discrepancy in the ebuild. Robin Johnson thanks for all your support hope you can get this ebuild into portage tree so others dont have this same problem. Your fix was right on for the tcprules file on the queu variable.
refer to http://bugs.gentoo.org/show_bug.cgi?id=48212#c10 for the proper fix on permission errors.
please don't close bugs until they are actually fixed in the cvs tree.
Created attachment 30043 [details, diff] qmail scanner proper documentation on post config. this just fixes a typo in the ebuild I put up here earlier today. Robbat2 sorry didnt mean to close it out early, atleast now I know to wait till they make it to cvs server, sorry once again.
*** Bug 45718 has been marked as a duplicate of this bug. ***
please test qmail-scanner 1.22. does it have the same problems?
Solved some time ago... Closing