RE: [vchkpw] Spamassassin + Clamav Antivirus + vpopmail

2004-01-28 Thread Jeremy Kitchen
On Mon, 2004-01-26 at 15:57, Tom Walsh wrote:
> > I know qmail-scanner.pl, but is this a fast method ? 
> > Meanwhile.. My Spamassassin needs aproximately 10 seconds for 
> > scanning one message. Is this the normal duration ?
> 
> I use a known spam message as a test bed for tuning performance of our
> SpamAssassin installation.
> 
> You can run:
> 
> cat /path/to/known/spam/message | spamassassin -D

you should be using spamc and not spamassassin.

spamd/spamc is a much better combination, especially on heavily loaded
servers.

-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] single letter local part

2004-01-28 Thread Jeremy Kitchen
On Mon, 2004-01-26 at 16:02, Alastair Battrick wrote:
> Hi
> 
> Can someone explain why vpopmail won't let me have "[EMAIL PROTECTED]" as a valid
> email address.

the official reason that I know of from previous list posts is because
of how vpopmail hashes the user directories after X number of users.

However, thinking back on it, I'm not really sure why it's a
limitation.  Perhaps someone who knows the down and dirty of the code
can explain this further.

> Is there any way around this?

a method was explained to you on how to do this is another post, so I
will just refer you to it.

-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] Compiling error...

2004-01-28 Thread Jeremy Kitchen
On Mon, 2004-01-26 at 17:37, Tom Collins wrote:
> On Jan 26, 2004, at 4:11 PM, Stian Hole wrote:
> > I get the following error when trying to compile vpopmail:
> >
> > In file included from vconvert.c:35:
> > vmysql.h:53:22: missing terminating " character
> > vmysql.h:60:35: missing terminating " character
> > make[2]: *** [vconvert.o] Error 1
> > make[2]: Leaving directory `/root/vpopmail-5.2.1'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/root/vpopmail-5.2.1'
> > make: *** [all-recursive-am] Error 2
> 
> That error was fixed in 5.2.2, available at .

or you can simply go to the lines referenced and add the missing \ on
two of the lines in between there :)

-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] bounce maybe used to relay spam

2004-01-28 Thread Jeremy Kitchen
On Tue, 2004-01-27 at 14:45, Oden Eriksson wrote:
> > Or, try to apply the check user patch to the smtp server so the
> > email never makes it into your queue.
> 
> Would it be possible to make a domain that uses this technique but forward all 
> mail to another server, as a gateway?

checkuser patch uses vpopmail calls.  the domain would have to be in 
vpopmail on the other server and/or would require some more advanced
configuration.

-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] Multiple Independent Pipes

2004-01-28 Thread Andy BIERLAIR
Correct me if I am wrong:

If you do this in a .qmail: (one line, no line break)

| script1.pl | script2.pl
(here the result piped into script2.pl depends on the output of script1.pl)

That's different from: (two lines, one line break)

| script1.pl
| script2.pl
(here both deliver independent results)

Correct?


Andy

-Original Message-
From: Jeremy Kitchen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 28, 2004 07:48
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] Multiple Independent Pipes

On Mon, 2004-01-26 at 09:33, Andy BIERLAIR wrote:
> Hello,
> 
> I am looking for a solution to make multiple independent pipes in qmail
with
> vpopmail. Usually you do independent pipes like this:
> 
> .qmail-default
> 
> | /usr/local/bin/a-selfmade-script.pl
> | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox
> 
> Now imagine a-self-script.pl breaks and the output is empty. The result
will
> be no delivery.

nope.

they are seperate delivery instructions, try this:

|cat - > /dev/null
|forward [EMAIL PROTECTED]

now, with your theory, nothing will be forwarded to [EMAIL PROTECTED],
when in fact, the entire message will be :)

however, if the perl script 'breaks' it should exit 111 to report
temporary failure so it will be tried again, unless errors are simply to
be ignored.

man dot-qmail

-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



smime.p7s
Description: S/MIME cryptographic signature


Re: [vchkpw] bounce maybe used to relay spam

2004-01-28 Thread Tom Jackson
On Tue, 2004-01-27 at 23:02, Jeremy Kitchen wrote:

> checkuser patch uses vpopmail calls.  the domain would have to be in 
> vpopmail on the other server and/or would require some more advanced
> configuration.

I ran into another problem. My mx server, which really shouldn't have
email addresses is listed in defaultdomain, rcpthosts and
virtualdomains. However I never added it as a domain. I discovered that
qmail was trying to deliver to a box in this domain (which didn't
exist). So I tried to add the domain and got a segfault. 

Some how I got it into a state where trying to delete the domain give
"Domain doesn't exist" and trying to add it returns "Domain already
exists". 

Have I totally screwed up here? How can I recover this install?

Any help is greatly appreciated.

tom jackson



RE: [vchkpw] Multiple Independent Pipes

2004-01-28 Thread Jeremy Kitchen
On Wed, 2004-01-28 at 01:25, Andy BIERLAIR wrote:
> Correct me if I am wrong:
> 
> If you do this in a .qmail: (one line, no line break)
> 
> | script1.pl | script2.pl
> (here the result piped into script2.pl depends on the output of script1.pl)

yes

> That's different from: (two lines, one line break)
> 
> | script1.pl
> | script2.pl
> (here both deliver independent results)

yes

they are different in that they are entirely seperate delivery
instructions, and each will get a fresh copy of the message along with a
fresh environment to work from.

man qmail-command
man dot-qmail

-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] bounce maybe used to relay spam

2004-01-28 Thread Jeremy Kitchen
please don't include me in the receipient list of messages posted to the
list.  I already get a copy, I do not need multiple copies, thank you.

On Wed, 2004-01-28 at 01:45, Tom Jackson wrote:
> I ran into another problem. My mx server, which really shouldn't have
> email addresses is listed in defaultdomain, rcpthosts and
> virtualdomains. However I never added it as a domain. I discovered that
> qmail was trying to deliver to a box in this domain (which didn't
> exist). So I tried to add the domain and got a segfault. 

so this is not related to the thread you replied to to make this post?  
If not, please, in the future, start a new thread when asking a new,
unrelated question.  Most mail clients have a 'new mail' function that
cna handle this.  That being said:

> Some how I got it into a state where trying to delete the domain give
> "Domain doesn't exist" and trying to add it returns "Domain already
> exists". 

if it's only in rcpthosts and virtualdomains, just remove it from them
manually (text editor, sed, perl, c program, lots of ways to do this)
and then HUP qmail-send.

If this machine is to receive email for the domain and pass it off to
another server, simply add the domain to to rcpthosts and make a
corresponding smtproutes entry to pass it to the other machine.  You
will of course have to remove the domain from virtualdomains to prevent
local delivery of the mail from being attempted.

-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



[vchkpw] Attachments

2004-01-28 Thread Björn Hahnefeld
Hi there,

we use qmail and some of our customers have problems with attachments.
Outlook shows the message in the outgoing-folder, but has sent the
messages (5 mb) at least 2 times. Could it be a problem with
Open-Relays? What else can be done?

Greets

Björn



RE: [vchkpw] Spamassassin + Clamav Antivirus + vpopmail

2004-01-28 Thread Tom Walsh
> On Mon, 2004-01-26 at 15:57, Tom Walsh wrote:
> > > I know qmail-scanner.pl, but is this a fast method ?
> > > Meanwhile.. My Spamassassin needs aproximately 10 seconds for 
> > > scanning one message. Is this the normal duration ?
> > 
> > I use a known spam message as a test bed for tuning 
> performance of our 
> > SpamAssassin installation.
> > 
> > You can run:
> > 
> > cat /path/to/known/spam/message | spamassassin -D
> 
> you should be using spamc and not spamassassin.
> 
> spamd/spamc is a much better combination, especially on 
> heavily loaded servers.

Jeremy,

While you are completely right spamc/spamd are a better combination for
performance, there are no debugging abilities in spamc/spamd where as
there are many debugging functionalities in the standalone spamassassin
script.

The purpose of my example was to help troubleshoot a slow spamassassin
installation, not to provide a working solution to the problem.

I stand by the fact that running spamassassin with the -D comamndline
switch is an effective method of testing spamassassin and the various
checks that SA performs.

Tom Walsh
Network Administrator
http://www.ala.net/




[vchkpw] reg:smtp auth {?]

2004-01-28 Thread Girish
Hi all,

I had pached the qmail with new SPAM CONTROL and trying smtp authentication
Now i need to try it whether it is working or not ..
for that i tried ..

>>telnet localhost 25
>>ehlo
250-domain.com
250-PIPELINING
250-8BITMIME
250 SIZE 0
250-AUTH LOGIN PLAIN MD5-
>>Auth login
334 VXNlcm5hbWU6
>girish
>girish
Invalid user $#22 (5.7.1)



my qmail-smtpd/run is as follows

#!/bin/sh
QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
exec /usr/local/bin/softlimit -m 800 \
/usr/local/bin/tcpserver -v -R -l 0 -x /etc/tcp.smtp.cdb -c "$MAXSMTPD"
\
-u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd \
 /home/vpopmail/bin/vchkpw 2>&1


when I had installed cmd5chkpasswd it works fine.
where i had gone wrong with vpopmail config.

i send this query on vpopmail list but no response..
Where i had gone wrong ???



Re: [vchkpw] bounce maybe used to relay spam

2004-01-28 Thread Oden Eriksson
onsdagen den 28 januari 2004 08.02 skrev Jeremy Kitchen:
> On Tue, 2004-01-27 at 14:45, Oden Eriksson wrote:
> > > Or, try to apply the check user patch to the smtp server so the
> > > email never makes it into your queue.
> >
> > Would it be possible to make a domain that uses this technique but
> > forward all mail to another server, as a gateway?
>
> checkuser patch uses vpopmail calls.  the domain would have to be in
> vpopmail on the other server and/or would require some more advanced
> configuration.
>
> -Jeremy

Soon I will have to implement this. I have seen other similar solutions that 
are vpopmail independent. I don't want to lose /etc/passwd user 
functionalities..., as with the checkuser patch. I want both;)

It would be very nice if this was added to vpopmail+qmailadmin, like a "ghost" 
or maybe a "forward" domain where one can keep the email addresses in sync by 
uploading a csv file or something like that.

This particular setup I'm having is a wan <-> qmail <-> groupwise thing, plus 
standard vpopmail domains.

Cheers.



[vchkpw] Quotas over NFS

2004-01-28 Thread Systems Administrator

Ok.. Vpopmail uses maildir++

I have an NFS export to store /home/vpopmail/domains

If I do a vuserinfo on a user it shows something like 92%
If I du -sh inside ~vpopmail/domains/domainname/theirhomedir

I'm only getting like 164Kb.

The quota isn't either being reset or lowered according to what is really in
the user's homedir.
Its like the quota is built up in maildirsize, but never lowered or checked
for new quota after mail is checked or removed from Maildir/new or
Maildir/cur


Is there any kind of fix for this or any suggestions?


Thanks


Daniel Corrigan
Cebridge Connections



Re: [vchkpw] reg:smtp auth {?]

2004-01-28 Thread X-Istence
Girish wrote:

Hi all,

I had pached the qmail with new SPAM CONTROL and trying smtp authentication
Now i need to try it whether it is working or not ..
for that i tried ..
 

telnet localhost 25
ehlo
 

250-domain.com
250-PIPELINING
250-8BITMIME
250 SIZE 0
250-AUTH LOGIN PLAIN MD5-
 

Auth login
 

334 VXNlcm5hbWU6
 

girish
girish
   

Invalid user $#22 (5.7.1)



my qmail-smtpd/run is as follows

#!/bin/sh
QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
exec /usr/local/bin/softlimit -m 800 \
   /usr/local/bin/tcpserver -v -R -l 0 -x /etc/tcp.smtp.cdb -c "$MAXSMTPD"
\
   -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd \
/home/vpopmail/bin/vchkpw 2>&1
when I had installed cmd5chkpasswd it works fine.
where i had gone wrong with vpopmail config.
i send this query on vpopmail list but no response..
Where i had gone wrong ???


 

Try adding /bin/true right after

/home/vpopmail/bin/vchkpw

So your script looks like:

#!/bin/sh
QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
exec /usr/local/bin/softlimit -m 800 \
   /usr/local/bin/tcpserver -v -R -l 0 -x /etc/tcp.smtp.cdb -c "$MAXSMTPD"
\
   -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd \
/home/vpopmail/bin/vchkpw /bin/true 2>&1



Re: [vchkpw] Spamassassin + Clamav Antivirus + vpopmail

2004-01-28 Thread Mark Woodson
On Wednesday 28 January 2004 08:07 am, Tom Walsh wrote:
[snip]
> > > You can run:
> > >
> > > cat /path/to/known/spam/message | spamassassin -D
> >
> > you should be using spamc and not spamassassin.
> >
> > spamd/spamc is a much better combination, especially on
> > heavily loaded servers.
>
> Jeremy,
>
> While you are completely right spamc/spamd are a better combination
> for performance, there are no debugging abilities in spamc/spamd
> where as there are many debugging functionalities in the standalone
> spamassassin script.
>
> The purpose of my example was to help troubleshoot a slow
> spamassassin installation, not to provide a working solution to the
> problem.
>
> I stand by the fact that running spamassassin with the -D
> comamndline switch is an effective method of testing spamassassin
> and the various checks that SA performs.

While that is certainly true, telling spamd to run in the foreground 
(not adding -d), and to turn on debugging -D is an option, and I'm 
not sure that it differs at all from running spamassassin -D.

From man spamd:

NAME
   spamd - daemonized version of spamassassin

SYNOPSIS
   spamd [options]

   Options:

[snip]
-d, --daemonizeDaemonize
[snip]
-D, --debugPrint debugging messages
[snip]

-Mark



Re: [vchkpw] reg:smtp auth {?]

2004-01-28 Thread Tom Collins
On Jan 28, 2004, at 9:48 AM, Girish wrote:
I had pached the qmail with new SPAM CONTROL and trying smtp 
authentication
Now i need to try it whether it is working or not ..
for that i tried ..

telnet localhost 25
ehlo
250-domain.com
250-PIPELINING
250-8BITMIME
250 SIZE 0
250-AUTH LOGIN PLAIN MD5-
Auth login
334 VXNlcm5hbWU6
girish
girish
Invalid user $#22 (5.7.1)
That isn't the correct format for an AUTH LOGIN session.  Take a look 
at  for details on properly 
testing SMTP AUTH.

Also, what version of vpopmail are you using?  5.4.0-rc2 includes 
updates to vchkpw that may not work correctly with older versions of 
the SMTP AUTH patch.  It works correctly with the updated patch at the 
URL above.

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


[vchkpw] How to Limit bandwidth

2004-01-28 Thread Alexandre Barbosa



Hi,
 
How do i limit the bandwidth for outgoing messages 
?
 
One customer had used all my bandwidth send 
messages.
 
I have 2 Mbps, and i would like to set 1024 
kbps to mail services ( SMTP / POP ).
 
Is that possible ?


Re: [vchkpw] How to Limit bandwidth

2004-01-28 Thread alucard

> How do i limit the bandwidth for outgoing messages ?
>


You should use a firewall -netfilter or something similar if your OS is
not linux- taht has the option to regulate comming and outgoing packets...
If there's a way to use any inter7 software to do such a thing I don't
know it

Juan


[vchkpw] Commerical

2004-01-28 Thread KTS
What is 'commerical' support?


 KS

   KARICO Business Services
   Toronto, ON Canada
   http://www.karico.ca



Re: [vchkpw] Commerical

2004-01-28 Thread Ken Jones
On Wednesday 28 January 2004 8:05 pm, KTS wrote:
> What is 'commerical' support?

It is support provided by a company for a fee.

Ken Jones



Re: [vchkpw] How to Limit bandwidth

2004-01-28 Thread Alex Martin
Hello,

You need to use netfilter for packet management. http://www.lartc.org

I would recommend using shorewall. http://www.shorewall.net

It is a straightforward way to make complex iptables rulsets.

It also supports traffic control. I use "wondershaper" (<-google that)

Regards,

Alex Martin
http://www.rettc.com


[EMAIL PROTECTED] wrote:

How do i limit the bandwidth for outgoing messages ?

   



You should use a firewall -netfilter or something similar if your OS is
not linux- taht has the option to regulate comming and outgoing packets...
If there's a way to use any inter7 software to do such a thing I don't
know it
Juan