[vchkpw] how to user checkattach in qmail

2005-04-28 Thread Manish Jain



Hello All,

Can anyone tell me how to use checkattachscript in qmail for content 
filtering to stop some unwanted attachments.

thanks in advance,

Manish Jain(Network Administrator)C-DAC "Anusandhan 
Bhawan"C-56/1, Sector-62, Noida- 210307Ph: 91 120 2402551-60 (Extn.- 
718) 91 120 2402563 (Direct)

Blank Bkgrd.gif

Re: [vchkpw] how to user checkattach in qmail

2005-04-28 Thread Lucas G. Obredor



Jain.
  You could 
consider qmailscanner, i think is the best option.

Regards

  - Original Message - 
  From: 
  Manish 
  Jain 
  To: vchkpw@inter7.com ; qmail@list.cr.yp.to 
  Sent: Thursday, April 28, 2005 7:26 
  AM
  Subject: [vchkpw] how to user checkattach 
  in qmail
  
  Hello All,
  
  Can anyone tell me how to use checkattachscript in qmail for 
  content filtering to stop some unwanted attachments.
  
  thanks in advance,
  
  Manish Jain(Network Administrator)C-DAC "Anusandhan 
  Bhawan"C-56/1, Sector-62, Noida- 210307Ph: 91 120 2402551-60 (Extn.- 
  718) 91 120 2402563 (Direct)
  
Blank Bkgrd.gif

Re: [vchkpw] how to user checkattach in qmail

2005-04-28 Thread Manish Jain



Then please tell me in details how shud i 
proceed for that so that i can work on my live mailserver.

  - Original Message - 
  From: 
  Lucas 
  G. Obredor 
  To: vchkpw@inter7.com 
  Sent: Thursday, April 28, 2005 4:40 
  PM
  Subject: Re: [vchkpw] how to user 
  checkattach in qmail
  
  Jain.
You 
  could consider qmailscanner, i think is the best option.
  
  Regards
  
- Original Message - 
From: 
Manish Jain 
To: vchkpw@inter7.com ; qmail@list.cr.yp.to 
Sent: Thursday, April 28, 2005 7:26 
AM
Subject: [vchkpw] how to user 
checkattach in qmail

Hello All,

Can anyone tell me how to use checkattachscript in qmail for 
content filtering to stop some unwanted attachments.

thanks in advance,

Manish Jain(Network Administrator)C-DAC "Anusandhan 
Bhawan"C-56/1, Sector-62, Noida- 210307Ph: 91 120 2402551-60 (Extn.- 
718) 91 120 2402563 (Direct)

Blank Bkgrd.gif

Re: [vchkpw] how to user checkattach in qmail

2005-04-28 Thread Rick van Vliet
Manish Jain wrote:
Then please tell me in details how shud i proceed for that so that i can 
work on my live mailserver.

- Original Message -
*From:* Lucas G. Obredor mailto:[EMAIL PROTECTED]
*To:* vchkpw@inter7.com mailto:vchkpw@inter7.com
*Sent:* Thursday, April 28, 2005 4:40 PM
*Subject:* Re: [vchkpw] how to user checkattach in qmail
Jain.
You could consider qmailscanner, i think is the best option.
 
Regards

- Original Message -
*From:* Manish Jain mailto:[EMAIL PROTECTED]
*To:* vchkpw@inter7.com mailto:vchkpw@inter7.com ;
qmail@list.cr.yp.to mailto:qmail@list.cr.yp.to
*Sent:* Thursday, April 28, 2005 7:26 AM
*Subject:* [vchkpw] how to user checkattach in qmail
Hello All,
 
Can anyone tell me how to use checkattach script in qmail for
content filtering to stop some unwanted attachments.
 
thanks in advance,
 
Manish Jain
(Network Administrator)
C-DAC Anusandhan Bhawan
C-56/1, Sector-62, Noida- 210307
Ph: 91 120 2402551-60 (Extn.- 718)
  91 120 2402563 (Direct)

 

Hi-
1) please don't top-post
2) please don't send HTML messeages into a technical list
3) please DO read http://qmail-scanner.sourceforge.net/
and
http://qmail-scanner.sourceforge.net/FAQ.php
(Google *should* be your friend, by now)
have a nice day,
rick



Re: [vchkpw] how to user checkattach in qmail

2005-04-28 Thread Ken Jones
On Thursday 28 April 2005 5:26 am, Manish Jain wrote:
 BlankHello All,

 Can anyone tell me how to use checkattach script in qmail for content
 filtering to stop some unwanted attachments.

You can also use simscan. It supports blocking attachments.
http://www.inter7.com/?page=simscan

It works with the QMAILQUEUE patch.

Ken Jones


[vchkpw] Getting segmentation fault with chkusr patch for qmail-smtpd

2005-04-28 Thread Glenn F. Henriksen
Hi.

I downloaded the chkusr patch from
http://www.interazioni.it/opensource/chkuser/download/ and tried to
install it.

My Qmail setup is a straight qmailrocks setup from January this year.

I follow the instructions for chkusr to the best of my ability and I
believe I've gotten them right.

But when I test it afterwards I get a segmentation fault whenever I
type mail on a line.

Examples:
[EMAIL PROTECTED] qmail-1.03]# ./qmail-smtpd
220 mx2.example.com ESMTP
mail
Segmentation fault
[EMAIL PROTECTED] qmail-1.03]# ./qmail-smtpd
220 mx2.example.com ESMTP
helo
250 mx2.example.com
rcpt to: [EMAIL PROTECTED]
503 MAIL first (#5.5.1)
mail
Segmentation fault
[EMAIL PROTECTED] qmail-1.03]# ./qmail-smtpd
220 mx2.example.com ESMTP
mail from: [EMAIL PROTECTED]
Segmentation fault

I have found out that it is the additions to qmail-smtpd.c that causes
the fault. Both the addition in smtp_mail and in smtp_rcpt causes
segmentation fault. If I just add the code on the smtp_rcpt function I
get a regmentation fault whenever I send the rcpt command to smtpd.

Are there any obvious things I've missed that creates these faults?

Is there any way I can figure out exactly where in chkusr it fails?

Are there any alternatives to chkusr when using qmail/vpopmail?

Thank you!

Regards, 
Glenn F. Henriksen


[vchkpw] Re: Getting segmentation fault with chkusr patch for qmail-smtpd

2005-04-28 Thread Peter Palmreuther
Hello Glenn,

On Thursday, April 28, 2005 at 9:55:57 PM Glenn wrote:

[chkusr patch applied to qmailrocks setup qmail]
 But when I test it afterwards I get a segmentation fault whenever I
 type mail on a line.
[...]
 Is there any way I can figure out exactly where in chkusr it fails?

*exactly*? Compile qmail without and '-O' and with '-g2' and run
qmail-smtpd in 'dbg' (or similar).

Rough first guess? Use 'strace' or 'truss' (with follow fork option)
to get an estimated idea about when it segfaults.
-- 
Best regards
Peter Palmreuther

Petrified Spare Ribs:  Jurassic Pork



RE: [vchkpw] Re: Getting segmentation fault with chkusr patch for qmail-smtpd

2005-04-28 Thread Glenn F. Henriksen
 *exactly*? Compile qmail without and '-O' and with '-g2' and run
 qmail-smtpd in 'dbg' (or similar).
 Use 'strace' or 'truss' (with follow fork option) 

I'm obviously abit over my head here on the Linux platform. :-) I don't
have truss or dbg on my machine. I have strace however but I didn't get
any smarter. Removed -O2 from conf-cc, touched *.c and ran make but
strace didn't display anything more.

Part of strace output:
-
write(1, 220 mx2.example.com ESMTP\r\n, 0 mx2.example.com ESMTP
) = 22
alarm(0)= 1200
alarm(1200) = 0
read(0, helo
helo\n, 1024) = 5
alarm(0)= 1197
alarm(1200) = 0
write(1, 250 mx2.example.com\r\n, 16250 mx2.example.com
)  = 16
alarm(0)= 1200
alarm(1200) = 0
read(0, mail
mail\n, 1024) = 5
alarm(0)= 1199
alarm(1200) = 0
write(1, 250 ok\r\n, 8250 ok
)   = 8
alarm(0)= 1200
alarm(1200) = 0
read(0, rcpt
rcpt\n, 1024) = 5
alarm(0)= 1197
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

The lines starting with read(0,  is followed by my input. I have no
idea if this helps anyone see what's wrong though.

Sorry for being a complete newbie on this...

Regards,
Glenn F. Henriksen