[vchkpw] Valias and maildrop/vdelivermail, and valias bug?

2003-09-30 Thread Jonathan Viney
Hi,

I have been pondering this problem for a few days now and can't seem to
find a solution. I am trying to implement per user spam/virus prefs
using maildrop as the delivery agent. It is all working apart from two
problems, aliases ad catchall.

Maildrop script (partial):

VPOP=| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox
# Get home directory to deliver to
VHOME=`/home/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]

# If it wasn't a valid user, deliver again with vdelivermail 
# in case it is an alias
if ($RETURNCODE != 0)
{
to $VPOP
}

The problem is that if I put 'to ! catchall' in the if statement it
will bounce for aliases (because vuserinfo doesn't check if the email is
an alias). I could run valias -s email but the valias exit code is
always 0 even if it is an invalid alias.

So, does anyone know how to make catchalls and aliases work nicely with
maildrop?

Also, I think I found a bug in valias (w/ MySQL). If I run the following
commands this is what I get:

[EMAIL PROTECTED]:~# /home/vpopmail/bin/valias -s cat.net
[EMAIL PROTECTED]:~# /home/vpopmail/bin/valias -i [EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]:~# /home/vpopmail/bin/valias -i [EMAIL PROTECTED]
[EMAIL PROTECTED]
Error: alias [EMAIL PROTECTED] - [EMAIL PROTECTED] already exists.
[EMAIL PROTECTED]:~# /home/vpopmail/bin/valias -i [EMAIL PROTECTED]
[EMAIL PROTECTED]
Error: alias [EMAIL PROTECTED] - [EMAIL PROTECTED] already exists.
[EMAIL PROTECTED]:~# /home/vpopmail/bin/valias -s cat.net
[EMAIL PROTECTED] - [EMAIL PROTECTED]

valias won't let me add any more than 1 alias to the domain or so it
seems. The valias table shows:

mysql select * from valias;
+---+-++
| alias | domain  | valias_line|
+---+-++
| dog   | cat.net | [EMAIL PROTECTED] |
+---+-++


Is this a bug or am I missing something?

Cheers,
Jonathan




[vchkpw] vdelivermail EXITCODE problem

2003-09-30 Thread thomas.hendrich
Hi everybody,

yesterday I asked you if there is a problem in vdelivermail of handling EXITCODEs in 
.qmail files and I discovered that in my installed version 5.2 no checking of the 
EXITCODE was possible.

So I upgraded to the last stable version 5.2.1 whereas the changelog said that 
within 5.2.1 the EXITCODE checks would be performed.

Now over the night I discovered that a script started within a .qmail file before the 
deliver-to-Maildir instruction and returns an EXITCODE of 99 or 100 ( which value is 
not important ) the delivery of that mail is interrupted ( not stopped as it sould be 
) BUT the mail stays in the queue and the queue starts delivering mail again and again.
What I´m trying to say is that one single mail has been delivered about 200 times that 
night and everytime the script told vdelivermail to end the delivery and everytime the 
mail stayed within the qmail queue to be delivered some time later.

What I now want to know is if there must be another EXITCODE so that vdelivermail 
definetely kills that mail processing or if this is a bug in vdelivermail and I should 
upgrade to something higher ( i read in the changelog that several fixes to the 
EXITCODE thing have been made in 5.3.x but this versions are to be devel-state and I´m 
wondering if I should use devel-software on a running system.

Thanks for your help!

Thomas 



[vchkpw] Re: Migrating to a new machine question?

2003-09-30 Thread Paul L. Allen

Jesus Ruiz writes:

 The problem is that my clients don't want to lose the email they save in 
 the old server. When we change they account to the new server.
 
 Any suggestion?

Copy the existing mail over.  Rsync is your friend...

-- 
Paul Allen
Softflare Support




Re: AW: AW: WG: [vchkpw] lock account after login failures

2003-09-30 Thread Paul L. Allen

Feucht, Florian writes:

  Perhaps he did, but locked out CONNECTIONS from that IP for 10
  minutes reads differently to me.  If Tom had meant what you said, then 
  I would have expected something like locked out authentication attempts
  from that username/IP pair for 10 minutes.
 
 This idea is great, but doesn't work for me, because all traffic passes
 a proxy firewall (including a esmtp daemon) - so the firewall is the one
 and only entity which makes a connection to the mailserver...

We have many clients behind firewalls.  They too would suffer from a
simple block on an IP address.

 about the DoS attack: sure, it's possible to knock somebody out of his
 mailbox... but i think this is better than if somebody takes it over...

I think it's a close call.  The difference between somebody deleting
your mail before you can read it and somebody blocking your access day
after day is small.  Yes, if they can delete your mail they can also
read it, which may be a bigger problem, but being unable to read your
mail is bad enough.

As I said before, there are ways to greatly reduce the chances of
somebody getting at your mail.  Give your mailbox a randomly-generated
name and use an alias to deliver to it.  Then it doesn't matter how
weak your password is because they'll be trying [EMAIL PROTECTED] instead
of [EMAIL PROTECTED]  This is something that you can do right now,
although it is a pain to administer.  Maybe vpopmail and qmailadmin
should be extended so that there is an option to create random mailbox
names with aliases (to avoid name collisions the random mailbox names would
have to have to start with an underscore or something like that).
 
 if it happens that somebody starts DDoS this way, i can do the
 following:
 - look at my firewall log
 - find out his (or her's ;) ) IP Address
 - block the IP(-Pool)
 - contact the ISP, if it doesn't stop.

That was a workable solution three or four years ago.  These days the
script kiddies use distributed DoS attacks using hundreds of computers
thay've managed to install backdoors on.  You could spend every minute of
your life blocking IP addresses and still not be able to pick up your mail.
A tarpit is a two-edge sword...

-- 
Paul Allen
Softflare Support




Re: [vchkpw] Re: Migrating to a new machine question?

2003-09-30 Thread Jesus Ruiz
Thank you, it worked out
At 05:57 AM 30/09/2003, Paul L. Allen wrote:
Jesus Ruiz writes:

 The problem is that my clients don't want to lose the email they save in
 the old server. When we change they account to the new server.

 Any suggestion?
Copy the existing mail over.  Rsync is your friend...

--
Paul Allen
Softflare Support
Jesus Bernardo Ruiz Flores




Re: [vchkpw] vdelivermail EXITCODE problem

2003-09-30 Thread Brah Mon
Something to look at:

it seems to stand out in my memory as ive had this same problem, but i dont
recall a resolve for it..
basically if you are having the same problem i was, then you cannot have
anything in your .qmail processing fork..
it must continue to run in the foreground or the mail will keep
re-spawning.. one day i ended up with 900 mysqld's running
due to vdelivermail-maildrop-mailfilter. and it only seemed to happen when
called by .qmail files.
if you are doing any processing in .qmail files, make sure they do not get
backgrounded or forked..

i think the man pages for either vdelivermail or qmail-command will have
more info about this..

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 4:09 AM
Subject: [vchkpw] vdelivermail EXITCODE problem


Hi everybody,

yesterday I asked you if there is a problem in vdelivermail of handling
EXITCODEs in .qmail files and I discovered that in my installed version 5.2
no checking of the EXITCODE was possible.

So I upgraded to the last stable version 5.2.1 whereas the changelog said
that within 5.2.1 the EXITCODE checks would be performed.

Now over the night I discovered that a script started within a .qmail file
before the deliver-to-Maildir instruction and returns an EXITCODE of 99 or
100 ( which value is not important ) the delivery of that mail is
interrupted ( not stopped as it sould be ) BUT the mail stays in the queue
and the queue starts delivering mail again and again.
What I´m trying to say is that one single mail has been delivered about 200
times that night and everytime the script told vdelivermail to end the
delivery and everytime the mail stayed within the qmail queue to be
delivered some time later.

What I now want to know is if there must be another EXITCODE so that
vdelivermail definetely kills that mail processing or if this is a bug in
vdelivermail and I should upgrade to something higher ( i read in the
changelog that several fixes to the EXITCODE thing have been made in 5.3.x
but this versions are to be devel-state and I´m wondering if I should use
devel-software on a running system.

Thanks for your help!

Thomas






Re: [vchkpw] vdelivermail EXITCODE problem

2003-09-30 Thread Anders Brander
Hi,

On Tue, 2003-09-30 at 10:09, [EMAIL PROTECTED] wrote:
 So I upgraded to the last stable version 5.2.1 whereas the
 changelog said that within 5.2.1 the EXITCODE checks would be
 performed.

Vpopmail 5.2.1 fails to catch exitcode 100. Here is a patch:
http://fmail.dk/stuff/vpopmail-5.2.1-vdeliver-command-100.diff

Hope this helps.

/Anders





[vchkpw] command to set catch-alls

2003-09-30 Thread Jeff Koch
Is there any way to use the commands in /home/vpopmail/bin to setup domain 
catch-all accounts? We're trying to automate conversions from sendmail's 
virtusertable and are stuck on the catch-all accounts.



Best Regards,

Jeff Koch 





[vchkpw] Re: command to set catch-alls

2003-09-30 Thread Paul L. Allen

Jeff Koch writes:
 
 Is there any way to use the commands in /home/vpopmail/bin to setup domain 
 catch-all accounts?

When I was stuck with this problem quite a while ago I just wrote a bit of
perl to do the job for me.  As others suggested in another thread, it was 
smart enough to ask for domain, postmaster password and then repeteadly 
prompt me for alias domains until it got a blank line as input, then it 
called vadddomain (and vaddaliasdomain if necessary) and wrote a new 
.qmail-default file to set the catchall to deliver to the postmaster's
maildir.

In newer releases of vpopmail, vadddomain has a -e e-mail_adress
option.  If there is an @ in the address you specify then it sets
the catchall to forward to that address; if there is no @ then it sets
the catchall to deliver to a Maildir of that name in that domain.
However, beware that using -e to set the catchall to a maildir does NOT
create that maildir (unless you set it to postmaster, because it creates
the postmaster maildir anyway).  I think it would be a good idea if it did 
create the maildir (if not set to postmaster) as well as creating the
postmaster maildir.

-- 
Paul Allen
Softflare Support




[vchkpw] Re: command to set catch-alls

2003-09-30 Thread Stephane Bouvard [ML]
Hi,

,- - [ Le mardi 30 septembre 2003 vers 18:40 Jeff Koch écrivait: ] - -
|
 Is there any way to use the commands in /home/vpopmail/bin to setup domain
 catch-all accounts? We're trying to automate conversions from sendmail's 
 virtusertable and are stuck on the catch-all accounts.
|
`- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

vadddomain: usage: vadddomain [options] virtual_domain [postmaster password]
options: -v prints the version
 -q quota_in_bytes (sets the quota for postmaster account)
 -b (bounces all mail that doesn't match a user, default)
 -e email_address (forwards all non matching user to this address [*])
 ...


Otherwile, just create the right .qmail-default, does not need any binaries
for that...

echo | /home/vpopmail/bin/vdelivermail '' [EMAIL PROTECTED]  .qmail-default

Best regards...
 _
(_'
,_)téphane Bouvard [antarex AT freenet DOT be] http://www.antarex.be

-- 




RE: [vchkpw] vpopmail 5.3.27 + mysql

2003-09-30 Thread Russell Mann
 Russ,
   Try changing these lines in vpopmail.mysql.
 FROM
 localhost|0|vpopmail_read|password|vpopmail
 localhost|0|vpopmail_edit|password|vpopmail

 TO
 localhost|mysql|vpopmailuser|vpoppasswd|vpopmail
 localhost|mysql|vpopmailuser|vpoppasswd|vpopmail

 -Tom

Tom,

Thanks, I made those changes - still having the same issue.  The fact that
the vlog table fills up with errors when I use the mysql vpopmail would seem
to indicate that at least one of these usernames would be working correctly.
I did test them both with mysql at the command line.

Thanks,

Russell

(sending this to the list because I think it previously went to the default
reply-to)

To recap...

I am trying to
upgrade my working 5.3.27 CDB installation to a 5.3.27 MYSQL installation.
I have 10 domains currently running on this system through CDB databases.

RedHat 2.2.16-3 kernel
mysqld -v outputs this: mysqld  Ver 3.23.40 for pc-linux-gnu on i686

This is what I've done:

create database vpopmail;
grant update, create, delete, insert on vpopmail.* to
[EMAIL PROTECTED] identified by password;
grant select on vpopmail.* to [EMAIL PROTECTED] identified by
password;
flush privileges;

(for each of the 10 domains)
./vconvert-cdb-sql-big.pl
(for each of the 10 domains)
ALTER TABLE domain_dom ADD COLUMN pw_clear_passwd char(16);

in ~vpopmail/etc/vpopmail.mysql

localhost|mysql|vpopmail_read|password|vpopmail
localhost|mysql|vpopmail_edit|password|vpopmail

chmod 600 /home/vpopmail/etc/vpopmail.mysql

tar -xzpf vpopmail-5.3.27.tar.gz
cd vpopmail-5.3.27

./configure \
--enable-roaming-users=y \
--enable-tcpserver-file=/home/vpopmail/etc/tcp.smtp \
--enable-tcprules-prog=/usr/local/bin/tcprules \
--enable-relay-clear-minutes=180 \
--enable-auth-logging=y \
--enable-logging=p \
--enable-learn-passwords=y \
--enable-clear-passwd=y \
--enable-mysql=y \
--enable-incdir=/usr/include/mysql \
--enable-libdir=/usr/lib/mysql \
--enable-mysql-logging=y \
--enable-valias=y \
--enable-mysql-limits=n \
--enable-many-domains=n  \
--enable-qmail-ext=y \
--enable-defaultquota=5000

make
cp -R ~vpopmail/bin ~vpopmail/old.bin
make install-strip

Here's my /service/qmail-pop3d/run file:

#!/bin/sh
VPOPMAILUID=`id -u vpopmail`
VPOPMAILGID=`id -g vpopmail`
exec /usr/local/bin/softlimit -m 300 \
/usr/local/bin/tcpserver -H -R -v \
-u$VPOPMAILUID -g$VPOPMAILGID \
-c100 0 pop3 \
/var/qmail/bin/qmail-popup judah.khouse.org \
/home/vpopmail/bin/vchkpw \
/var/qmail/bin/qmail-pop3d Maildir 21

My qmail install includes the patch  qmail-maildir++.patch.
--

Everything installs and appears to be ready to go.  mysql logging works and
this is what I get in all my logs:

vchkpw-pop3: vpopmail user not found user@domain:ip address

In the error column of vlog, it says: 1

If I do the exact same thing, changing --enable-mysql=y to --enable-mysql=n
and (obviously) not running the vconvert, everything is peachy, although not
using mysql.

Any suggestions?  Is there something I'm not seeing?  Any particular logs
that I should be checking?





Re: [vchkpw] Romaing User problems

2003-09-30 Thread Brah Mon
yes.. mine were created on the fly too before changing to mysql. but my
files are there and owned by vpopmail:vpopmail (i dont have vchkpw group).
even the tmp files being created were owned by vpopmail.

since vpopmail has to be able to write a open-smtp open-smtp.lock and
open-smtp.tmp.

ill send this to the list, maybe someone there would know more about how the
permissions need to be or how they get messed up..

-rw-r--r--1 vpopmail vchkpw 25 Aug 31  2002 inc_deps
-rw-r--r--1 vpopmail vchkpw 67 Aug 31  2002 lib_deps
-rw-r--r--1 vpopmail vchkpw 57 Aug 13  2002 open-smtp
-rw-r--r--1 vpopmail vchkpw  0 Aug 13  2002 open-smtp.lock
-rw-r--r--1 vpopmail vchkpw121 Mar  8  2003 tcp.smtp
-rw-r--r--1 root root 2254 Sep 30 13:22 tcp.smtp.cdb

and actually as i look at this again, it looks as if i have not had an
open-smtp.cdb made.. maybe never on this machine..
but it was setup that way before it came to this machine..

have you verified you have the plaintext 'infile' open-smtp and that
vpopmail has access to read and write to it

contents of mine:
216.88.21.7:allow,RELAYCLIENT=,RBLSMTPD= 1029246966

this was auto put there too.. should just have to touch a file and chown it
to vpopmail.. then when clients are authed their ip and timestamp goes into
open-smtp.
then vpopmail rebuilds the cdb database from open-smtp and i forget its
final name. i think its just open-smtp.cdb and the files you are seeing
being created is the tempfile..

which means either sourcefile or destinationfile are not present.. im
betting on source file..


could ya send an ls -l of ~vpopmail/etc ?

- Original Message -
From: John Boynton [EMAIL PROTECTED]
To: Brah Mon [EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 12:39 PM
Subject: RE: [vchkpw] Romaing User problems


 They are owned by root.

 Where does the ownership get set? These files are created on the fly.

 John B

 -Original Message-
 From: Brah Mon [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 30, 2003 12:43 PM
 To: John Boynton
 Subject: Re: [vchkpw] Romaing User problems


 what user are the open.smtp.tmp. files owned by?
 everything in ~vpopmail/etc should be owned by vpopmail

 if your files are being created by another user then i bet tcpserver
cannot
 update the cdb files as that user..

 - Original Message -
 From: John Boynton [EMAIL PROTECTED]
 To: Brah Mon [EMAIL PROTECTED]
 Sent: Tuesday, September 30, 2003 9:42 AM
 Subject: RE: [vchkpw] Romaing User problems


  Ok I have made the following changes and had the following results:
 
  The files have comments in them to show the changes.
 
  Now the system reads the tcp.smtp.cdb in the /home/vpopmail/etc dir.
  There are still files being created called open.smtp.tmp.35325 with
  different numbers.
  There is nothing being written to these files nor to the
  /home/vpopmail/etc/open.smtp file.
 
  I would like to find out what file/process is used to write the
authorized
  pop connections to these open.smtp files.
 
  Thanks,
 
  John B
 
 
 
 
   /var/qmail/supervise/qmail-smtpd/run:
   
  #!/bin/sh
 
  QMAILDUID=`id -u qmaild`
  NOFILESGID=`id -g qmaild`
  MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
  LOCAL=`head -1 /var/qmail/control/me`
 
  if [ -z $QMAILDUID -o -z $NOFILESGID -o -z $MAXSMTPD -o -z
  $LOCAL ];
  then
  echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in
  echo /var/qmail/supervise/qmail-smtpd/run
  exit 1
  fi
 
  if [ ! -f /var/qmail/control/rcpthosts ]; then
  echo No /var/qmail/control/rcpthosts!
  echo Refusing to start SMTP listener because it'll create an open
  relay
  exit 1
  fi
 
  #Changed from /etc/ dir to /home/vpopmail/etc/
 
  exec /usr/local/bin/softlimit -m 200 \
  /usr/local/bin/tcpserver -v -R -l $LOCAL -x
  /home/vpopmail/etc/tcp.smtp.cdb -c
  $MAXSMTPD \
  -u $QMAILDUID -g $NOFILESGID 0 smtp
/var/qmail/bin/qmail-smtpd
  21
  
 
  /var/qmail/bin/qmailctl
  -
  #!/bin/sh
 
  # description: the qmail MTA
 
  PATH=/var/qmail/bin:/bin:/usr/bin:/usr/local/bin:/usr/local/sbin
  export PATH
 
  QMAILDUID=`id -u qmaild`
  NOFILESGID=`id -g qmaild`
 
  case $1 in
start)
  echo Starting qmail
  if svok /service/qmail-send ; then
svc -u /service/qmail-send /service/qmail-send/log
  else
echo qmail-send supervise not running
  fi
  if svok /service/qmail-smtpd ; then
svc -u /service/qmail-smtpd /service/qmail-smtpd/log
  else
echo qmail-smtpd supervise not running
  fi
  if [ -d /var/lock/subsys ]; then
touch /var/lock/subsys/qmail
  fi
  ;;
stop)
  echo Stopping qmail...
  echo   qmail-smtpd
  svc -d /service/qmail-smtpd /service/qmail-smtpd/log
  

RE: [vchkpw] Romaing User problems

2003-09-30 Thread John Boynton
-rw-r--r--1 vpopmail vchkpw 25 Sep 29 14:40 inc_deps
-rw-r--r--1 vpopmail vchkpw 32 Sep 29 14:40 lib_deps
-rw-r--r--1 vpopmail vchkpw  0 Sep 30 12:40 open-smtp
-rw-r--r--1 vpopmail vchkpw  0 Sep 30 13:37 open-smtp.lock
-rw-r--r--1 root root0 Sep 30 13:37 open-smtp.tmp.2349
-rw-r--r--1 root root0 Sep 30 13:37 open-smtp.tmp.2352
-rw-r--r--1 root root0 Sep 30 13:37 open-smtp.tmp.2354
-rw-r--r--1 vpopmail vchkpw267 Sep 29 18:06 tcp.smtp
-rw-r--r--1 root root 2442 Sep 30 13:36 tcp.smtp.cdb


open-smtp was owned by root and I did change it ... I then removed call of
the open-smtp.tmp. files.
The new ones were created and they are owned by root.

In vpopmail.c is what appears to be the code for creating these files, but I
do not see where permissions are set. I am assuming that when this called it
is being called by root.

The other problem that may be accuring is the
/home/vpopmail/etc/tcp.smtp.cdb is built from the /home/vpopmail/tcp.smtp
file, according to qmailctl file. Unless vpopmail is also reading the
open.smtp file when it rebuilds the cdb. Where would one tell qmail/vpopmail
to use these files in the cdb rebuild also?

John B

-Original Message-
From: Brah Mon [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 1:37 PM
To: John Boynton; [EMAIL PROTECTED]
Subject: Re: [vchkpw] Romaing User problems


yes.. mine were created on the fly too before changing to mysql. but my
files are there and owned by vpopmail:vpopmail (i dont have vchkpw group).
even the tmp files being created were owned by vpopmail.

since vpopmail has to be able to write a open-smtp open-smtp.lock and
open-smtp.tmp.

ill send this to the list, maybe someone there would know more about how the
permissions need to be or how they get messed up..

-rw-r--r--1 vpopmail vchkpw 25 Aug 31  2002 inc_deps
-rw-r--r--1 vpopmail vchkpw 67 Aug 31  2002 lib_deps
-rw-r--r--1 vpopmail vchkpw 57 Aug 13  2002 open-smtp
-rw-r--r--1 vpopmail vchkpw  0 Aug 13  2002 open-smtp.lock
-rw-r--r--1 vpopmail vchkpw121 Mar  8  2003 tcp.smtp
-rw-r--r--1 root root 2254 Sep 30 13:22 tcp.smtp.cdb

and actually as i look at this again, it looks as if i have not had an
open-smtp.cdb made.. maybe never on this machine..
but it was setup that way before it came to this machine..

have you verified you have the plaintext 'infile' open-smtp and that
vpopmail has access to read and write to it

contents of mine:
216.88.21.7:allow,RELAYCLIENT=,RBLSMTPD= 1029246966

this was auto put there too.. should just have to touch a file and chown it
to vpopmail.. then when clients are authed their ip and timestamp goes into
open-smtp.
then vpopmail rebuilds the cdb database from open-smtp and i forget its
final name. i think its just open-smtp.cdb and the files you are seeing
being created is the tempfile..

which means either sourcefile or destinationfile are not present.. im
betting on source file..


could ya send an ls -l of ~vpopmail/etc ?

- Original Message -
From: John Boynton [EMAIL PROTECTED]
To: Brah Mon [EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 12:39 PM
Subject: RE: [vchkpw] Romaing User problems


 They are owned by root.

 Where does the ownership get set? These files are created on the fly.

 John B

 -Original Message-
 From: Brah Mon [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 30, 2003 12:43 PM
 To: John Boynton
 Subject: Re: [vchkpw] Romaing User problems


 what user are the open.smtp.tmp. files owned by?
 everything in ~vpopmail/etc should be owned by vpopmail

 if your files are being created by another user then i bet tcpserver
cannot
 update the cdb files as that user..

 - Original Message -
 From: John Boynton [EMAIL PROTECTED]
 To: Brah Mon [EMAIL PROTECTED]
 Sent: Tuesday, September 30, 2003 9:42 AM
 Subject: RE: [vchkpw] Romaing User problems


  Ok I have made the following changes and had the following results:
 
  The files have comments in them to show the changes.
 
  Now the system reads the tcp.smtp.cdb in the /home/vpopmail/etc dir.
  There are still files being created called open.smtp.tmp.35325 with
  different numbers.
  There is nothing being written to these files nor to the
  /home/vpopmail/etc/open.smtp file.
 
  I would like to find out what file/process is used to write the
authorized
  pop connections to these open.smtp files.
 
  Thanks,
 
  John B
 
 
 
 
   /var/qmail/supervise/qmail-smtpd/run:
   
  #!/bin/sh
 
  QMAILDUID=`id -u qmaild`
  NOFILESGID=`id -g qmaild`
  MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
  LOCAL=`head -1 /var/qmail/control/me`
 
  if [ -z $QMAILDUID -o -z $NOFILESGID -o -z $MAXSMTPD -o -z
  $LOCAL ];
  then
  echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in
   

RE: [vchkpw] vpopmail 5.3.27 + mysql

2003-09-30 Thread Tom Predmore
Russ,
  This may be because you are setting the pop3 user in your run
script. Look at mine and try removing the vpopmail user.

#!/bin/sh
exec /usr/local/bin/softlimit -m 300 \
/usr/local/bin/tcpserver \
  -H -l mailhost.net \
  -v -x /etc/tcp.pop3.cdb -c 50 -R 0 pop3 \
/var/qmail/bin/qmail-popup mailhost.net \
/home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 21

Also, you don't need to use the /etc/tcp.pop3.cdb file. I just choose to.

-- 
Regards,
Tom



 Here's my /service/qmail-pop3d/run file:

 #!/bin/sh
 VPOPMAILUID=`id -u vpopmail`
 VPOPMAILGID=`id -g vpopmail`
 exec /usr/local/bin/softlimit -m 300 \
 /usr/local/bin/tcpserver -H -R -v \
 -u$VPOPMAILUID -g$VPOPMAILGID \
 -c100  pop3 \
 /var/qmail/bin/qmail-popup judah.khouse.org \
 /home/vpopmail/bin/vchkpw \
 /var/qmail/bin/qmail-pop3d Maildir 21

 My qmail install includes the patch  qmail-maildir++.patch.
 --

 Everything installs and appears to be ready to go.  mysql logging works
 and
 this is what I get in all my logs:

 vchkpw-pop3: vpopmail user not found user@domain:ip address

 In the error column of vlog, it says: 1

 If I do the exact same thing, changing --enable-mysql=y to
 --enable-mysql=n
 and (obviously) not running the vconvert, everything is peachy, although
 not
 using mysql.

 Any suggestions?  Is there something I'm not seeing?  Any particular logs
 that I should be checking?




RE: [vchkpw] Romaing User problems

2003-09-30 Thread John Boynton
Changed from xinetd.d/ipop3 to /var/qmail/supervise/qmail-pop3/run

So I still don't really know what the problem was .. but it is working. Can
anyone see why it wasn't working?



/etc/xinetd.d/ipop3
---
# default: off
# description: The POP3 service allows remote users to access their mail \
#  using an POP3 client such as Netscape Communicator, mutt, \
#  or fetchmail.
service pop3
{
disable  = no
socket_type   = stream
protocol = tcp
wait   = no
user  = root
server= /var/qmail/bin/qmail-popup
server_args= www.ocenture.com /home/vpopmail/bin/vchkpw
/var/qmail/bin/qmail-pop3d Maildir
log_type = FILE /var/log/xinetd.log
log_on_success  = HOST
log_on_failure  = HOST RECORD
}
---


/var/qmail/supervise/qmail-pop3/run
---
#!/bin/sh
exec /usr/local/bin/softlimit -m 200 \
/usr/local/bin/tcpserver -v -R -H -l 0 0 110 /var/qmail/bin/qmail-popup
\
www.ocenture.com /home/vpopmail/bin/vchkpw
/var/qmail/bin/qmail-pop3d Maildir 21
---




[vchkpw] How to Stop Spam

2003-09-30 Thread Jesus Ruiz
I'm using spamcontrol 2.0.9, but i receive a lot of spam mail from the ip 
address block that i allow to relay through my MTA.

The problem is that the client receive they ip address dinamically when 
they connect with dialup or ADSL. Is there away to block and IP address 
dinamically, when they sent more than a xx numbers of email.

Any suggestion are welcome.

Thanks in advance

Jesus Bernardo Ruiz Flores




Re: [vchkpw] Valias and maildrop/vdelivermail, and valias bug?

2003-09-30 Thread Tom Collins
On Monday, September 29, 2003, at 11:35  PM, Jonathan Viney wrote:
The problem is that if I put 'to ! catchall' in the if statement it
will bounce for aliases (because vuserinfo doesn't check if the email  
is
an alias). I could run valias -s email but the valias exit code is
always 0 even if it is an invalid alias.
What if valias exited with -1 if it's an invalid alias?  I just changed  
it to do so in the CVS repository, and it will be in 5.3.28.

So, does anyone know how to make catchalls and aliases work nicely with
maildrop?
Also, I think I found a bug in valias (w/ MySQL). If I run the  
following
commands this is what I get:
That's a known bug (#807935).  I caused it when adding the feature to  
check for existing aliases.  It's fixed in the CVS and will be in  
5.3.28 (to be released sometime this week).  SourceForge's CVS server  
is staying up to date, so you can preview the ChangeLog and other files  
to see what's changed for upcoming releases.

Diff for the insert bug:

http://cvs.sourceforge.net/viewcvs.py/vpopmail/vpopmail/ 
valias.c.diff?r1=1.1r2=1.2

Diff for the non-zero exit code (may not be available for 24 hours):

http://cvs.sourceforge.net/viewcvs.py/vpopmail/vpopmail/ 
valias.c.diff?r1=1.2r2=1.3

--
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] vpopmail 5.3.27 + mysql

2003-09-30 Thread Russell Mann
I know this may sound redundant or silly but check your permissions
 on qmail-pop3d and the vckpwd binary. Maybe your permissions on
 those files are the problem. Cuz by the looks of what you sent in
 email so far you have done it right. It's gotta be something
 stupid.
 
 Yes, tcp.pop3 file is for pop3 auth. Just a little extra precaution.
 I believe the qmail-pop3d runs under root.
 
 What version of MySQL are you using?
 
 -- 
 Regards,
 Tom


[EMAIL PROTECTED] mysqld -v
mysqld  Ver 3.23.40 for pc-linux-gnu on i686

/var/qmail/bin/qmail-pop3d
-rwxr-xr-x   1 root qmail 26k Sep 25 15:54 qmail-pop3d

/home/vpopmail/bin/vchkpw
-rwxr-xr-x   1 root root  51k Sep 30 11:04 vchkpw*



--

 I've tried several options in the pop3d run file, as per official 
 instructions, instructions on this email list etc.
 
 #!/bin/sh
 VPOPMAILUID=`id -u vpopmail`
 VPOPMAILGID=`id -g vpopmail`
 exec /usr/local/bin/softlimit -m 300 \
 /usr/local/bin/tcpserver -H -R -v \
 -u$VPOPMAILUID -g$VPOPMAILGID \
 -c100 0 pop3 \
 /var/qmail/bin/qmail-popup judah.khouse.org \
 /home/vpopmail/bin/vchkpw \
 /var/qmail/bin/qmail-pop3d Maildir 21
 
 #!/bin/sh
 exec /usr/local/bin/softlimit -m 300 \
 /usr/local/bin/tcpserver \
 -H -l judah.khouse.org -v \
 -c 100 -R 0 pop3 \
 /var/qmail/bin/qmail-popup judah.khouse.org \
 /home/vpopmail/bin/vchkpw \
 /var/qmail/bin/qmail-pop3d Maildir 21
 
 
 #!/bin/sh
 VPOPMAILUID=`id -u vpopmail`
 VPOPMAILGID=`id -g vpopmail`
 exec /usr/local/bin/tcpserver -l 0 -R -H -v \
 -u$VPOPMAILUID -g$VPOPMAILGID 0 110   \
 /var/qmail/bin/qmail-popup judah.khouse.org   \
 /home/vpopmail/bin/vchkpw   \
 /var/qmail/bin/qmail-pop3d Maildir 21
 
 -
 
 None of them seem to change it.  What is the tcp.pop3.cdb file 
 for?  Is it an IP permissions file for popping email?  Also, what 
 user/group should qmail-pop3d run under in order to validate 
 users correctly?
 
 Thanks,
 
 Russell




Re: [vchkpw] How to Stop Spam

2003-09-30 Thread X-Istence
Jesus Ruiz wrote:

I'm using spamcontrol 2.0.9, but i receive a lot of spam mail from the 
ip address block that i allow to relay through my MTA.

The problem is that the client receive they ip address dinamically 
when they connect with dialup or ADSL. Is there away to block and IP 
address dinamically, when they sent more than a xx numbers of email.

Any suggestion are welcome.

Thanks in advance

Jesus Bernardo Ruiz Flores





I personally use qMail-STMPD with auth patch, that way they have to auth 
before they can send mail thru my SMTP server.





Re: [vchkpw] How to Stop Spam

2003-09-30 Thread Jacob S.
On Tue, 30 Sep 2003 17:44:21 -0400
X-Istence [EMAIL PROTECTED] wrote:

 Jesus Ruiz wrote:
 
  I'm using spamcontrol 2.0.9, but i receive a lot of spam mail from
  the ip address block that i allow to relay through my MTA.
 
  The problem is that the client receive they ip address dinamically 
  when they connect with dialup or ADSL. Is there away to block and IP
  
  address dinamically, when they sent more than a xx numbers of email.
 
  Any suggestion are welcome.
 
  Thanks in advance
 
  Jesus Bernardo Ruiz Flores
 
 
 I personally use qMail-STMPD with auth patch, that way they have to
 auth before they can send mail thru my SMTP server.

What did you have to change to get qmail-smtpd to auth through vchkpw? 

TIA,
Jacob

- 
GnuPG Key: 1024D/16377135

In a world without fences, who needs Gates?
http://www.linux.org/


pgp0.pgp
Description: PGP signature


Re: [vchkpw] How to Stop Spam

2003-09-30 Thread X-Istence




Jacob S. wrote:

  On Tue, 30 Sep 2003 17:44:21 -0400
X-Istence [EMAIL PROTECTED] wrote:

  
  
Jesus Ruiz wrote:



  I'm using spamcontrol 2.0.9, but i receive a lot of spam mail from
the ip address block that i allow to relay through my MTA.

The problem is that the client receive they ip address dinamically 
when they connect with dialup or ADSL. Is there away to block and IP

address dinamically, when they sent more than a xx numbers of email.

Any suggestion are welcome.

Thanks in advance

Jesus Bernardo Ruiz Flores

  

I personally use qMail-STMPD with auth patch, that way they have to
auth before they can send mail thru my SMTP server.

  
  
What did you have to change to get qmail-smtpd to auth through vchkpw? 

TIA,
Jacob

- 
GnuPG Key: 1024D/16377135

In a world without fences, who needs Gates?
http://www.linux.org/
  


I used Mrs. Brisby's qMail auth patch, and edited my run file so
instead of using checkpassword to check passwords, it uses vchkpw.