[vchkpw] chkusr patch - false negatives

2004-05-11 Thread Charles Sprickman
Howdy,

I've seen a few people complaining that their mail is getting bounced.
Not good, needless to say.  On examing the bounces, I see that it's the
chkusr error message that the user does not exist.

At this point my best guess, by looking at overall server activity is that
this is happening when the machine really gets swamped (all incoming smtp
connections chewed up with spam runs - this server and a backup server).
I have mysql set to 500 max connections, and just bumped that up to 800.

I was surprised a bit by how chkusr behaves if the mysql server goes away
- rather than erring on the side of caution and trying to deliver the
mail, it bounces it.  I verified this on a test box.

FWIW, this is the Shupp chkusr patch, there's no version info in the
patch, but it looks like it was made 3/16/2003.

Is this how chkusr is supposed to operate?  If so, I need an
alternative, as most other parts of vpopmail survive a brief database
outage without dumping good mail.

Are there any other tested chkusr type patches out there?  Please share!

Thanks,

Charles


Re: [vchkpw] chkusr patch - false negatives

2004-05-11 Thread Charles Sprickman
Just following up on my own question a bit...

I'm trying to figure out how many mysql hits a single incoming message can
generate to arrive at a max_connections setting for mysql.

Worst case, I assume it would look like this:

-initial chkusr check (is it a valid address?)
-smtp-auth (possible if it's a local user sending to another)
-vdelivermail (look up where to deliver)
-spamc (if user has spamassassin enabled, prefs fetched via mysql)

Am I missing anything on the delivery side?

These obviously aren't all concurrent, but the hits are all pretty
rapid-fire.

So if I am allowing a max of 100 concurrent qmail-smtpd's, what would be a
safe number of concurrent mysql connections when the box is maxed out?
Multiply 100 by 2, 3, 4?

For mail retrieval, I can measure a bit more easily...

Thanks,

Charles

On Tue, 11 May 2004, Charles Sprickman wrote:

 Howdy,

 I've seen a few people complaining that their mail is getting bounced.
 Not good, needless to say.  On examing the bounces, I see that it's the
 chkusr error message that the user does not exist.

 At this point my best guess, by looking at overall server activity is that
 this is happening when the machine really gets swamped (all incoming smtp
 connections chewed up with spam runs - this server and a backup server).
 I have mysql set to 500 max connections, and just bumped that up to 800.

 I was surprised a bit by how chkusr behaves if the mysql server goes away
 - rather than erring on the side of caution and trying to deliver the
 mail, it bounces it.  I verified this on a test box.

 FWIW, this is the Shupp chkusr patch, there's no version info in the
 patch, but it looks like it was made 3/16/2003.

 Is this how chkusr is supposed to operate?  If so, I need an
 alternative, as most other parts of vpopmail survive a brief database
 outage without dumping good mail.

 Are there any other tested chkusr type patches out there?  Please share!

 Thanks,

 Charles



[vchkpw] Error vdelivermail shared lib

2004-05-11 Thread Juan Enciso Condeña
I have this problem.
I am using vpopmail-5.4.0 with ldap module.
I need create a this alias:

cat .qmail-user1
| /usr/vpopmail/bin/vdelivermail '' /usr/vpopmail/domains/domain.com/user1
[EMAIL PROTECTED]

but vdelivermail show me this error:

@400040a183cd2c95b04c status: local 1/10 remote 0/255
@400040a183e31874db4c delivery 8: deferral:
/usr/vpopmail/bin/vdelivermail:_error_while_loading_shared_libraries:_libz.s
o.1:_cannot_open_shared_object_file:_Error_23/
@400040a182551860f974 delivery 6: deferral:
/usr/vpopmail/bin/vdelivermail:_error_while_loading_shared_libraries:_libk5c
rypto.so.3:_cannot_open_shared_object_file:_No_such_file_or_directory/

thanks for your reply.

Juan



[vchkpw] Forward a message copy

2004-05-11 Thread Juan Enciso Condeña
Hi folks.
How can forward a copy of message a another account of same domain?
I need do this: 
When somebody send a message  to [EMAIL PROTECTED], do:
copy to /home/vpopmail/domains/domain.com/user1/Maildir/new/message.eml
copy to /home/vpopmail/domains/domain.com/user2/Maildir/new/message.eml

It is possible?
  
Juan Enciso 


RE: [vchkpw] Problems with authentication

2004-05-11 Thread Michael J Humphries
I am using netqmail 1.05 vpopmail 5.4.0.  I have tried to recompile vpopmail
now that the defaultdomain file is there and that did nothing.  I still have
to use the full name.

Michael J. Humphries
Alphacomm.net
Getting You Connected!!!
906-639-3500 - Carney
906-753-6410 - Stephenson
877-450-3500 - Toll Free
www.alphacomm.net

-Original Message-
From: Tom Collins [mailto:[EMAIL PROTECTED]
Sent: Monday, May 10, 2004 3:55 PM
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] Problems with authentication

What version of vpopmail?  The defaultdomain file was added somewhere
in the 5.3 series.  Be sure to recompile/install Courier-IMAP (if
you're using it) so it can use the new vpopmail code for setting the
default domain.

On May 7, 2004, at 8:44 AM, Michael J Humphries wrote:
 I have this in now and it still does not authenticate with the full
 name

 [EMAIL PROTECTED] root]# cd ~vpopmail/etc
 [EMAIL PROTECTED] etc]# cat defaultdomain
 uptel.local
 [EMAIL PROTECTED] etc]#

 Michael J. Humphries
 Alphacomm.net
 Getting You Connected!!!
 906-639-3500 - Carney
 906-753-6410 - Stephenson
 877-450-3500 - Toll Free
 www.alphacomm.net

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 07, 2004 10:14 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [vchkpw] Problems with authentication

 I am using netqmail 1.05, tcpserver, and vpopmail.  I can now login
 using
 all means necessary but I have to use the username%domainname setup to
 login.  I only have one domain here.  Is there a setting that I am
 missing
 so that I can not use the %domainname suffix?

 Michael J. Humphries
 Alphacomm.net
 Getting You Connected!!!
 906-639-3500 - Carney
 906-753-6410 - Stephenson
 877-450-3500 - Toll Free
 www.alphacomm.net


 default domain for vpopmail is ~vpopmail/etc/defaultdomain

 run:
 echo sddt.com  ~vpopmail/etc/defaultdomain





--
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] Problems with authentication

2004-05-11 Thread Michael J Humphries
I am also not using courier-imap

Michael J. Humphries
Alphacomm.net
Getting You Connected!!!
906-639-3500 - Carney
906-753-6410 - Stephenson
877-450-3500 - Toll Free
www.alphacomm.net

-Original Message-
From: Tom Collins [mailto:[EMAIL PROTECTED]
Sent: Monday, May 10, 2004 3:55 PM
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] Problems with authentication

What version of vpopmail?  The defaultdomain file was added somewhere
in the 5.3 series.  Be sure to recompile/install Courier-IMAP (if
you're using it) so it can use the new vpopmail code for setting the
default domain.

On May 7, 2004, at 8:44 AM, Michael J Humphries wrote:
 I have this in now and it still does not authenticate with the full
 name

 [EMAIL PROTECTED] root]# cd ~vpopmail/etc
 [EMAIL PROTECTED] etc]# cat defaultdomain
 uptel.local
 [EMAIL PROTECTED] etc]#

 Michael J. Humphries
 Alphacomm.net
 Getting You Connected!!!
 906-639-3500 - Carney
 906-753-6410 - Stephenson
 877-450-3500 - Toll Free
 www.alphacomm.net

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 07, 2004 10:14 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [vchkpw] Problems with authentication

 I am using netqmail 1.05, tcpserver, and vpopmail.  I can now login
 using
 all means necessary but I have to use the username%domainname setup to
 login.  I only have one domain here.  Is there a setting that I am
 missing
 so that I can not use the %domainname suffix?

 Michael J. Humphries
 Alphacomm.net
 Getting You Connected!!!
 906-639-3500 - Carney
 906-753-6410 - Stephenson
 877-450-3500 - Toll Free
 www.alphacomm.net


 default domain for vpopmail is ~vpopmail/etc/defaultdomain

 run:
 echo sddt.com  ~vpopmail/etc/defaultdomain





--
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/



[vchkpw] POP3 authentication doesnt work for virtual accounts

2004-05-11 Thread Patrick Donker
Hi peeps,

Yesterday I managed to get imap authentication working for virtual 
accounts, but now I tried to connect through pop3, but I keep on getting 
authentication errors. I assume it is a similair problem as with imap auth.
Can anybody tell me how to get this working? I'm sure that I can get it 
to work on my own, but the last time it took me 2 days before I figured 
it out and I assume that people here on this list have encountered 
similair problems before.
Here is my pop3 run file:
#!/bin/sh
env - PATH=/var/qmail/bin:/usr/local/bin \
exec softlimit -m 200tcpserver -u 89 -g 89 -v -H -R -l 0 0 110 \
   /var/qmail/bin/qmail-popup FQDM \
   /server/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 

Is this a good way to get it working?
Any help is most welcomed as I need to get my server working asap.
TIA
-Patrick


Re: [vchkpw] POP3 authentication doesnt work for virtual accounts

2004-05-11 Thread Jeremy Kitchen
On Tuesday 11 May 2004 09:04 am, Patrick Donker wrote:
[snip can't authenticate with pop]

 Here is my pop3 run file:
 #!/bin/sh
 env - PATH=/var/qmail/bin:/usr/local/bin \
 exec softlimit -m 200tcpserver -u 89 -g 89 -v -H -R -l 0 0 110 \
 /var/qmail/bin/qmail-popup FQDM \
 /server/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 

you have to run that as root.  checkpassword modules setuid to the proper user 
and then call their arguments.

It could however, also be two or 3 other things, including softlimit, but you 
didn't show us anything (logs, example telnet session, etc) that could help 
us otherwise.

-Jeremy

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
  [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 847.492.0470 int'l
kitchen @ #qmail #gentoo on EFnet ++ scriptkitchen.com/qmail



Re: [vchkpw] POP3 authentication doesnt work for virtual accounts

2004-05-11 Thread Patrick Donker




Jeremy Kitchen wrote:

  On Tuesday 11 May 2004 09:04 am, Patrick Donker wrote:
[snip can't authenticate with pop]

  
  
Here is my pop3 run file:
#!/bin/sh
env - PATH="/var/qmail/bin:/usr/local/bin" \
exec softlimit -m 200tcpserver -u 89 -g 89 -v -H -R -l 0 0 110 \
/var/qmail/bin/qmail-popup FQDM \
/server/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 

  
  
you have to run that as root.  checkpassword modules setuid to the proper user 
and then call their arguments.

It could however, also be two or 3 other things, including softlimit, but you 
didn't show us anything (logs, example telnet session, etc) that could help 
us otherwise.

-Jeremy

  

Jeremy, I guess cosmic radiation made it work again after a reboot.
Dont ask me why, it just does




[vchkpw] Shared IMAP dirs with Vpopmail

2004-05-11 Thread Jeff Sorrentino
Hello,
I am running Courier-IMAP with vpopmail and virtual domains.
I need to create a global shared IMAP directory for the 
domain's spam.  Can anyone give me instructions how to do this 
properly?  I tried maildirmake, it creates a regular maildir, and also 
tried using the /etc/maildirshared file for courier-imap.  The 
directories I create (with maildirmake -S and them -s xxx -f) do not 
show up as subscribable...

Thanks for the help!

Jeff Sorrentino



[vchkpw] QmailAdmin compiling on x86-64

2004-05-11 Thread blist




I am trying to configure QmailAdmin for my system to work with my 
xf86-64 system and not having luck.. Here is the output:

ps2:/usr/src/qmail/qmailadmin-1.2.0 # ./configure 
--enable-htmldir=/home/prostream/prostream.net 
--enable-cgibindir=/home/prostream/cgi-bin/ 
--enable-autoresponder-bin=/usr/local/bin 
--enable-ezmlmdir=/usr/local/bin/ezmlm --enable-ezmlmidx=y 
--enable-vpopuser=vpopmail --includedir=/usr/local/vpopmail/include
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking build system type... Invalid configuration 
`x86_64-unknown-linuxoldld': machine `x86_64-unknown' not recognized
configure: error: /bin/sh ./config.sub x86_64-unknown-linuxoldld failed

how can I get it to build for x86-64 target?




Re: [vchkpw] QmailAdmin compiling on x86-64

2004-05-11 Thread Patrick Donker






  how can I get it to build for x86-64 target?

I would start with mailing to [EMAIL PROTECTED]




Re: [vchkpw] Shared IMAP dirs with Vpopmail

2004-05-11 Thread Jeremy Kitchen
On Tuesday 11 May 2004 11:18 am, Jeff Sorrentino wrote:
 Hello,
  I am running Courier-IMAP with vpopmail and virtual domains.

  I need to create a global shared IMAP directory for the
 domain's spam.  Can anyone give me instructions how to do this
 properly?  I tried maildirmake, it creates a regular maildir, and also
 tried using the /etc/maildirshared file for courier-imap.  The
 directories I create (with maildirmake -S and them -s xxx -f) do not
 show up as subscribable...

shared folders is a feature of the imap server.  You should probably ask on 
the courier-imap mailing list.

-Jeremy

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
  [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 847.492.0470 int'l
kitchen @ #qmail #gentoo on EFnet ++ scriptkitchen.com/qmail