[vchkpw] vpopmail and enable-roaming-users not finding QMAILQUEUE variable

2004-02-13 Thread J.T. Davies
Hello List,

Is there an archive for the vchkpw/vpopmail mailing lists?

If not...here's my problem:

I have installed vpopmail with the --enable-roaming-users option.  The SMTP
authentication feature works great! (I can block non-authenticated hosts
from sending to domains outside of rcpthosts).

But, for the incoming mail originating outside my domain to an address
inside (within rcpthosts), I want to invoke the qmail-scanner-queue.pl
script, but it does not fire.

I have the open-smtp file for the authentication and also have the
tcp.smtp for the static entries (internal network and how to handle
external).  I have in tcp.smtp:

:allow,QMAILQUEUE=/var/qmail/bin/qmail-scanner-queue.pl

But when I look at the message headers of the incoming mail, nothing is
populated resulting from being scanned, but the message is allowed to be
received.

Thanks!
J.T.



[vchkpw] QMAILQUEUE and Vpopmail

2004-02-10 Thread Eduardo M. Bragatto
From Qmail-Scanner FAQ (http://qmail-scanner.sourceforge.net/FAQ.php):

Q-S doesn't work with Vpopmail Vpopmail basically strips out 
environment variables set within the tcpserver SMTP rules file - 
specifically the QMAILQUEUE environment variable. As it is responsible 
for starting qmail-smtpd, that means Qmail-Scanner never gets called. 
This is really a bug with Vpopmail, but a workaround is to set 
QMAILQUEUE within /service/smtpd/run instead.(..)

	This bug has been fixed in some recent version of vpopmail?

[[]]'s
Eduardo M. Bragatto.


Re: [vchkpw] QMAILQUEUE and Vpopmail

2004-02-10 Thread Jeremy Kitchen
On Tue, 2004-02-10 at 12:17, Eduardo M. Bragatto wrote:
  From Qmail-Scanner FAQ (http://qmail-scanner.sourceforge.net/FAQ.php):
 
 Q-S doesn't work with Vpopmail Vpopmail basically strips out 
 environment variables set within the tcpserver SMTP rules file - 
 specifically the QMAILQUEUE environment variable. As it is responsible 
 for starting qmail-smtpd, that means Qmail-Scanner never gets called. 
 This is really a bug with Vpopmail, but a workaround is to set 
 QMAILQUEUE within /service/smtpd/run instead.(..)
 
   This bug has been fixed in some recent version of vpopmail?

it doesn't do it to the tcp.smtp file, it might in the open-smtp file,
but I'm not sure.

versions 5.3.21 and 5.4.0 I can confirm this.

-Jeremy
-- 
Jeremy Kitchen
Systems Administrator
[EMAIL PROTECTED]
Kitchen @ #qmail on EFNet - Join the party!
.
Inter7 Internet Technologies, Inc.
www.inter7.com
866.528.3530 toll free
847.492.0470 int'l
847.492.0632 fax
GNUPG key ID: 93BDD6CE



Re: [vchkpw] QMAILQUEUE and Vpopmail

2004-02-10 Thread Oden Eriksson
Tuesday 10 February 2004 19.21 skrev Jeremy Kitchen:
7 On Tue, 2004-02-10 at 12:17, Eduardo M. Bragatto wrote:
   From Qmail-Scanner FAQ (http://qmail-scanner.sourceforge.net/FAQ.php):
 
  Q-S doesn't work with Vpopmail Vpopmail basically strips out
  environment variables set within the tcpserver SMTP rules file -
  specifically the QMAILQUEUE environment variable. As it is responsible
  for starting qmail-smtpd, that means Qmail-Scanner never gets called.
  This is really a bug with Vpopmail, but a workaround is to set
  QMAILQUEUE within /service/smtpd/run instead.(..)
 
  This bug has been fixed in some recent version of vpopmail?

 it doesn't do it to the tcp.smtp file, it might in the open-smtp file,
 but I'm not sure.

 versions 5.3.21 and 5.4.0 I can confirm this.

How do I increase the buffer for this? I mean I could patch the source to have 
a huge line to feed the open-smtp and cdb file, but last time I tried this it 
didn't work.

Any suggestions?



Re: [vchkpw] QMAILQUEUE and Vpopmail

2004-02-10 Thread Jeff Koch
What am I missing here? We have qmailscanner running on two 
qmail/vpopmail/qmailadmin servers using the 5.4.0 version and we use the 
QMAILQUEUE variable in /home/vpopmail/etc/tcp.smtp. You need to follow the 
instructions in qmailscanner.

At 03:10 PM 2/10/2004, you wrote:
Tuesday 10 February 2004 19.21 skrev Jeremy Kitchen:
7 On Tue, 2004-02-10 at 12:17, Eduardo M. Bragatto wrote:
   From Qmail-Scanner FAQ (http://qmail-scanner.sourceforge.net/FAQ.php):
 
  Q-S doesn't work with Vpopmail Vpopmail basically strips out
  environment variables set within the tcpserver SMTP rules file -
  specifically the QMAILQUEUE environment variable. As it is responsible
  for starting qmail-smtpd, that means Qmail-Scanner never gets called.
  This is really a bug with Vpopmail, but a workaround is to set
  QMAILQUEUE within /service/smtpd/run instead.(..)
 
  This bug has been fixed in some recent version of vpopmail?

 it doesn't do it to the tcp.smtp file, it might in the open-smtp file,
 but I'm not sure.

 versions 5.3.21 and 5.4.0 I can confirm this.
How do I increase the buffer for this? I mean I could patch the source to 
have
a huge line to feed the open-smtp and cdb file, but last time I tried this it
didn't work.

Any suggestions?
Best Regards,

Jeff Koch, Intersessions 




[vchkpw] QMAILQUEUE in rules/tcp.smtp

2003-12-10 Thread Yermo M. Lamers
I've managed to set up qmail-scanner to run with qmail/vpopmail.5.3.30 
The unfortunate thing is I can't seem to set the QMAILQUEUE variable 
from the tcpserver tcp.smtp file.

Is there any reason why vpopmail clears the QMAILQUEUE variable in this 
case. It would be way cool to be able to disable qmail-scanner for 
traffic on the local net 

any replies would be greatly appreciated.

-- Yermo
-
DTLink Software http://www.dtlink.com
FieldPost Business Email http://www.fieldpost.com
Nuts and Bolts Interactive, Inc. http://www.nbinteractive.com
-



[vchkpw] --enable-roaming=y + QMAILQUEUE, RBLSMTPD,TARPITCOUNT, TARPITDELAY and other enviroment vars in tcp.smtp

2003-12-09 Thread Navarro Martinez, Juan Antonio
Dear all:

Anyone knows how can maintain QMAILQUEUE, RBLSMTPD,TARPITCOUNT,
TARPITDELAY and other enviroment vars, while I am using --enable-roaming=y?

Please I have different values for IP address then I can't edit the
code and put the same for everyone.

Greetings

Juan Antonio



Re: [vchkpw] Setting Qmailqueue value for virtual domains

2003-09-11 Thread Martin Horsley
Paul Theodoropoulos wrote:
you could get away with two stages - run a spam filtering smtpd on an 
alternate port on your vpopmail server - i use port 26 - then you can 
use smtproutes on the primary/secondary MX to feed to the different 
ports, eg:

iwantspam.com:myvpopmailserver.com:25
idontwantspam.com:myvpopmailserver.com:26
Thanks Paul, this does seem to be the most likely way.  Could you give 
me some pointers on how I would go about getting another version of 
qmail-smtpd to listen on a different port?

I use supervise scripts to launch qmail.  Do I need to add an additional 
supervise script and add the listening port in some manner?  Or, do I 
need to recompile qmail?

Many thanks

Martin.




Re: [vchkpw] Setting Qmailqueue value for virtual domains

2003-09-11 Thread Paul Theodoropoulos
At 03:38 AM 9/11/2003, Martin Horsley wrote:
Paul Theodoropoulos wrote:
you could get away with two stages - run a spam filtering smtpd on an 
alternate port on your vpopmail server - i use port 26 - then you can use 
smtproutes on the primary/secondary MX to feed to the different ports, eg:
iwantspam.com:myvpopmailserver.com:25
idontwantspam.com:myvpopmailserver.com:26
Thanks Paul, this does seem to be the most likely way.  Could you give me 
some pointers on how I would go about getting another version of 
qmail-smtpd to listen on a different port?

I use supervise scripts to launch qmail.  Do I need to add an additional 
supervise script and add the listening port in some manner?  Or, do I need 
to recompile qmail?
easiest method by far is to use Tetsu Ushimima's qmail-conf package -
http://www.din.or.jp/~ushijima/qmail-conf.html
then the invocation i used was:

qmail-smtpd-conf qmaild qmaill /var/qmail/service/smtpd-sa

to indicate 'smtpd SpamAssassin', but you can call it whatever you want. 
since i also run a *third* smtpd for customers who are on networks that 
block outbound port 25, i also run one called smtpd-2525, which is the 
alternate port i offer those customers to use to bypass the blocking.

after qmail-conf has built the structure, go into 
/var/qmail/service/smtpd-sa/env, then

echo 26  PORT

or again, whatever port you choose to use. then complete the rest of the 
steps for setting up the service, and you're in business.

Paul Theodoropoulos
http://www.anastrophe.com




Re: [vchkpw] Setting Qmailqueue value for virtual domains

2003-09-11 Thread Tom Collins
On Thursday, September 11, 2003, at 08:59  AM, Paul Theodoropoulos 
wrote:
i also run a *third* smtpd for customers who are on networks that 
block outbound port 25, i also run one called smtpd-2525, which is the 
alternate port i offer those customers to use to bypass the blocking.
There's actually a port reserved for that (called message submission) 
-- port 587.  Many of my customers have been using it (including myself 
for when I travel and use various dialups or other unfamiliar networks).

--
Tom Collins
[EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/



Re: [vchkpw] Setting Qmailqueue value for virtual domains

2003-09-11 Thread Paul Theodoropoulos
At 09:54 AM 9/11/2003, Tom Collins wrote:
On Thursday, September 11, 2003, at 08:59  AM, Paul Theodoropoulos wrote:
i also run a *third* smtpd for customers who are on networks that block 
outbound port 25, i also run one called smtpd-2525, which is the 
alternate port i offer those customers to use to bypass the blocking.
There's actually a port reserved for that (called message submission) -- 
port 587.  Many of my customers have been using it (including myself for 
when I travel and use various dialups or other unfamiliar networks).
yeah, i don't doubt it. however, the concept of ports is difficult enough 
to understand for most average end-users. by using 2525, it makes it easier 
mnemonically for them to switch between the well-known port and the 
alternative. I suppose someday someone may experience a conflict if they 
try running MS V-Worlds which is the name for 2525, but so far, no 
problems. ;^)



Paul Theodoropoulos
http://www.anastrophe.com




Re: [vchkpw] Setting Qmailqueue value for virtual domains

2003-09-11 Thread Nick Harring
Paul Theodoropoulos wrote:

At 09:54 AM 9/11/2003, Tom Collins wrote:

On Thursday, September 11, 2003, at 08:59  AM, Paul Theodoropoulos 
wrote:

i also run a *third* smtpd for customers who are on networks that 
block outbound port 25, i also run one called smtpd-2525, which is 
the alternate port i offer those customers to use to bypass the 
blocking.


There's actually a port reserved for that (called message submission) 
-- port 587.  Many of my customers have been using it (including 
myself for when I travel and use various dialups or other unfamiliar 
networks).


yeah, i don't doubt it. however, the concept of ports is difficult 
enough to understand for most average end-users. by using 2525, it 
makes it easier mnemonically for them to switch between the well-known 
port and the alternative. I suppose someday someone may experience a 
conflict if they try running MS V-Worlds which is the name for 2525, 
but so far, no problems. ;^)



Paul Theodoropoulos
http://www.anastrophe.com

We run the same thing on port 24, which according to my /etc/services is 
for private mail systems which I guess an hosted email system being 
accessed from third party ISPs would qualify as.
2525 is a good idea though, since the mnemonic is pretty strong.

Cheers,
Nick


[vchkpw] Setting Qmailqueue value for virtual domains

2003-09-10 Thread Martin Horsley
Is there a way in which I can set the QMAILQUEUE value in tcp.smtp for 
mail sent to a virtual domain?

I'm setting up a qmail+vpopmail+spamassassin+virus check server, but are 
finding that the spam and virus checking is adding a large overhead to 
the time taken to process a message (5 seconds on PII 200 Dual).  One of 
my virtual domains will only ever be used for receiving mail destined 
for an in house mail client, and as such we don't care how much spam 
gets through to it.  There is therefore, no reason for 
spamassassin/antivirus to check mails destined for this domain.

I tried adding this to my tcp.smtp file:-
:allow,RELAYCLIENT=,RBLSMTPD=,QMAILQUEUE=/var/qmail/bin/qmail-queue,TCPLOCALHOST=mydomain.com
but it didn't work.

Im pretty new to Qmail and vpopmail, so I'm still learning, but I've 
been trying to find a solution to this problem for a couple of weeks 
now, and the usual mailing list archives and google searches have not 
provided a solution

Many thanks

Martin.




Re: [vchkpw] Setting Qmailqueue value for virtual domains

2003-09-10 Thread Paul Theodoropoulos
i handle this by using a three stage transport - primary and secondary MX 
feed mail that is to be filtered on to a 
dedicated  spamassassin/viruschecker server via /var/qmail/smtproutes. 
Those domains that i don't want to filter i just push the mail directly to 
the vpopmail server, also via smtproutes.

you could get away with two stages - run a spam filtering smtpd on an 
alternate port on your vpopmail server - i use port 26 - then you can use 
smtproutes on the primary/secondary MX to feed to the different ports, eg:

iwantspam.com:myvpopmailserver.com:25
idontwantspam.com:myvpopmailserver.com:26


At 07:19 AM 9/10/2003, Martin Horsley wrote:
Is there a way in which I can set the QMAILQUEUE value in tcp.smtp for 
mail sent to a virtual domain?

I'm setting up a qmail+vpopmail+spamassassin+virus check server, but are 
finding that the spam and virus checking is adding a large overhead to the 
time taken to process a message (5 seconds on PII 200 Dual).  One of my 
virtual domains will only ever be used for receiving mail destined for an 
in house mail client, and as such we don't care how much spam gets through 
to it.  There is therefore, no reason for spamassassin/antivirus to check 
mails destined for this domain.

I tried adding this to my tcp.smtp file:-
:allow,RELAYCLIENT=,RBLSMTPD=,QMAILQUEUE=/var/qmail/bin/qmail-queue,TCPLOCALHOST=mydomain.com
but it didn't work.

Im pretty new to Qmail and vpopmail, so I'm still learning, but I've been 
trying to find a solution to this problem for a couple of weeks now, and 
the usual mailing list archives and google searches have not provided a 
solution

Many thanks

Martin.


Paul Theodoropoulos
http://www.anastrophe.com




QMAILQUEUE

2001-11-28 Thread Dallas Engelken

I am having a problem with qmail-scanner, maybe someone has an idea here.
I have installed everything and did ../contrib/test_installation.sh -doit
and those tests passed just fine.  I can also do this.

# QMAILQUEUE=/var/qmail/bin/qmail-scanner-queue.pl
# echo to:root | /var/qmail/bin/qmail-inject

And then I receive a message with the appropriate headers.
X-Qmail-Scanner: 1.01 (Clean. Processed in 1.54129 secs)


However..

When I try and add this QMAILQUEUE variable to my smtp supervise script, and
then try and send a message through it, here are the results..

--
[root@localhost qmail-smtpd]# telnet localhost 2525
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 localhost ESMTP
mail from: root
250 ok
rcpt to: root
250 ok
data
354 go ahead
.
451 qq temporary problem (#4.3.0)
--

I added just the two lines to my supervise script.

--
#!/bin/sh

QMAILQUEUE=/var/qmail/bin/qmail-scanner-queue.pl
export QMAILQUEUE

QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`

exec /usr/local/bin/softlimit -m 200 \
/usr/local/bin/tcpserver -v -R -l 0 -x /etc/tcp.smtp.cdb -c $MAXSMTPD
\
-u $QMAILDUID -g $NOFILESGID 0 qmail /var/qmail/bin/qmail-smtpd
21
--





Re: QMAILQUEUE

2001-11-28 Thread Bill Shupp

On Wednesday, November 28, 2001, at 12:34 PM, Dallas Engelken wrote:

 I am having a problem with qmail-scanner, maybe someone has an idea 
 here.
 I have installed everything and did ../contrib/test_installation.sh 
 -doit
 and those tests passed just fine.  I can also do this.

 # QMAILQUEUE=/var/qmail/bin/qmail-scanner-queue.pl
 # echo to:root | /var/qmail/bin/qmail-inject

 And then I receive a message with the appropriate headers.
 X-Qmail-Scanner: 1.01 (Clean. Processed in 1.54129 secs)


 However..

 When I try and add this QMAILQUEUE variable to my smtp supervise 
 script, and
 then try and send a message through it, here are the results..

 --
 [root@localhost qmail-smtpd]# telnet localhost 2525
 Trying 127.0.0.1...
 Connected to localhost.localdomain.
 Escape character is '^]'.
 220 localhost ESMTP
 mail from: root
 250 ok
 rcpt to: root
 250 ok
 data
 354 go ahead
 .
 451 qq temporary problem (#4.3.0)
 --

 I added just the two lines to my supervise script.

 --
 #!/bin/sh

 QMAILQUEUE=/var/qmail/bin/qmail-scanner-queue.pl
 export QMAILQUEUE

 QMAILDUID=`id -u qmaild`
 NOFILESGID=`id -g qmaild`
 MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`

 exec /usr/local/bin/softlimit -m 200 \
 /usr/local/bin/tcpserver -v -R -l 0 -x /etc/tcp.smtp.cdb -c 
 $MAXSMTPD
 \
 -u $QMAILDUID -g $NOFILESGID 0 qmail 
 /var/qmail/bin/qmail-smtpd
 21
 --

Try increasing your softlimit or not using softlimit.  I couldn't get it 
set correctly, so I stopped using softlimit.  But I didn't try that 
hard, either.  ; )

-Bill




RE: QMAILQUEUE

2001-11-28 Thread Dallas Engelken

 
 Try increasing your softlimit or not using softlimit.  I couldn't get it 
 set correctly, so I stopped using softlimit.  But I didn't try that 
 hard, either.  ; )
 
 -Bill

Bingo.. thanks Bill.
Dallas 



RE: QMAILQUEUE

2001-11-28 Thread Tren Blackburn

A softlimit of 500 or 600 is usually enough.  it also depends on
what virus scanner you're using as well.  the more scanners, the higher the
limit.  Mine is around 800 because I use two scanners.

Tren.

 -Original Message-
 From: Bill Shupp [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, November 28, 2001 11:38 AM
 To: [EMAIL PROTECTED]
 Subject: Re: QMAILQUEUE


 On Wednesday, November 28, 2001, at 12:34 PM, Dallas Engelken wrote:

  I am having a problem with qmail-scanner, maybe someone has an idea
  here.
  I have installed everything and did ../contrib/test_installation.sh
  -doit
  and those tests passed just fine.  I can also do this.
 
  # QMAILQUEUE=/var/qmail/bin/qmail-scanner-queue.pl
  # echo to:root | /var/qmail/bin/qmail-inject
 
  And then I receive a message with the appropriate headers.
  X-Qmail-Scanner: 1.01 (Clean. Processed in 1.54129 secs)
 
 
  However..
 
  When I try and add this QMAILQUEUE variable to my smtp supervise
  script, and
  then try and send a message through it, here are the results..
 
  --
  [root@localhost qmail-smtpd]# telnet localhost 2525
  Trying 127.0.0.1...
  Connected to localhost.localdomain.
  Escape character is '^]'.
  220 localhost ESMTP
  mail from: root
  250 ok
  rcpt to: root
  250 ok
  data
  354 go ahead
  .
  451 qq temporary problem (#4.3.0)
  --
 
  I added just the two lines to my supervise script.
 
  --
  #!/bin/sh
 
  QMAILQUEUE=/var/qmail/bin/qmail-scanner-queue.pl
  export QMAILQUEUE
 
  QMAILDUID=`id -u qmaild`
  NOFILESGID=`id -g qmaild`
  MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
 
  exec /usr/local/bin/softlimit -m 200 \
  /usr/local/bin/tcpserver -v -R -l 0 -x /etc/tcp.smtp.cdb -c
  $MAXSMTPD
  \
  -u $QMAILDUID -g $NOFILESGID 0 qmail
  /var/qmail/bin/qmail-smtpd
  21
  --

 Try increasing your softlimit or not using softlimit.  I couldn't get it
 set correctly, so I stopped using softlimit.  But I didn't try that
 hard, either.  ; )

 -Bill






more Qmailqueue and virus scan stuff

2001-11-28 Thread Trey Nolen

Recently I posted a question about getting qmailqueue to send mail through a
virus scanner and a spam scanner.  I found a patch that will do just that,
so I thought I'd share it here since there has been a lot of virus talk
lately.

I am running Sophos Sweep. They have a pretty good deal for ISPs. I think
for us it worked out to about $.20 per month.  We are more than willing to
pay that for the extra service. The auto updates work well. The spam scanner
I am using is SpamAssassin found at spamassassin.taint.org. It is very
agressive, and we have had a few legitimate emails get blocked, but it is
VERY effective on spam.  Since Procmail doesn't seem to work well with
Vpopmail, we decided to use QMAILQUEUE to run everything through the
scanners.  This works, but does have the disadvantage that filters are not
customizable per user.  Here is the patch we used to get it to run the two
scanners...it was written by a guy named Kobe Lenjou and posted to the
Spamassassin list. Maybe it will be useful to some of you.

Trey


*** qmail-scanner-1.01/qmail-scanner-queue.template Thu Sep  6 23:12:20
2001
--- qmail-scanner-1.01-pattched/qmail-scanner-queue.template_with_spam  Wed
Nov 21 15:58:32 2001
***
*** 155,160 
--- 155,168 
  my $uudecode_binary='UUDECODE_BINARY';
  my $uudecode_pipe='UUDECODE_PIPE';

+ #Kobe SpamAssasin Hack - if $spamcheck is 1 then spamcheck is done
+ my $spamcheck = 1; #Enabled
+ #my $spamcheck = 0; #Disabled
+ my $spamc='/var/qmail/tools/spamc -f ';
+ #These strings will be regexpd against the recieps var
+ my $spam_rec = 'EMAIL: PROTECTED, EMAIL: PROTECTED,
publinet.be,moerman.co
m';
+ #End of part 1 of 2 of the SpamAssasin hack
+
  #my
($uvscan_binary,$sweep_binary=$iscan_binary=$hbedv_binary=$avpdaemon_binar
y)=';
  #my ($avp_binary=$fsecure_binary=$inocucmd_binary)=';

***
*** 325,331 
  email_quarantine_report;
} else {
  qmail_smtpd_check;
!
qmail_requeue($env_returnpath,$env_recips,$scandir/$wmaildir/new/$file_id
);
}
alarm 0;
  };
--- 333,364 
  email_quarantine_report;
} else {
  qmail_smtpd_check;
! #Mail passed all virus check, now do a spam check
! if ($spamcheck == 1) {
! my @spamusers = split(',',$spam_rec);
! my $spam_var;
! my $spam_flag = 0;
! foreach $spam_var (@spamusers) {
! $spam_var =~ s/ //mgi;
! debug(Spamuser: -.$spam_var.-);
! my $spamaddr = ($recips =~ /.*($spam_var).*/mi);
! debug(Find?: $spamaddr);
! if ($spamaddr == 1) {
! $spam_flag = 1;
! last;
! }
! }
! debug(Recieps: $recips);
! if ($spam_flag == 1) {
! debug(Now checking message for spam);
! debug(Executing: $spamc 
$scandir/$wmaildir/new/$file_id 
$scandir/$wmaildir/tmp/$file_id);
! system ($spamc  $scandir/$wmaildir/new/$file_id 
$scandir/$
wmaildir/tmp/$file_id);
! rename
($scandir/$wmaildir/tmp/$file_id,$scandir/$wmaildir/
new/$file_id);
! } else {
! debug(Message NOT scanned for spam);
! }
!  }
!
qmail_requeue($env_returnpath,$env_recips,$scandir/$wmaildir/new/$file_id
 )
;
}
alarm 0;
  };






RE: more Qmailqueue and virus scan stuff

2001-11-28 Thread Dallas Engelken

 This works, but does have the disadvantage that filters are not
 customizable per user.  Here is the patch we used to get it to run the two
 scanners...it was written by a guy named Kobe Lenjou and posted to the
 Spamassassin list. Maybe it will be useful to some of you.

 Trey

Can you not run your virus detection via QMAILQUEUE and then have option
spam filtering that pipes through the users .qmail file?




Re: more Qmailqueue and virus scan stuff

2001-11-28 Thread Trey Nolen

Yes, but when you have 1000's of users, that is a LOT of .qmail files to
update. Also, changes made in qmailadmin will blow away the part of the
.qmail files that pipes it through the spam filter.  This was basically the
only way that I could find to run a system wide virus and spam filter.

Trey

- Original Message -
From: Dallas Engelken [EMAIL PROTECTED]
To: Trey Nolen [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, November 28, 2001 1:03 PM
Subject: RE: more Qmailqueue and virus scan stuff


  This works, but does have the disadvantage that filters are not
  customizable per user.  Here is the patch we used to get it to run the
two
  scanners...it was written by a guy named Kobe Lenjou and posted to the
  Spamassassin list. Maybe it will be useful to some of you.
 
  Trey

 Can you not run your virus detection via QMAILQUEUE and then have option
 spam filtering that pipes through the users .qmail file?






RE: more Qmailqueue and virus scan stuff

2001-11-28 Thread Dallas Engelken

 -Original Message-
 From: Tren Blackburn [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, November 28, 2001 1:08 PM
 To: [EMAIL PROTECTED]
 Subject: RE: more Qmailqueue and virus scan stuff


 Just as an FYI, I am using this patch on all my mail servers now and it's
 working fantastically.  You do have to do some modifications as his patch
 was made for the bleeding edge version of spamassassin, plus you have to
 update the paths and stuff.  Just beware of that, but once all that is
 worked out, it's a great patch, and I'm very happy with it

 Regards,

 Tren.


Is it possible to make SQWebmail utilize the QMAILQUEUE to do virus/spam
scanning on web based email?




Re: more Qmailqueue and virus scan stuff

2001-11-28 Thread Trey Nolen


Yeah, that works. We are using it. Just make your sendit.sh look like this:


QMAILQUEUE=/var/qmail/bin/qmail-scanner-queue.pl export QMAILQUEUE
exec /usr/sbin/qmail-inject -f $1


Trey


- Original Message -
From: Bill Shupp [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 28, 2001 1:29 PM
Subject: Re: more Qmailqueue and virus scan stuff


 On Wednesday, November 28, 2001, at 01:24 PM, Dallas Engelken wrote:
 
  Is it possible to make SQWebmail utilize the QMAILQUEUE to do virus/spam
  scanning on web based email?
 

 I think you can edit sendit.sh to set that variable.. haven't done it
 myself, but that's what I recall...

 Regards,

 Bill






RE: more Qmailqueue and virus scan stuff

2001-11-28 Thread Dallas Engelken

Tren, can you send me that patch.. I dont really want to edit the line wraps
on the one below.


 -Original Message-
 From: Tren Blackburn [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, November 28, 2001 1:08 PM
 To: [EMAIL PROTECTED]
 Subject: RE: more Qmailqueue and virus scan stuff


 Just as an FYI, I am using this patch on all my mail servers now and it's
 working fantastically.  You do have to do some modifications as his patch
 was made for the bleeding edge version of spamassassin, plus you have to
 update the paths and stuff.  Just beware of that, but once all that is
 worked out, it's a great patch, and I'm very happy with it

 Regards,

 Tren.

  -Original Message-
  From: Trey Nolen [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, November 28, 2001 11:56 AM
  To: [EMAIL PROTECTED]
  Subject: more Qmailqueue and virus scan stuff
 
 
  Recently I posted a question about getting qmailqueue to send
  mail through a
  virus scanner and a spam scanner.  I found a patch that will do
 just that,
  so I thought I'd share it here since there has been a lot of virus talk
  lately.
 
  I am running Sophos Sweep. They have a pretty good deal for
 ISPs. I think
  for us it worked out to about $.20 per month.  We are more than
 willing to
  pay that for the extra service. The auto updates work well. The
  spam scanner
  I am using is SpamAssassin found at spamassassin.taint.org. It is very
  agressive, and we have had a few legitimate emails get blocked,
 but it is
  VERY effective on spam.  Since Procmail doesn't seem to work well with
  Vpopmail, we decided to use QMAILQUEUE to run everything through the
  scanners.  This works, but does have the disadvantage that
 filters are not
  customizable per user.  Here is the patch we used to get it to
 run the two
  scanners...it was written by a guy named Kobe Lenjou and posted to the
  Spamassassin list. Maybe it will be useful to some of you.
 
  Trey
 
 
  *** qmail-scanner-1.01/qmail-scanner-queue.template Thu Sep
  6 23:12:20
  2001
  ---
  qmail-scanner-1.01-pattched/qmail-scanner-queue.template_with_spam  Wed
  Nov 21 15:58:32 2001
  ***
  *** 155,160 
  --- 155,168 
my $uudecode_binary='UUDECODE_BINARY';
my $uudecode_pipe='UUDECODE_PIPE';
 
  + #Kobe SpamAssasin Hack - if $spamcheck is 1 then spamcheck is done
  + my $spamcheck = 1; #Enabled
  + #my $spamcheck = 0; #Disabled
  + my $spamc='/var/qmail/tools/spamc -f ';
  + #These strings will be regexpd against the recieps var
  + my $spam_rec = 'EMAIL: PROTECTED, EMAIL: PROTECTED,
  publinet.be,moerman.co
  m';
  + #End of part 1 of 2 of the SpamAssasin hack
  +
#my
 
 ($uvscan_binary,$sweep_binary=$iscan_binary=$hbedv_binary=$avpdaemon_binar
  y)=';
#my ($avp_binary=$fsecure_binary=$inocucmd_binary)=';
 
  ***
  *** 325,331 
email_quarantine_report;
  } else {
qmail_smtpd_check;
  !
  qmail_requeue($env_returnpath,$env_recips,$scandir/$wmaildir/new
  /$file_id
  );
  }
  alarm 0;
};
  --- 333,364 
email_quarantine_report;
  } else {
qmail_smtpd_check;
  ! #Mail passed all virus check, now do a spam check
  ! if ($spamcheck == 1) {
  ! my @spamusers = split(',',$spam_rec);
  ! my $spam_var;
  ! my $spam_flag = 0;
  ! foreach $spam_var (@spamusers) {
  ! $spam_var =~ s/ //mgi;
  ! debug(Spamuser: -.$spam_var.-);
  ! my $spamaddr = ($recips =~ /.*($spam_var).*/mi);
  ! debug(Find?: $spamaddr);
  ! if ($spamaddr == 1) {
  ! $spam_flag = 1;
  ! last;
  ! }
  ! }
  ! debug(Recieps: $recips);
  ! if ($spam_flag == 1) {
  ! debug(Now checking message for spam);
  ! debug(Executing: $spamc 
  $scandir/$wmaildir/new/$file_id 
  $scandir/$wmaildir/tmp/$file_id);
  ! system ($spamc  $scandir/$wmaildir/new/$file_id 
  $scandir/$
  wmaildir/tmp/$file_id);
  ! rename
  ($scandir/$wmaildir/tmp/$file_id,$scandir/$wmaildir/
  new/$file_id);
  ! } else {
  ! debug(Message NOT scanned for spam);
  ! }
  !  }
  !
  qmail_requeue($env_returnpath,$env_recips,$scandir/$wmaildir/new
  /$file_id
   )
  ;
  }
  alarm 0;
};