Hi, I see the C code it is only to make use of unix setuid instead of suidperl.
change the first line from #!/usr/bin/suidperl -T to the path of perl #!/usr/bin/perl for the file /var/qmail/bin/qmail-scanner-queue.pl that is actually used, called by the C wrapper. but /var/qmail/bin/qmail-scanner-queue must be owned by qscand:qscand and the permissions must be 4755 for setuid works, and /var/qmail/bin/qmail-scanner-queue.pl must be 755. the only different thing with C wrapper is the use of -rwsr-xr-x permission initiate the process, and then call /var/qmail/bin/qmail-scanner-queue.pl Nelson Yunaka On Tue, 2 Mar 2004, giochi wrote: %% Date: Tue, 2 Mar 2004 00:42:48 +0100 %% From: giochi <[EMAIL PROTECTED]> %% To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>, %% [EMAIL PROTECTED] %% Subject: Re: [Qmail-scanner-general]Strange problem of qmail-scanner %% %% Well, is not my case because I use qmail-scanner-queue (C wrapper) instead of qmail-scanner-queue.pl. %% I've changed to 777 /var/spool/qmailscan and seems to work but the spamassassin can't rewrite subject to ****SPAM**** (my local.cf has rewrite_subjects set to 1) %% %% Regards, %% Fabrizio %% %% %% %% On Mon, 1 Mar 2004 18:54:52 -0300 (BR-EST) %% "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: %% %% > %% > Hi, %% > %% > Directory tmp and file qmail-queue.log %% > have root as owner, it is correct ? %% > %% > if I do %% > %% > ps -ef | grep qmail-scanner %% > %% > I have a lot of lines with %% > %% > qscand 26859 26848 21 18:35 pts/5 00:00:00 /usr/bin/suidperl -T /dev/fd/3//var/qmail/bin/qmail-scanner-queue.pl %% > %% > one for each mail incomming, process owner is qscand, and %% > I believe that this process writes in qmail-queue.log %% > %% > Note that /usr/bin/suidperl comes with a separate package %% > perl-suidperl-5.8.0-88.rpm that not comes installed for default. %% > ( red hat systems ). %% > %% > Also, I logged at CPAN and Installed all perl bundle modules and %% > the others recommended on instructions in the distribution tarball. %% > %% > %% > %% > %% > %% > On Mon, 1 Mar 2004, giochi wrote: %% > %% > %% Date: Mon, 1 Mar 2004 20:03:44 +0100 %% > %% From: giochi <[EMAIL PROTECTED]> %% > %% To: [EMAIL PROTECTED] %% > %% Subject: [Qmail-scanner-general]Strange problem of qmail-scanner %% > %% %% > %% Hello, %% > %% %% > %% I've installed qmail-scanner-queue with C wrapper. %% > %% I' ve lunch the ./configure script with parameters and --install option. I've entered in contrib dir and I've lunched make ; make install. I have also changed the first line on qmail-scanner-queue.pl from %% > %% #!/usr/local/bin/perl -T to #!/usr/local/bin/perl %% > %% and my tcp.smtp looks like this: %% > %% %% > %% [EMAIL PROTECTED]:/var/spool/qmailscan# more /home/vpopmail/etc/tcp.smtp %% > %% 127.0.0.1:allow,RELAYCLIENT="",QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue" %% > %% 198.168.1.:allow,RELAYCLIENT="",QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue" %% > %% :allow,QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue" %% > %% %% > %% %% > %% In the logs, I see this: %% > %% %% > %% Mar 1 19:50:27 bizio X-Qmail-Scanner-1.20: [bizio107816702746124533] bizio107816702746124533 exists - try again later... %% > %% Mar 1 19:51:37 bizio X-Qmail-Scanner-1.20: [bizio107816709746124561] bizio107816709746124561 exists - try again later... %% > %% Mar 1 19:52:41 bizio X-Qmail-Scanner-1.20: [bizio107816716146124577] bizio107816716146124577 exists - try again later... %% > %% %% > %% Here's my /var/spool/qmailscan dir: %% > %% %% > %% %% > %% [EMAIL PROTECTED]:/var/spool/qmailscan# ll %% > %% total 67 %% > %% drwxrwx--- 5 qscand qscand 392 Mar 1 19:40 ./ %% > %% drwxr-xr-x 17 root root 432 Mar 1 19:33 ../ %% > %% -rw------- 1 root root 723 Mar 1 19:33 qmail-queue.log %% > %% -rw------- 1 qscand nofiles 36 Mar 1 19:39 qmail-scanner-queue-version.txt %% > %% drwxrwx--- 5 qscand qscand 120 Mar 1 19:33 quarantine/ %% > %% -rw-r----- 1 qscand nofiles 49152 Mar 1 19:40 quarantine-attachments.db %% > %% -rw-rw---- 1 qscand qscand 4279 Mar 1 19:33 quarantine-attachments.txt %% > %% -rw-rw---- 1 qscand qscand 0 Mar 1 19:33 quarantine.log %% > %% drwx------ 2 root root 48 Mar 1 19:33 tmp/ %% > %% lrwxrwxrwx 1 qscand qscand 31 Mar 1 19:33 viruses -> /var/spool/qmailscan/quarantine/ %% > %% lrwxrwxrwx 1 qscand qscand 35 Mar 1 19:33 viruses.log -> /var/spool/qmailscan/quarantine.log %% > %% drwxrwx--- 5 qscand qscand 120 Mar 1 19:33 working/ %% > %% %% > %% I'm using slackware 9.0. %% > %% Could someone please help me ? %% > %% Thanks a lot. %% > %% BR, %% > %% Fabrizio %% > %% %% > %% %% > %% ------------------------------------------------------- %% > %% SF.Net is sponsored by: Speed Start Your Linux Apps Now. %% > %% Build and deploy apps & Web services for Linux with %% > %% a free DVD software kit from IBM. Click Now! %% > %% http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click %% > %% _______________________________________________ %% > %% Qmail-scanner-general mailing list %% > %% [EMAIL PROTECTED] %% > %% https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general %% > %% %% > %% > %% %% %% %% %% %% ------------------------------------------------------- %% SF.Net is sponsored by: Speed Start Your Linux Apps Now. %% Build and deploy apps & Web services for Linux with %% a free DVD software kit from IBM. Click Now! %% http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click %% _______________________________________________ %% Qmail-scanner-general mailing list %% [EMAIL PROTECTED] %% https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general %% ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Qmail-scanner-general mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general
