Re: [vchkpw] postgres

2003-08-14 Thread VeNoMouS



erm 5.3.24?? the latest dev is 5.3.23, and when you 
--enable-postgres=y, vauth.c symlinks to voracle.c not vpgsql.c

  - Original Message - 
  From: 
  Tom Collins 

  To: vpopmail list 
  Sent: Tuesday, August 12, 2003 10:52 
  AM
  Subject: Re: [vchkpw] postgres
  On Monday, August 11, 2003, at 02:00 PM, VeNoMouS wrote:
  has any one actally been 
able to get vpopmail to work with postgresql 
yet?Charles Boening contributed 
  a few postgresql patches for the 5.3.24 release, and I'm assuming that at the 
  very least he has been able to use it.--Tom Collins[EMAIL PROTECTED]http://sniffter.com/ - info on the 
  Sniffter hand-held Network Tester


Re: [vchkpw] postgres

2003-08-14 Thread charlieb
I'm on vacation this week so replies will be spuratic.

The patches I submitted should allow postgres to work with the 5.3.24
vpopmail.  If it doesn't, please email me the errors you get.

I did test my patches on a development system.  Mail was delivered and I
was able to check my mail.

Thanks,
Charlie


> On Monday, August 11, 2003, at 02:00  PM, VeNoMouS wrote:
>> has any one actally been able to get vpopmail to work with postgresql
>> yet?
>
> Charles Boening contributed a few postgresql patches for the 5.3.24
> release, and I'm assuming that at the very least he has been able to
> use it.
>
> --
> Tom Collins
> [EMAIL PROTECTED]
> http://sniffter.com/ - info on the Sniffter hand-held Network Tester






Re: [vchkpw] Why support imap?

2003-08-14 Thread Darcy Dueck
sqwebmail supports POP3 just fine. It's like a normal POP3 client that 
"Leaves messages on server"

Darcy


It seems that the qmail, vpopmail, qmailadmin people tend to recommend 
squirrelmail and sqwebmail. However, these are both imap clients. Our 
initial reaction is to prefer (in order to save bandwidth, cpu cycles and 
disk space) pop3 and have users keep their mail folders on their local 
PC's. Why do you all like the imap web email clients? Are there any pop3 
only web email clients that you guys would recommend?

Best Regards,

Jeff Koch






RE: [vchkpw] other fun vpopmail issues!

2003-08-14 Thread Tom Walsh
::
::Okay on another note i'm having a boggling time getting the "Seekable"
::patch SpamAssassin wants to apply to vpopmail..
::it patches fine but then on compile i get.. this is on a newly untared
::vpopmail with only allow-roaming users=y set in the config.
::
::
::gcc -I. -Icdb -g -O2 -Wall -c seek.c
::seek.c:24: conflicting types for `lseek'
::/usr/include/stdio.h:278: previous declaration of `lseek'
::*** Error code 1
::
::
::has anyone else any idea what's going on? seems like vpopmail really
::doesn't like me this week.

David,

Which version of vpopmail are you applying this to?

It sounds like you are patching a version that already has the seekable
patch in it... I think it was added to the code base for all version after
5.3.7(?).

The patch is only needed if you want to use a version older than that.

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




Re: [vchkpw] Urgent - vchkpw/vpopmail authenticate even with wrongpw?

2003-08-14 Thread Dave Richardson - Lists
I apologize for not reading enuf of the thread, this is a diff issue 
than what I wrote.  
Good luck.  Sorry.

Dave Richardson - Lists wrote:

There's something about logging into virtual accounts with the order 
and number of parameters in your smtp run file with the new(er) 
versions of vpopmail.  The parameter count changed and many online 
examples have /bin/true one position too early.  This has the effect 
of allowing all passwords to be authenticated, irrespective of their 
lookup result.

LIST: Can we call this problem something specific: "The /bin/true 
bogus auth issue" and make a link to reference/fix it?

I think this is your issue Jeff.

jeff thomas wrote:

Ok...

What the hell ... I just compiled 5.3.24 WITHOUT
learn-passwords. Installed it. Restarted all mail
services. I can STILL log into any account with any
password.
Someone here must be able to shed some light on this
for me??  Please?
--- jeff thomas <[EMAIL PROTECTED]> wrote:
 

Ok...

So, I just compiled 5.3.24 and installed it. I used
the following configure line:
./configure  --enable-qmaildir=/var/qmail
--enable-tcprules-prog=/usr/local/bin/tcprules
--enable-learn-passwords=y
  
--enable-tcpserver-file=/usr/home/vpopmail/etc/tcp.smtp
 

--enable-defaultquota=1000 --enable-logging=e
--enable-valias=y --enable-roaming-users=y
--enable-relay-clear-minutes=30 --enable-mysql=y
--enable-sqlincdir=/usr/local/include/mysql
--enable-sqllibdir=/usr/local/lib/mysql
--enable-default-domain=domain.com
--enable-qmail-ext=y --prefix=/usr/home
Same freaking problem. I can log into all of the
accounts with any password. Thoughts?


--- jeff thomas <[EMAIL PROTECTED]> wrote:
  

Ok... I tried this fix.
I edited vchkpw.c and removed the FOOB and ENDIF.
recompiled.
No luck. Same thing. Any password I put in still
works.
Thoughts?

--- Michael Bowe <[EMAIL PROTECTED]> wrote:


I just remembered that learn-passwords was
  

broken
  

in


5.3.20, and then
eventually fixed in 5.3.24
  

http://sourceforge.net/tracker/index.php?func=detail&aid=783824&group_id=85937&atid=577798 

 

Maybe this has something to do with your
  

problem?
  

Michael.

- Original Message - From: "jeff thomas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 13, 2003 6:47 PM
Subject: Re: [vchkpw] Urgent - vchkpw/vpopmail
authenticate even with wrong
pw?
  

Learn passwords was enabled. However, it


should
  

learn
  

only the FIRST password entered for each

account
  

not multiple passwords for each account.

Right?

It would seem logical that with


learn-passwords,
  

the
  

first time i put in the password for


[EMAIL PROTECTED],
  

it


"learns" that password. If I try to log into

[EMAIL PROTECTED]
  

with a different password, I should be


rejected,
  

as it
  

"learned" the first password.



--- Michael Bowe <[EMAIL PROTECTED]>


wrote:
  

I could be barking up the wrong tree here
  

but...


Perhaps did you configure vpopmail to "learn
passwords" ?
It rings a bell for me that if you upgrade
  

from


an
  

v4.x vpopmail, and you
enable clear passwords in your v5.2
  

vpopmail,
  

you
  

loose all your existing
passwords and the general way to recover
  

from
  

this
  

is to enable vpopmail's
"learn passwords" functionality
This could explain why "any password works".
  

But


then again, once the
password has been learned, you shouldn't be
  

able


to
  

go back and use some
other password and still get access
Michael.

- Original Message - From: "jeff thomas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 13, 2003 10:15 AM
Subject: [vchkpw] Urgent - vchkpw/vpopmail
authenticate even with wrong pw?
  

Hello -

I recently installed vpopmail 5.3.20 from


freebsd
  

ports. I used Matt Simerson's FreeBSD


Qmail
  

Toaster
  

scripts to install it (it uses ports).

That installed without problem. I


installed
  

courier-imap and squirrelmail as well as

sqwebmail. I
  

noticed today that I can log into any of


the
  

accounts
  

via sqwebmail with any password. I can


literally
  

put
  

in "xxx" for the password on my e-mail


account


and
  

it
  

will let me in. I tried it on squirrelmail


with
  

the
  

same problem. So, then I tried simply


logging


into
  

the
  

POP3 account with "xyz" as the password.


It,
  

too,
  

let
  

me in with full access.

This is bad - obviously. Anyone care to


shed
  

some
  

light on what I need to do to get this


fixed
  

ASAP.
  

I
  

upgraded from 4.9.x and use mysql

Re: [vchkpw] Urgent - vchkpw/vpopmail authenticate even with wrongpw?

2003-08-14 Thread Dave Richardson - Lists
There's something about logging into virtual accounts with the order and 
number of parameters in your smtp run file with the new(er) versions of 
vpopmail.  The parameter count changed and many online examples have 
/bin/true one position too early.  This has the effect of allowing all 
passwords to be authenticated, irrespective of their lookup result.

LIST: Can we call this problem something specific: "The /bin/true bogus 
auth issue" and make a link to reference/fix it?

I think this is your issue Jeff.

jeff thomas wrote:

Ok...

What the hell ... I just compiled 5.3.24 WITHOUT
learn-passwords. Installed it. Restarted all mail
services. I can STILL log into any account with any
password.
Someone here must be able to shed some light on this
for me??  Please?
--- jeff thomas <[EMAIL PROTECTED]> wrote:
 

Ok...

So, I just compiled 5.3.24 and installed it. I used
the following configure line:
./configure  --enable-qmaildir=/var/qmail
--enable-tcprules-prog=/usr/local/bin/tcprules
--enable-learn-passwords=y
   

--enable-tcpserver-file=/usr/home/vpopmail/etc/tcp.smtp
 

--enable-defaultquota=1000 --enable-logging=e
--enable-valias=y --enable-roaming-users=y
--enable-relay-clear-minutes=30 --enable-mysql=y
--enable-sqlincdir=/usr/local/include/mysql
--enable-sqllibdir=/usr/local/lib/mysql
--enable-default-domain=domain.com
--enable-qmail-ext=y --prefix=/usr/home
Same freaking problem. I can log into all of the
accounts with any password. Thoughts?


--- jeff thomas <[EMAIL PROTECTED]> wrote:
   

Ok... I tried this fix. 

I edited vchkpw.c and removed the FOOB and ENDIF.
recompiled. 

No luck. Same thing. Any password I put in still
works.
Thoughts?

--- Michael Bowe <[EMAIL PROTECTED]> wrote:
 

I just remembered that learn-passwords was
   

broken
   

in
 

5.3.20, and then
eventually fixed in 5.3.24
   

http://sourceforge.net/tracker/index.php?func=detail&aid=783824&group_id=85937&atid=577798
 

Maybe this has something to do with your
   

problem?
   

Michael.

- Original Message - 
From: "jeff thomas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 13, 2003 6:47 PM
Subject: Re: [vchkpw] Urgent - vchkpw/vpopmail
authenticate even with wrong
pw?

   

Learn passwords was enabled. However, it
 

should
   

learn
   

only the FIRST password entered for each
 

account
   

not multiple passwords for each account.

Right?

It would seem logical that with
 

learn-passwords,
   

the
   

first time i put in the password for
 

[EMAIL PROTECTED],
   

it
 

"learns" that password. If I try to log into
 

[EMAIL PROTECTED]
   

with a different password, I should be
 

rejected,
   

as it
   

"learned" the first password.



--- Michael Bowe <[EMAIL PROTECTED]>
 

wrote:
   

I could be barking up the wrong tree here
   

but...
 

Perhaps did you configure vpopmail to "learn
passwords" ?
It rings a bell for me that if you upgrade
   

from
 

an
   

v4.x vpopmail, and you
enable clear passwords in your v5.2
   

vpopmail,
   

you
   

loose all your existing
passwords and the general way to recover
   

from
   

this
   

is to enable vpopmail's
"learn passwords" functionality
This could explain why "any password works".
   

But
 

then again, once the
password has been learned, you shouldn't be
   

able
 

to
   

go back and use some
other password and still get access
Michael.

- Original Message - 
From: "jeff thomas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 13, 2003 10:15 AM
Subject: [vchkpw] Urgent - vchkpw/vpopmail
authenticate even with wrong pw?

   

Hello -

I recently installed vpopmail 5.3.20 from
 

freebsd
   

ports. I used Matt Simerson's FreeBSD
 

Qmail
   

Toaster
   

scripts to install it (it uses ports).

That installed without problem. I
 

installed
   

courier-imap and squirrelmail as well as
 

sqwebmail. I
   

noticed today that I can log into any of
 

the
   

accounts
   

via sqwebmail with any password. I can
 

literally
   

put
   

in "xxx" for the password on my e-mail
 

account
 

and
   

it
   

will let me in. I tried it on squirrelmail
 

with
   

the
   

same problem. So, then I tried simply
 

logging
 

into
   

the
   

POP3 account with "xyz" as the password.
 

It,
   

too,
   

let
   

me in with full access.

This is bad - obviously. Anyone care to
 

shed
   

some
   

light on what I need to do to get this
 

fixed
   

ASAP.
   

I
   

upgraded from 4.9.x and use mysql4 for
 

authentication.
   

An

Re: [vchkpw] Urgent - vchkpw/vpopmail authenticate even with wrong pw?

2003-08-14 Thread Tom Collins
On Wednesday, August 13, 2003, at 11:30  AM, jeff thomas wrote:
What the hell ... I just compiled 5.3.24 WITHOUT
learn-passwords. Installed it. Restarted all mail
services. I can STILL log into any account with any
password.
Someone here must be able to shed some light on this
for me??  Please?
What do your MySQL tables look like?  What does a typical user entry 
look like?

Is this an issue of the old tables having encrypted passwords without 
cleartext equivalents?

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] Detailed installation instructions on FreeBSD - attached

2003-08-14 Thread eLgino
ahhh I AM SO STUPID i have it checked, I AM SO LOL; thank you for your great
work and help!

cya and have a nice day


- Original Message -
From: "eLgino" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 13, 2003 10:50 PM
Subject: Re: [vchkpw] Detailed installation instructions on FreeBSD -
attached


> ah you mean i copy
>
> /* source start
>
>  #!/usr/bin/perl
>
>
>  while () {
>  if( $_ =~ /^([^#][^=]+)=(.*)/) {
>  $name=$1;
>  unlink "$name";
>  open (F, ">$name") or die "Cannot open $name: $!";
>  $value = $2;
>  if( $value =~ /^"(.*)"$/ ) {
>  $x=$1;
>  } else {
>  $x=$value;
>  }
>  while ($x =~ m/\$(\S+)/ && $vars{$1}) {
>  $y = $1;
>  $x =~ s/\$$y/$vars{$y}/;
>  }
>  $vars{$name}=$x;
>  print F $x or die "Cannot write to $1: $!";
>  close (F) or die "Cannot close $1: $!";
>  }
>  }
>
> */ source end
>
> to this directory's
> :
>
> /var/qmail/supervise/courier-imap-imapd-ssl/env
> /var/qmail/supervise/courier-imap-imapd
> /var/qmail/supervise/courier-imap-pop3d-ssl
> /var/qmail/supervise/courier-imap-pop3d
>
> and whats the name of the file?, lol sorry i'm stupid ...
> thanks in advance
>
> all steps right?
>
> - Original Message -
> From: "Evren Yurtesen" <[EMAIL PROTECTED]>
> To: "eLgino" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Wednesday, August 13, 2003 8:57 PM
> Subject: Re: [vchkpw] Detailed installation instructions on FreeBSD -
> attached
>
>
> > yet I dont see what is not clear about this :)
> >
> > --
> >
> > We should get courier imap conf files inside too!
> >
> > #mkdir /var/qmail/supervise/courier-imap-imapd-ssl/env
> > #mkdir /var/qmail/supervise/courier-imap-imapd
> > #mkdir /var/qmail/supervise/courier-imap-pop3d-ssl
> > #mkdir /var/qmail/supervise/courier-imap-pop3d
> >
> > Now copy the envconv program to each directory
> >
> >
> > On Wed, 13 Aug 2003, eLgino wrote:
> >
> > > ok, thanks
> > >
> > > but WHERE to copy the envconv programm in WITCH directory?
> > >
> > > thank you for your friendly help and your howto
> > >
> > > cya
> > >
> > > - Original Message -
> > > From: "Evren Yurtesen" <[EMAIL PROTECTED]>
> > > To: "eLgino" <[EMAIL PROTECTED]>
> > > Cc: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, August 13, 2003 8:50 PM
> > > Subject: Re: [vchkpw] Detailed installation instructions on FreeBSD -
> > > attached
> > >
> > >
> > > > I dont understand, the file name is written just above the line
> > > > /var/qmail/supervise/qmail-smtp/run
> > > > which means inside this file, the text between  must
> be
> > > > if you dont know what is serialmail, just use the rblsmtpd one.
> > > >
> > > > Evren
> > > >
> > > > On Wed, 13 Aug 2003, eLgino wrote:
> > > >
> > > > > "Evren Yurtesen" <[EMAIL PROTECTED]>
> > > > >
> > > > > HI thank you very much but what your are meaning with:
> > > > >
> > > > > /var/qmail/supervise/qmail-smtp/run text with serialmail...
> > > >
> > >
>
> --
> > > --
> > > > > 
> > > > > exec /usr/local/bin/tcpserver -p -R -x
> > > /usr/local/vpopmail/etc/tcp.smtp.cdb
> > > > > \
> > > > > -u82 -g81 -v -c100 0 smtp \
> > > > >   sh -c '
> > > > > /var/qmail/bin/qmail-smtpd
> > > > > cd /var/qmail/autoturn
> > > > > exec setlock -nx $TCPREMOTEIP/seriallock \
> > > > > maildirsmtp $TCPREMOTEIP autoturn-$TCPREMOTEIP-
$TCPREMOTEIP
> > > > > AutoTURN
> > > > >   ' \
> > > > > `hostname --fqdn` /usr/local/scripts/vpopmail/vchkpw /usr/bin/true
> 2>&1
> > > >
> > >
>
> --
> > > --
> > > > > 
> > > > >
> > > > > /var/qmail/supervise/qmail-smtp/run text with rblsmtpd...
> > > >
> > >
>
> --
> > > --
> > > > > 
> > > > > #!/bin/sh
> > > > > exec /usr/local/bin/tcpserver -p -R -x
> > > /usr/local/vpopmail/etc/tcp.smtp.cdb
> > > > > \
> > > > > -u82 -g81 -v -c100 0 smtp /usr/local/bin/rblsmtpd \
> > > > > -r bl.spamcop.net \
> > > > > -r sbl.spamhaus.net \
> > > > > /var/qmail/bin/qmail-smtpd \
> > > > > `hostname --fqdn` /usr/local/scripts/vpopmail/vchkpw /usr/bin/true
> 2>&1
> > > > >
> > > > > with serialmail... / with rblsmtpd ??? whats that?
> > > > >
> > > > > and what you are meaning of
> > > > >
> > > > > 
> > > > >
> > > > > Now copy the envconv program to each directory
> > > > >
> > > > > envconv text...
> > > >
> > >
>
> --
> > > --
> > > > > 
> > > > > #!/usr/bin/perl
> > > > >
> > > > > # written by Jonas Pasche
> > > > > # enhanced by Matthias Andree
> > > > >
> > > > > while () {
> > > > >   if( $_ =~ /^([^#][^=]+)=(.*)/) {
> > > > > $name=$1;
> > > > > unlink "$name";
> > > > > open (F, ">$name") or die "Cannot open $name: $!";
> > > > > $value = $2;
>

Re: [vchkpw] Detailed installation instructions on FreeBSD - attached

2003-08-14 Thread Evren Yurtesen
yet I dont see what is not clear about this :)

--

We should get courier imap conf files inside too!

#mkdir /var/qmail/supervise/courier-imap-imapd-ssl/env
#mkdir /var/qmail/supervise/courier-imap-imapd
#mkdir /var/qmail/supervise/courier-imap-pop3d-ssl
#mkdir /var/qmail/supervise/courier-imap-pop3d

Now copy the envconv program to each directory


On Wed, 13 Aug 2003, eLgino wrote:

> ok, thanks
> 
> but WHERE to copy the envconv programm in WITCH directory?
> 
> thank you for your friendly help and your howto
> 
> cya
> 
> - Original Message -
> From: "Evren Yurtesen" <[EMAIL PROTECTED]>
> To: "eLgino" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Wednesday, August 13, 2003 8:50 PM
> Subject: Re: [vchkpw] Detailed installation instructions on FreeBSD -
> attached
> 
> 
> > I dont understand, the file name is written just above the line
> > /var/qmail/supervise/qmail-smtp/run
> > which means inside this file, the text between  must be
> > if you dont know what is serialmail, just use the rblsmtpd one.
> >
> > Evren
> >
> > On Wed, 13 Aug 2003, eLgino wrote:
> >
> > > "Evren Yurtesen" <[EMAIL PROTECTED]>
> > >
> > > HI thank you very much but what your are meaning with:
> > >
> > > /var/qmail/supervise/qmail-smtp/run text with serialmail...
> >
> > --
> --
> > > 
> > > exec /usr/local/bin/tcpserver -p -R -x
> /usr/local/vpopmail/etc/tcp.smtp.cdb
> > > \
> > > -u82 -g81 -v -c100 0 smtp \
> > >   sh -c '
> > > /var/qmail/bin/qmail-smtpd
> > > cd /var/qmail/autoturn
> > > exec setlock -nx $TCPREMOTEIP/seriallock \
> > > maildirsmtp $TCPREMOTEIP autoturn-$TCPREMOTEIP- $TCPREMOTEIP
> > > AutoTURN
> > >   ' \
> > > `hostname --fqdn` /usr/local/scripts/vpopmail/vchkpw /usr/bin/true 2>&1
> >
> > --
> --
> > > 
> > >
> > > /var/qmail/supervise/qmail-smtp/run text with rblsmtpd...
> >
> > --
> --
> > > 
> > > #!/bin/sh
> > > exec /usr/local/bin/tcpserver -p -R -x
> /usr/local/vpopmail/etc/tcp.smtp.cdb
> > > \
> > > -u82 -g81 -v -c100 0 smtp /usr/local/bin/rblsmtpd \
> > > -r bl.spamcop.net \
> > > -r sbl.spamhaus.net \
> > > /var/qmail/bin/qmail-smtpd \
> > > `hostname --fqdn` /usr/local/scripts/vpopmail/vchkpw /usr/bin/true 2>&1
> > >
> > > with serialmail... / with rblsmtpd ??? whats that?
> > >
> > > and what you are meaning of
> > >
> > > 
> > >
> > > Now copy the envconv program to each directory
> > >
> > > envconv text...
> >
> > --
> --
> > > 
> > > #!/usr/bin/perl
> > >
> > > # written by Jonas Pasche
> > > # enhanced by Matthias Andree
> > >
> > > while () {
> > >   if( $_ =~ /^([^#][^=]+)=(.*)/) {
> > > $name=$1;
> > > unlink "$name";
> > > open (F, ">$name") or die "Cannot open $name: $!";
> > > $value = $2;
> > > if( $value =~ /^"(.*)"$/ ) {
> > >   $x=$1;
> > > } else {
> > >   $x=$value;
> > > }
> > > while ($x =~ m/\$(\S+)/ && $vars{$1}) {
> > > $y = $1;
> > > $x =~ s/\$$y/$vars{$y}/;
> > > }
> > > $vars{$name}=$x;
> > > print F $x or die "Cannot write to $1: $!";
> > > close (F) or die "Cannot close $1: $!";
> > >   }
> > > }
> >
> > --
> --
> > > 
> > >
> > > where to copy the programm/script/tool what ever? to what directories,
> thank
> > > you very much!
> > >
> > >
> > > - Original Message -
> > > From: "Evren Yurtesen" <[EMAIL PROTECTED]>
> > > To: "Shane Chrisp" <[EMAIL PROTECTED]>
> > > Cc: <[EMAIL PROTECTED]>; "eLgino" <[EMAIL PROTECTED]>
> > > Sent: Wednesday, August 13, 2003 7:34 PM
> > > Subject: [vchkpw] Detailed installation instructions on FreeBSD -
> attached
> > >
> > >
> > > > Here is the detailed installation instructions from my own
> installation on
> > > > FreeBSD!
> > > >
> > > > Now for the people who has trouble, I will help as much as I can if
> there
> > > > are problems in these instructions.
> > > >
> > > > I also think that this might be included in vpopmail distribution. I
> came
> > > > to 0.0.6 version of this document while fixing the mistakes in it
> though
> > > > :) I am almost certain that I eliminated all the mistakes I did.
> > > >
> > > > Now my mail server has been working for 1 month with 8000 thousand
> users
> > > > and 600 domains. I know its not much but a good test platform. Nobody
> > > > complained about anything so far.
> > > >
> > > > The document contains, installation of
> > > > vpopmail, qmailadmin, vqadmin, courier-imap, qmailmrtg, isoqlog,
> > > > smtp-auth-tls, blah blah :)
> > > >
> > > > Evren
> > > >
> > >
> > >
> > >
> >
> >

Re: [vchkpw] vpopmail (with MySQL & courier imap hack)

2003-08-14 Thread eLgino
yea, please send it to me
i hope i become not an open relay

- Original Message -
From: "Evren Yurtesen" <[EMAIL PROTECTED]>
To: "eLgino" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, August 13, 2003 7:13 PM
Subject: Re: [vchkpw] vpopmail (with MySQL & courier imap hack)


> would you prefer to use smtp auth? which is actually better than using
> these hacks? (at least from my point of view)
> then there is some instructions hmm I use on FreeBSD too with mysql, I
> made my installation in a log format. I can just give it to you
>
> On Wed, 13 Aug 2003, eLgino wrote:
>
> > Hi there,
> >
> > I'm running qmail with vpopmail, courier imap/bla.
> > It works nice under FreeBSD 4.8
> >
> > But i have one problem i have compiled vpopmail WITHOUT mysql, and WITH
a
> > courier-imap hack see here:
> >
> > THE HACK >> http://www.pofo.de/HOWTO/qmail/files/open_relay.c
> > env VPOPMAILDIR=`pw usershow vpopmail | cut -f9 -d':'`/etc \
> > /bin/sh -c 'gcc -o open_relay open_relay.c `cat $VPOPMAILDIR/inc_deps
> > $VPOPMAILDIR/lib_deps` -lcrypt'
> > install -o root -g wheel -m 755 open_relay /usr/local/bin/
> >
> > its a smtp after imap/pop3 "hack"
> >
> > but now i will deinstall vpopmail and install with MySQL support, but
that
> > its not the problem
> >
> > 1. How can i delete the hack?
> > 2. How can i setup the hack to work with vpopmail AND MySQL?
> >
> > thanks in advance!
> >
> > eLgino
> >
> > PS: sorry for my poor english
> >
> >
> >
>
>




Re: [vchkpw] "vpopmail documentation initiative"

2003-08-14 Thread Tom Collins
On Wednesday, August 13, 2003, at 12:08  PM, Ron Guerin wrote:
Wouldn't it be nice if we could get together and produce comprehensive
vpopmail documentation?  Wouldn't it be even nicer if we could
distribute that documentation with vpopmail?
We can!  And I'd like to start the ball rolling by asking everyone on
the list if they've got some documentation they've written stashed on
their system that they'd like to contribute to the project.
Once we know what we have to start with, we can figure out what to do
next.
I've enabled the DocManager feature of our SourceForge project, and Ron 
is the editor.  If you have vpopmail-related documentation to 
contribute, please submit it here:

http://sourceforge.net/docman/?group_id=85937

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



[vchkpw] Detailed installation instructions on FreeBSD - attached

2003-08-14 Thread Evren Yurtesen
Here is the detailed installation instructions from my own installation on
FreeBSD!

Now for the people who has trouble, I will help as much as I can if there
are problems in these instructions.

I also think that this might be included in vpopmail distribution. I came
to 0.0.6 version of this document while fixing the mistakes in it though
:) I am almost certain that I eliminated all the mistakes I did.

Now my mail server has been working for 1 month with 8000 thousand users
and 600 domains. I know its not much but a good test platform. Nobody
complained about anything so far.

The document contains, installation of
vpopmail, qmailadmin, vqadmin, courier-imap, qmailmrtg, isoqlog,
smtp-auth-tls, blah blah :) 

Evren
Vpopmail+FreeBSD with SSL/MySQL - Installation Instructions

V0.0.1  -   Initial Version
V0.0.2  -   Changed Courier-IMAP startup to Daemontools
V0.0.3  -   Added missing parts about Courier-IMAP Daemontools
integration
v0.0.4  -   Added more info about certificates...
v0.0.5  -   Changed patches required for SMTP-TLS-AUTH
Previous patches caused SIGBUS errors.
v0.0.6  -   Changed vchkpw smtp-auth stuff to be more secure



First of all, we will install apache13-modssl which is required for
use of utilities like Qmailadmin, Vqadmin and Sqwebmail.

#cd /usr/ports/www/apache13-modssl
#make install && clean

Add to newsyslog.conf that we can rotate the apache logs.

/etc/newsyslog.conf additions...

#my additions
/var/log/httpd-access.log   640  1 500  * Z  /var/run/httpd.pid 1
/var/log/httpd-error.log640  1 500  * Z  /var/run/httpd.pid 1
/var/log/ssl_engine_log 640  1 500  * Z  /var/run/httpd.pid 1
/var/log/ssl_request_log640  1 500  * Z  /var/run/httpd.pid 1



Also make empty cgi-bin and data directories
#cd /usr/local/www
#rm cgi-bin
#mkdir cgi-bin
#rm data
#mkdir data

Next, we will install qmail, this is little bit tricky if you want
to authenticate some users (instead of apop etc.) before accepting smtp
deliveries and use ssl. We must patch qmail that it will authenticate users.
If you want to install a virus scanning program such as Amavis
then you should use WITH_QMAILQUEUE_PATCH=yes. 

#cd /usr/ports/mail/qmail
#make configure WITH_QMAILQUEUE_PATCH=yes

Then download the following patches

http://inoa.net/qmail/qmail-1.03-tls.patch
http://members.elysium.pl/brush/qmail-smtpd-auth/dist/qmail-smtpd-auth-0.31.tar.gz

into /usr/ports/mail/qmail-tls/work/qmail-1.03

#cd work/qmail-1.03/
#fetch http://inoa.net/qmail/qmail-1.03-tls.patch
#fetch 
http://members.elysium.pl/brush/qmail-smtpd-auth/dist/qmail-smtpd-auth-0.31.tar.gz
#tar zxvf qmail-smtpd-auth-0.31.tar.gz 
#mv qmail-smtpd-auth-0.31/* .

First apply the auth patch!!!

#patch < auth.patch 
#patch < qmail-1.03-tls.patch

The first part of starttls patch will fail but its ok.

#make clean
#cd ../..
#make install WITH_QMAILQUEUE_PATCH=yes && make clean

The mailer.conf should be changed so that the system programs will use qmail

#cp work/mailer.conf.sample /etc/mail/mailer.conf

Make a certificate:

#openssl req -new -x509 -nodes -days 3650 -out /var/qmail/control/servercert.pem 
-keyout /var/qmail/control/servercert.pem

then create /var/qmail/rc file (dont forget to chmod 755)

/var/qmail/rc text...

#! /bin/sh

#PATH=/var/qmail/bin:/usr/local/bin:/usr/bin:/bin
#export PATH

case "$1" in
start)
echo -n "Starting qmail: svscan"
cd /var/qmail/supervise
env - PATH="/var/qmail/bin:/usr/local/bin:/usr/bin:/bin" svscan &
echo $! > /var/run/svscan.pid
echo "."
;;
stop)
echo -n "Stopping qmail: svscan"
kill `cat /var/run/svscan.pid`
echo -n " qmail"
svc -dx /var/qmail/supervise/*
killall qmail-send
echo -n " logging"
svc -dx /var/qmail/supervise/*/log
echo "."
;;
stat)
cd /var/qmail/supervise
svstat * */log
;;
doqueue|alrm)
echo "Sending ALRM signal to qmail-send."
svc -a /var/qmail/supervise/qmail-send
;;
queue)
qmail-qstat
qmail-qread
;;
reload|hup)
echo "Sending HUP signal to qmail-send."
svc -h /var/qmail/supervise/qmail-send
echo "Sending HUP signal to qmail-pop3d."
svc -h /var/qmail/supervise/qmail-pop3d
;;
pause)
echo "Pausing qmail-send"
svc -p /var/qmail/supervise/qmail-send 
echo "Pausing qmail-smtpd"
svc -p /var/qmail/supervise/qmail-smtpd
echo "Pausing qmail-pop3d"
svc -p /var/q

[vchkpw] vadddomain issues

2003-08-14 Thread David Gibbons
[EMAIL PROTECTED] [/var/qmail/vpop/bin] # ./vadddomain frenchclasses.com
Please enter password for postmaster:
enter password again:
Error: Unable to chdir to vpopmail/domains/domain directory
I've no idea where to trouble shoot this.. google is comming up empty of 
solutions/reasons.. i've triede reinstalling anyone have any ideas? 
i can provide more information obvious but i don't know else would be 
helpful





[vchkpw] vpopmail 5.2.2 beta available

2003-08-14 Thread Tom Collins
Michael Bowe has taken the time to back-port many of the bugfixes from 
the 5.3 series to 5.2.1.  We have a tentative release of 5.2.2 
available on the SourceForge site (as vpopmail-beta) for those who want 
to test it out.



Release Notes:

This is a beta release of 5.2.2.  It has not been thoroughly
tested, so it isn't quite "stable" yet.  It includes backports of
many bugfixes from the 5.3 series, and will ultimately replace
5.2.1.
After some people have tested it on non-production machines,
we will reclassify it as stable.
Change Log:

5.2.2   "Michael Bowe" <[EMAIL PROTECTED]>
 - Back ported these fixes from 5.3.23 and earlier for an interim
   stable release :
   vmysql.h
 - fix missing backslashes [5.3.21]
 - fix for logging being too verbose [5.3.14]
   vcdb.c
 - vset_lastauth() - fix for unchecked return of vauth_getpw()
   [5.3.17]
   vldap.c
 - vset_lastauth() - fix for unchecked return of vauth_getpw()
   [5.3.24]
   vchkpw.c
 - fix buffer overflows USER/HOME [5.3.22]
 - fix exit codes for NO_POP [5.3.7]
 - fix mysql logging being too verbose [5.3.14]
   vpopmail.c
 - replace parse_email() to fix courier/sqwebmail authdaemon
   problems [v5.3.5]
 - vgetent() - support for old vpaddwd files without cleartext
   field [5.3.20]
 - vset_default_domain() - support courier's IPv6 TCPLOCALIP
   [5.3.12]
   vdelivermail.c
 - main() - add support for autoresoponder's error 99 and 100
   [5.3.9]
 - process_valias() - catch error on return from deliver_mail()
   [5.3.21]
 - deliver_mail() - Process progs before maildirs [5.3.10],
   Add support for comments [5.3.21]
 - check_forward_deliver() - add support for comments [5.3.21]
 - usernotfound() - replace with newer version to handle
   catchalls etc [5.3.21]
 - maildirtoemail() - fix to handle hashed userdirs [v5.3.22]
   vpopbull.c
 - replace with newest version [5.3.17]
   vconvert.c
 - replace with newest versions [5.3.23]
   cdb_seek.c
 - remove "extern int errno" [5.3.24]
 - replace qmail-pop3d-maildirquota.patch with qmail-maildir++.patch

 - update ChangeLog




Re: [vchkpw] mysql login/passwd/database in a flatfile

2003-08-14 Thread Oden Eriksson
torsdagen den 7 augusti 2003 01.34 skrev Tom Collins:
> On Wednesday, August 6, 2003, at 01:46  AM, Oden Eriksson wrote:
> > I just have to clarify this, the following links are actually two
> > different
> > patches that I have found:
> >
> > http://sourceforge.net/tracker/
> > index.php?func=detail&aid=778502&group_id=85937&atid=577801
> > http://sourceforge.net/tracker/
> > index.php?func=detail&aid=778503&group_id=85937&atid=577801
>
> (patches related to moving mysql connection info to an external file)
>
> I like the first one, as it is a simpler file format (quicker to
> read/parse), but I'm hesitant to include it at this point.  I'd like to
> release a new stable version of vpopmail to replace the current 5.2.1
> release before adding this change and testing it.
>
> Then again, making the change now before we go stable would be good as
> well.  Maybe after I get the 5.3.24 release out I'll try adding it for
> the 5.3.25 release.

Cool. I would like that a lot.

BTW. I have a pretty huge archive online with djb related software and 
patches, maybe you'll find something old/new/interesting in there, it's at:

http://www.deserve-it.com/sw/patches/

> > And as a side note this one should be applied:
> >
> > http://sourceforge.net/tracker/
> > index.php?func=detail&aid=784024&group_id=85937&atid=577800
>
> (patch related to 'extern int errno' declaration)
>
> I've applied it to 5.3.24.  Thanks.

Thanks Tom for controlling this, it's highly appreciated.

-- 
Regards // Oden Eriksson, Deserve-IT.com



Re: [vchkpw] Re: Need advise on secondary mail server for backup purpose.

2003-08-14 Thread Kuan Yik
Then, how to will the mailserver2 will forward all the message back to
mailserver1 when the mailserver1 turn up again.? need any special
configuration?

- Original Message -
From: "Sérgio Manuel Rosa" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 06, 2003 5:40 PM
Subject: [vchkpw] Re: Need advise on secondary mail server for backup
purpose.


> Hi,
>
> that all you need on the DNS side.
>
> On the mailserver1 you'll need to have qmail configured to receive mail
for
> your domain (or domains) and on mailserver2 also (basicly have all your
> domains in $QMAILPATH/control/rcpthosts).
>
> Regards
> srosa
>
>
>
> Kuan Yik writes:
>
> > Hi,
> >
> > I have already configured 2 MX record in DNS.
> >
> > MX 10 mailserver1.mail.com
> > MX 20 mailserver2.mail.com
> >
> > I want to setup a secondary mail server to catch all the email when the
primary mail server goes down and when the primary mail server up again then
the secondary mail server will flush all the email to the primary mail
server again. Is that possible? Is it somehting to do use witl the
qmial-remote?
> >
> > Is there any useful link can help me on this?
> >
> > Please advise.
>
>
>
>
>




[vchkpw] Need advise on secondary mail server for backup purpose.

2003-08-14 Thread Kuan Yik




Hi,
 
I have already configured 2 MX record in 
DNS.
 
MX 10 mailserver1.mail.com
MX 20 mailserver2.mail.com
 
I want to setup a secondary mail server to catch 
all the email when the primary mail server goes down and when the primary mail 
server up again then the secondary mail server will flush all the email to the 
primary mail server again. Is that possible? Is 
it somehting to do use witl the qmial-remote?
 

Is there any useful link can help me on 
this?
 
Please 
advise.


Re: [vchkpw] vpopmail+spamassassin+clamscan

2003-08-14 Thread Adam Hooper
Another method (for different needs, of course): On our site, we just 
put qmail-scanner in the qmail queue. All that needs to be done ("all?" 
I spent hours on this :P) is apply the QMAILQUEUE patch to qmail, and 
install qmail-scanner by following its instructions: 
http://qmail-scanner.sourceforge.net/

qmail-scanner works with spamassassin and clamscan and can do primitive 
attachment checks (i.e., "block all .exe/.bat/.vbs attachments"). The 
way we have it set up, it just puts an 'X-Spam-Status: Yes/No' in the 
message's header, and users can set their mail clients to use rules 
based on that.

The downside: If you're running a very large site and only expect a few 
people to use the virus-scanning abilities of spamassassin, you're going 
to be burning lots of processor cycles. Our site is relatively small and 
we need qmail-scanner anyway to block "dangerous" attachments, so the 
waste of CPU isn't an issue for us.

--
Adam Hooper
[EMAIL PROTECTED]
Tom Walsh wrote:

There was some discussion a while back about making SA work with vpopmail.

Most solutions I saw used .qmail-username or .qmail-default which wasn't the
right method for us. Below is a quick write up on how to use SA+clamscan
from a .qmail file in the users maildir. We also pull user preferences for
SA from SQL, so the line we use to call SA might not be what you want.
Delivery and hand off for scanning is handled by maildrop.
First and foremost, make certain that the user vpopmail has a valid shell...
this is very important as vdeliermail will run anything in the .qmail as the
user vpopmail, provided the application doesn't do a setuid/setgid, which
maildrop does not do. (That alone cost me 3 hours to troubleshoot.)
For each user you want to enable SA and virus scanning put the following in
a .qmail file in the users directory:
| /var/qmail/bin/preline /usr/local/bin/maildrop
/usr/home/vpopmail/domains/.mailfilter
Make sure that this file has been chmod'ed to 600 (u+rw) and is owned by
vpopmail:vchkpw otherwise it will not be run.
The .mailfilter listed above contains (some of this script has come from
another list member, but I forgot his name, if you contact me I will give
credit where credit is due), it must also be chmod'ed to 600 with owner
vpopmail:vchkpw :
import EXT
import HOST
VHOME=`/usr/home/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]
# Check for Spam if it is smaller than 250KB
if($SIZE < 262144)
{
xfilter "/usr/local/bin/spamc -d 192.168.1.2 -t 20 -f -u [EMAIL PROTECTED]"
}
if ((/^X-Spam-Flag:.*YES/))
{
`/bin/test -d $VHOME/Maildir/.Spam`
if( $RETURNCODE == 1 )
{
`/var/qmail/bin/maildirmake $VHOME/Maildir/.Spam;
/usr/sbin/chown -R vpopmail:vchkpw $VHOME/Maildir/.Spam`
}
to "$VHOME/Maildir/.Spam/"
}
# If it isn't Spam, then we scan for Virus if it is smaller than 2MB in
size... anything larger... they are on their own
if($SIZE < 200)
{
xfilter "/usr/home/vpopmail/domains/clamscan.sh"
}
if ((/^X-Virus-Status:.*INFECTED/))
{
`/bin/test -d $VHOME/Maildir/.Virus`
if ( $RETUNRCODE == 1 )
{
`/var/qmail/bin/maildirmake $VHOME/Maildir/.Virus;
/usr/sbin/chown -R vpopmail:vchkpw $VHOME/Maildir/.Virus`
}
to "$VHOME/Maildir/.Virus/"
}
#If it isn't Spam or Virus, then deliver normally
to "$VHOME/Maildir/"
The specific lines of interest are the xfilter lines. We use spamc/spamd to
offload the very CPU intensive process of spam scanning to another machine
on the private network. That is what the -d directive is for which tells SA
which IP to connect to for spamd...
The clamscan.sh file is a wrapper for the clamscan binary. We need to do
this because of the incompatibility between how clamscan operates and how
maildrop expects an xfilter program to operate. maildrop expects any message
it sends out to an xfilter program to be returned to it via stdout. The
problem is that the clamscan binary only returns the results of the scan,
not the message, so we have to create a shell script to pass the altered
message back to maildrop via stdout, also we use the shell script to alter
the exit code of clamscan (0 if clean and 1 if infected) to be compatible
with what maildrop expects. maildrop expects the application to return a
exit code of 0, so we have to alter it.
You will need bash in order to use this.

#!/usr/local/bin/bash
# Created by Tom Walsh
# slim at ala.net
MSG=$(/bin/cat /dev/stdin) # Is there a better way to do this?
SCAN=$(echo "$MSG" | /usr/local/bin/clamscan - --stdout --disable-summary)
EXIT="$?"
VIRUS=$(echo "$SCAN" | awk '{print $2}')
SUBJECT=$(echo "$MSG" | /usr/local/bin/reformail -x Subject:)
if [ "$EXIT" == "1" ]; then
 SUBJECT="**VIRUS** [$VIRUS] $SUBJECT"
 MSG=$(echo "$MSG" | /usr/local/bin/reformail -a"X-Virus-Status:
INFECTED" -i"Subject: $(echo "$SUBJECT")")
else
 MSG=$(echo "$MSG" | /usr/local/bin/reformail -a"X-Virus-Status: CLEAN")
fi
echo "$MSG"

exit 0

And just for completeness... I ha

RE: [vchkpw] ETRN / serialmail-AUTOTURN with vpopmail - How to ?

2003-08-14 Thread Clayton Weise
I think what needs to be understood here is that vpopmail, qmail, and
autoturn (serialmail) are not really all related.  The only common bond they
share is qmail itself.

qmail is the mail server that runs the show, and all it's doing is
delivering emails.  It decides how to, based on it's control files.  In this
case, we're talking about the rcpthosts (and possibly morercpthosts) and
virtualdomains control files.  As well as the /var/qmail/users/assign file,
which gets compiled into the /var/qmail/users/cdb file.  Here's the
breakdown of how delivery works with qmail and where autoturn or vpopmail
come into play.  It should help you to better diagnose where your problem is
coming from.

SMTP connection opens up to your server for a domain you handle, let's say,
example.com .  qmail-smtpd answers the smtp connection and email for
example.com.  It checks if example.com is in rcpthosts, if it is, it accepts
relay for it.  It then checks the smtproutes file for an artificial smtp
route, and then the virtualdomains file.  In the virtualdomains file you
have something that looks like this (if you're using vpopmail):

example.com:example.com

Seems simple enough.  The first part is the FQDN itself, the second part is
the user that it belongs to.  This user is defined in the
/var/qmail/users/assign file, but qmail actually reads the cdb file.  You
build the cdb file with the /var/qmail/bin/qmail-newu program.  Inside your
assign file you have something that looks like this:

+example.com-:example.com:89:89:/home/vpopmail/domains/example.com:-::

The "+" in the begging signifies a catch-all account for the domain.  qmail
then looks in /home/vpopmail/domains/example.com for a .qmail-default file.
If it finds one, it delivers to whatever that file instructs.  This
typically will contain the following:

| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox

That command pipes it over to vdelivermail, which delivers the email..and
voila we have email.

Ok.. now where do we fit in serialmail?  Well, in the virtualdomains file,
instead of assigning the domain to the "example.com" user in the assign
file, we'll give it to autoturn so your virtualdomains file will look like
this instead:

example.com:autoturn-1.2.3.4

Notice how we've assigned it to autoturn, but a specific autoturn user
(1.2.3.4).  1.2.3.4 would be the IP address of the mail server that you're
holding email for.  This MUST be a static IP address.  Inside your assign
file, you have a line that looks like this for autoturn:

+autoturn-:qmaild:82:81:/var/qmail/autoturn:-::

That tells qmail that the autoturn user also is a "catch-all" user, and that
it lives in /var/qmail/autoturn.  qmail then takes the email destined for
example.com and tries to deliver it to /var/qmail/autoturn.  Inside this
folder, you'd create a .qmail-1:2:3:4 file that looks like this (note they
are colons and not periods in the file name):

./1.2.3.4/

This tells qmail that anything destined for the autoturn-1.2.3.4 user (aka,
anything for example.com) should be delivered to
/var/qmail/autoturn/./1.2.3.4/

The 1.2.3.4 directory is created with the /var/qmail/bin/maildirmake
program.  Just type:

/var/qmail/bin/maildirmake /var/qmail/autoturn/1.2.3.4

Then chown it as the qmaild user by doing:
chown -R qmaild:nofiles /var/qmail/autoturn/1.2.3.4

Hope that helps to clear things up.

-Clayton

-Original Message-
From: Evren Yurtesen [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 04, 2003 10:31 PM
To: Devendra Singh
Cc: [EMAIL PROTECTED]
Subject: Re: [vchkpw] ETRN / serialmail-AUTOTURN with vpopmail - How to ?


I think you should explain what you did and where you failed and what is
going wrong etc. Now you cant expect us to write you a manual for this
only for you. At least nobody would do that for free only for one
person's benefit. Then again after all that work, you might say that you
still do not understand etc. So it is a difficult situation for all of us.
We do not know your exact problem. We can not tell you how to fix it.

We can guide you but you must go through the door yourself :)

Here is my qmail-smtpd run file which was working when I used serialmail
if it is any help. This was the most difficult part for me.

---
exec /usr/local/bin/tcpserver -p -R -x /usr/local/vpopmail/etc/tcp.smtp.cdb
\
-u82 -g81 -v -c100 0 smtp \
  sh -c '
/var/qmail/bin/qmail-smtpd
cd /var/qmail/autoturn
exec setlock -nx $TCPREMOTEIP/seriallock \
maildirsmtp $TCPREMOTEIP autoturn-$TCPREMOTEIP- $TCPREMOTEIP
AutoTURN
  ' \
`hostname --fqdn` /usr/local/vpopmail/bin/vchkpw /usr/bin/true 2>&1

---


On Tue, 5 Aug 2003, Devendra Singh wrote:

> At 04/08/03 06:27 (+0300), you wrote:
> 
> >Yes you can use serialmail for some domains and for some not
> >please just read the readme files which come with serialma

Re: [vchkpw] Re: Need advise on secondary mail server for backup purpose.

2003-08-14 Thread Kuan Yik
yeah...think should work. I have shutdown the primary mailserver and the
message has gone into the secondary mail server. Think the message should be
in the qmiail queue now. And, I have make the primary mailserver up again,
but I am still waiting for the message from secondary mail server. So, is
there any command to flush or force the secondary mail server message from
the qmail queue?

Or any configuration file to customize it?

Thanks.
- Original Message -
From: "Kenneth Ling" <[EMAIL PROTECTED]>
To: "Cream[DONut]" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, August 07, 2003 10:42 AM
Subject: RE: [vchkpw] Re: Need advise on secondary mail server for backup
purpose.


> I do a same config like what cream does...
> it work very very fine with me..( so far half a year )
>
> It is nothing to do with vpopmail... pure qmail control file only
>
>
> -Original Message-
> From: Cream[DONut] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 06, 2003 6:11 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [vchkpw] Re: Need advise on secondary mail server for
> backup purpose.
>
>
> At 18:05 06-08-2003 +0800, you wrote:
>
> >my mailserver1 has been configured properly and it is up and running
> without
> >any problem. Just do not have the idea of setting up and backup mail
> server.
>
> It isnt really a vpopmail issue, it is a Qmail issue.
>
> You put it in rcpthosts on mailserver2, that means it will recive mail for
> that domain, since it isnt in the local domains, or virtualdomains, it
cant
> deliver it locally, and will try to deliver it remotely.
> - with standard settings it should keep trying for 5 days, then give up
> - you dont need vpopmail installed, just a plain Qmail server
>
> (somebody please correct me if im wrong)
>
>
>
>
>
>




Re: [vchkpw] vpopmail virus scanning - but per domain

2003-08-14 Thread Mike Miller
RAV Antivirus does it as well.  Again- commercial software.  They also have 
one of the best pieces of virus software around (Microsoft just bought most 
of the company- probably to try and put it into future windows versions).  
www.ravantivirus.com I think.  They have RAV for qmail.  Most packages like 
this are commercial- and if they are not, the virus scanners which they call 
are.
-M

From: Ken Jones <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: [vchkpw] vpopmail virus scanning - but per domain
Date: Fri, 1 Aug 2003 14:12:40 -0500
On Friday 01 August 2003 01:40, Kosztik Istvan wrote:
> hi!
>
> I know, may it asked many times :)))
>
> I would like to do virus scanning per virtual domain. is there any 
solution
> of this?

Our efilter program does this but it's a commercial product.
You can enable/disable virus scanning per domain.
Ken Jones
inter7.com
_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*   
http://join.msn.com/?page=features/junkmail




Re: [vchkpw] Unknown column 'pw_name' in 'field list'

2003-08-14 Thread John Johnson
 what are the database permissions?

-John

- Original Message - 
From: "Alan Murrell" <[EMAIL PROTECTED]>
To: "Vpopmail Users List" <[EMAIL PROTECTED]>
Sent: Sunday, August 10, 2003 9:18 PM
Subject: [vchkpw] Unknown column 'pw_name' in 'field list'


> Hello,
> 
>   Mandrake 9.1
>   Qmail 1.03
>   Vpopmail 5.3.24
> 
> I am setting up a new server with the latest (devel)
> version of vpopmail, using MySQL as the backend.  I
> edited vmysql to point to the database server, and
> have confirmed that the (MySQL) username and password
> work by authenticating from the mail server to the
> MySQL server using the 'mysql' program.
> 
> However, when I test POP authentication via telnet, I
> get the following error:
> 
> --- CUT HERE ---
> [EMAIL PROTECTED] vpopmail-5.3.24]# telnet localhost 110
> Trying 127.0.0.1...
> Connected to localhost (127.0.0.1).
> Escape character is '^]'.
> +OK <[EMAIL PROTECTED]>
> user alan
> +OK 
> pass bofh123
> vmysql: sql error[3]: Unknown column 'pw_name' in
> 'field list'
> -ERR authorization failed
> Connection closed by foreign host.
> --- CUT HERE ---
> 
> I have checked several of the domain tables in the
> database, and they do indeed have the 'pw_name'
> column, and it appears to be defined in the 'vmysql.h'
> file.  The README.mysql file does not shed any light
> on this.
> 
> I was wondering if anyone here would be able to shed
> some light on this, and let me know what I appear to
> have done wrong?
> 
> In case it is relevent, my vpopmail configuration
> looks like this:
> 
> --- CUT HERE ---
> ./configure --enable-tcprules-prog=/usr/bin/tcprules \
>   --enable-tcpserverfile=/etc/tcp.smtp \
>   --enable-clear-passwd=y \
>   --enable-mysql=y \
>   --enable-valias=y \
>   --enable-file-locking=y \
>   --enable-many-domains=y \
>   --enable-defaultquota=25214400S,1000C \
>   --enable-domainquotas=y
> --- CUT HERE ---
> 
> TIA for your help and insight.
> 
> Alan Murrell <[EMAIL PROTECTED]>
> 
> 
> __ 
> Post your free ad now! http://personals.yahoo.ca
> 
> 



[vchkpw] Vpopmail and openbsd

2003-08-14 Thread Brad
Hi

I am trying to install vpomail on openbsd 3.3. I have installed many times
on various flavours of linux with no issue.

When issuing make I get the following error...

bash# make
make  all-recursive
Making all in cdb
gcc -I. -Icdb -g -O2 -Wall -c vdelivermail.c
vdelivermail.c: In function `date_header':
vdelivermail.c:1333: invalid operands to binary /
vdelivermail.c:1321: warning: `tz' might be used uninitialized in this
function
*** Error code 1

Stop in /usr/src/mail/vpopmail-5.3.23.
*** Error code 1

Stop in /usr/src/mail/vpopmail-5.3.23 (line 468 of Makefile).
*** Error code 1

Stop in /usr/src/mail/vpopmail-5.3.23 (line 596 of Makefile).

Is anyone able to shed sone light on this for me?

Regards

Brad

--




RE: [vchkpw] doublebounces non-.qmail-default | /var/vpopmail/bin/vdelivermail '' delete

2003-08-14 Thread Tom Walsh
Just put a comment in the .qmail or .qmail-username file... no need to
invoke vdelivermail when you are going to throw it to /dev/null anyways...

I have an account created on my mail server named null...

in his .qmail file I have

#

nothing else...

Has the same effect...

Also note that .qmail-username is called before any vpopmail interaction.

Any even better way to deal with doublebounces is to never let them into the
queue in the first place... with tonix patch (smtpd-chkusr).

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

::-Original Message-
::From: leonard [mailto:[EMAIL PROTECTED]
::Sent: Thursday, August 14, 2003 12:36 PM
::To: [EMAIL PROTECTED]
::Subject: [vchkpw] doublebounces non-.qmail-default |
::/var/vpopmail/bin/vdelivermail '' delete
::
::
::-BEGIN PGP SIGNED MESSAGE-
::Hash: SHA1
::
::Hello,
::
::To deal with spam/double-bounces,
::I wrote in /var/qmail/control/doublebounceto : doublebounce
::which is the name for a ".qmail-doublebounce" file
::and in it I used  "| /var/vpopmail/bin/vdelivermail '' delete"
::... like it was a .qmail-default.
::
::Is this possible for regulars .qmail-aliases too ?
::If not where do the eMails go ?
::
::Thank you,
::Maybe I found an easy way to deal w/ doublebounces...
::
::Guillaume
::
::-BEGIN PGP SIGNATURE-
::Version: GnuPG v1.2.1 (GNU/Linux)
::
::iD8DBQE/O8hooqOw021SWZYRAkXnAJwKfqEGnnGOJqV411VuciijYcBYrACffFPg
::rHK4gdi7Y0/OSWahNlcmIP4=
::=gdL7
::-END PGP SIGNATURE-
::
::




Re: [vchkpw] File busy, try again later.

2003-08-14 Thread John Johnson
your tcp.smtp.cdb is locked, sounds like you have a lot of stuff going on on
this
server

-John

- Original Message - 
From: "yung" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 11, 2003 9:05 AM
Subject: [vchkpw] File busy, try again later.


> Hello guys,
> I'm using qmail-1.03+vpopmail, and recently I've been getting a lot of
> errors when users try to login, it rejects their login and password and
> gives the error description "File busy, try again later". Does anyone know
> what could be causing this?
>
> Thanks.
> Yung.
>
>
>




[vchkpw] configure --enable-mysql=y error : help a noob please?

2003-08-14 Thread jon kutassy
Im trying to set up vpopmail +mysql + qmail on redhat 9

I believe I've read the relevent docs, and searched the web :

when i run ./configure --enable-mysql=y

I get this error:

configure: error: unable to find your inc dir, specify --enable-incdir

Now I'd love to be able to do this, but Im not sure what one is...

Regards

Jon

_
Tired of 56k? Get a FREE BT Broadband connection 
http://www.msn.co.uk/specials/btbroadband




Re: [vchkpw] Vpopmail and openbsd

2003-08-14 Thread Tom Collins
On Sunday, August 10, 2003, at 04:19  PM, Brad wrote:
I am trying to install vpomail on openbsd 3.3. I have installed many 
times
on various flavours of linux with no issue.
That problem was fixed in 5.3.24.

http://sourceforge.net/projects/vpopmail/

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] Authentication failed..

2003-08-14 Thread Tom Collins
On Wednesday, August 6, 2003, at 01:38  PM, Doug Clements wrote:
Yet again, the problem is with vpopmail.

Solution: Fix vpopmail.
This was fixed around release 5.3.5 (according to Michael Bowe's 
research), and vpopmail 5.3.20 and later should work fine with 
authdaemon.  If it doesn't, then we need more information as to when it 
fails.

Michael is working on a 5.2.2 release that backports major bugfixes 
from the 5.3 series.  We hope to have a 5.4 release (i.e., a stable 5.3 
release) of vpopmail ready by the end of August.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] other fun vpopmail issues!

2003-08-14 Thread Jeff Hedlund
David Gibbons wrote:
When i try the newer 5.3.23 i get compile errors

vdelivermail.c: In function `date_header':
vdelivermail.c:1333: invalid operands to binary /
vdelivermail.c:1321: warning: `tz' might be used uninitialized in this 
function
*** Error code 1

nothing seems to work today for me :/
That is fixed in the latest dev version, 5.3.24

http://www.sf.net/projects/vpopmail

Jeff




[vchkpw] Re: "vpopmail documentation initiative"

2003-08-14 Thread Paul L. Allen

Adam Hooper writes:

[FAQs]
> But nobody wants to maintain it! I sure as hell don't, I find it 
> infuriating. None of the 5 other admins can be bothered with it either. 
> Users STILL use the faq all the time, with 6-month-old data, but nobody 
> wants to bother keeping it up to date, because it takes lots of 
> research, time and patience.

Yep, it takes a lot of time and effort.  But I know how much time
and effort I spend trying to hunt down answers in google.  It is a
LOT.  And it's a lot because usually there is no FAQ and I'm reduced
to searching mailing lists.  And invariably the search results are
dominated by people asking the same question I am and being told to
search the list.  Which means there are a lot of people spending a lot
of time googling mailing lists.

> Worst of all, mailing-list questions don't disappear, they appear with 
> just the same regularity. Except now the key phrase is "search the faq." 

I go back to the days when "that is answered in the FAQ" was a standard
reply.  And the thing is, when somebody said that then the answer usually
WAS in the FAQ and the person who asked the question could find the answer
within seconds of being told to look at the FAQ.  These days I have to
search mailing lists and my experience is that it can take several hours
to finally get an answer because I'm wading through all the "search the
list" responses, stupid questions, stuff that matches the search criteria
but isn't what I'm after, etc.  If, instead, I came across an "it's in
the FAQ" responses I'd immediately look in the FAQ.  In fact, the chances
are the google would throw up the FAQ ahead of the mailing list archives
anyway.

> Proper netizens are indeed grateful and spend time to offer suggestions, 
> but proper netizens can usually find most answers on Google anyway, so 
> they'd never ask the question in the first place!

I consider myself a proper netizen, and reasonably skilled in setting
search criteria, but it takes a LONG time to find some answers on google
when you have to wade through mailing lists.

> In brief, a FAQ does surprisingly little to quell mailing list/IRC/
> private email clutter.

Then you misunderstand my point.  I know that the "search the list"
clutter will be replaced by "it's in the FAQ" clutter.  But the former
means I then spend hours wading through the clutter before I eventually
get to the answer while the latter means I get the answer very quickly.

I wasn't arguing for an FAQ to get rid of clutter but to allow people
to find answers quickly.  I know that doesn't help list subscribers
avoid clutter but it does help everyone looking for answers.

> To wrap up: In my experience, a FAQ is a f*cking pain. Good luck finding 
> somebody who'll want to put that amount of time and effort -- I know 
> I'll never do one again :).

I agree, maintaining an FAQ is a pain.  So is googling list archives
where most questions are answered with "search the list."  If there
were more FAQs around I'd save enough time that I could afford the time
to maintain an FAQ.

-- 
Paul Allen
Softflare Support




Re: [vchkpw] Urgent - vchkpw/vpopmail authenticate even with wrong pw?

2003-08-14 Thread jeff thomas
Here's the configure command I used on 5.3.20 (after
fixing the vchkpw.c problem as noted below:

./configure  --enable-qmaildir=/var/qmail
--enable-tcprules-prog=/usr/local/bin/tcprules
--enable-learn-passwords=y
--enable-tcpserver-file=/usr/home/vpopmail/etc/tcp.smtp
--enable-defaultquota=1000 --enable-logging=e
--enable-valias=y --enable-roaming-users
=y --enable-relay-clear-minutes=30 --enable-mysql=y
--enable-sqlincdir=/usr/local/include/mysql
--enable-sqllibdir=/usr/local/lib/my
sql --enable-default-domain=domain.com
--enable-qmail-ext=y --prefix=/usr/home

Anyone have thoughts on how to fix this?

Thanks





--- jeff thomas <[EMAIL PROTECTED]> wrote:
> Ok... I tried this fix. 
> 
> I edited vchkpw.c and removed the FOOB and ENDIF.
> recompiled. 
> 
> No luck. Same thing. Any password I put in still
> works.
> 
> Thoughts?
> 
> --- Michael Bowe <[EMAIL PROTECTED]> wrote:
> > I just remembered that learn-passwords was broken
> in
> > 5.3.20, and then
> > eventually fixed in 5.3.24
> >
>
http://sourceforge.net/tracker/index.php?func=detail&aid=783824&group_id=85937&atid=577798
> > 
> > Maybe this has something to do with your problem?
> > 
> > Michael.
> > 
> > - Original Message - 
> > From: "jeff thomas" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, August 13, 2003 6:47 PM
> > Subject: Re: [vchkpw] Urgent - vchkpw/vpopmail
> > authenticate even with wrong
> > pw?
> > 
> > 
> > > Learn passwords was enabled. However, it should
> > learn
> > > only the FIRST password entered for each
> > account
> > > not multiple passwords for each account.
> > >
> > > Right?
> > >
> > > It would seem logical that with learn-passwords,
> > the
> > > first time i put in the password for [EMAIL PROTECTED],
> it
> > > "learns" that password. If I try to log into
> > [EMAIL PROTECTED]
> > > with a different password, I should be rejected,
> > as it
> > > "learned" the first password.
> > >
> > >
> > >
> > >
> > > --- Michael Bowe <[EMAIL PROTECTED]> wrote:
> > > > I could be barking up the wrong tree here
> but...
> > > >
> > > > Perhaps did you configure vpopmail to "learn
> > > > passwords" ?
> > > >
> > > > It rings a bell for me that if you upgrade
> from
> > an
> > > > v4.x vpopmail, and you
> > > > enable clear passwords in your v5.2 vpopmail,
> > you
> > > > loose all your existing
> > > > passwords and the general way to recover from
> > this
> > > > is to enable vpopmail's
> > > > "learn passwords" functionality
> > > >
> > > > This could explain why "any password works".
> But
> > > > then again, once the
> > > > password has been learned, you shouldn't be
> able
> > to
> > > > go back and use some
> > > > other password and still get access
> > > >
> > > > Michael.
> > > >
> > > >
> > > > - Original Message - 
> > > > From: "jeff thomas" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Wednesday, August 13, 2003 10:15 AM
> > > > Subject: [vchkpw] Urgent - vchkpw/vpopmail
> > > > authenticate even with wrong pw?
> > > >
> > > >
> > > > > Hello -
> > > > >
> > > > > I recently installed vpopmail 5.3.20 from
> > freebsd
> > > > > ports. I used Matt Simerson's FreeBSD Qmail
> > > > Toaster
> > > > > scripts to install it (it uses ports).
> > > > >
> > > > >
> > > > > That installed without problem. I installed
> > > > > courier-imap and squirrelmail as well as
> > > > sqwebmail. I
> > > > > noticed today that I can log into any of the
> > > > accounts
> > > > > via sqwebmail with any password. I can
> > literally
> > > > put
> > > > > in "xxx" for the password on my e-mail
> account
> > and
> > > > it
> > > > > will let me in. I tried it on squirrelmail
> > with
> > > > the
> > > > > same problem. So, then I tried simply
> logging
> > into
> > > > the
> > > > > POP3 account with "xyz" as the password. It,
> > too,
> > > > let
> > > > > me in with full access.
> > > > >
> > > > > This is bad - obviously. Anyone care to shed
> > some
> > > > > light on what I need to do to get this fixed
> > ASAP.
> > > > I
> > > > > upgraded from 4.9.x and use mysql4 for
> > > > authentication.
> > > > >
> > > > > Any and all help is appreciated.
> > > > >
> > > > > __
> > > > > Do you Yahoo!?
> > > > > Yahoo! SiteBuilder - Free, easy-to-use web
> > site
> > > > design software
> > > > > http://sitebuilder.yahoo.com
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> > > __
> > > Do you Yahoo!?
> > > Yahoo! SiteBuilder - Free, easy-to-use web site
> > design software
> > > http://sitebuilder.yahoo.com
> > >
> > >
> > 
> > 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> http://sitebuilder.yahoo.com
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com



[vchkpw] Re: Need advise on secondary mail server for backup purpose.

2003-08-14 Thread Sérgio Manuel Rosa
Hi, 

that all you need on the DNS side. 

On the mailserver1 you'll need to have qmail configured to receive mail for 
your domain (or domains) and on mailserver2 also (basicly have all your 
domains in $QMAILPATH/control/rcpthosts). 

Regards
srosa 



Kuan Yik writes: 

Hi, 

I have already configured 2 MX record in DNS. 

MX 10 mailserver1.mail.com
MX 20 mailserver2.mail.com 

I want to setup a secondary mail server to catch all the email when the primary mail server goes down and when the primary mail server up again then the secondary mail server will flush all the email to the primary mail server again. Is that possible? Is it somehting to do use witl the qmial-remote? 

Is there any useful link can help me on this? 

Please advise.





Re: [vchkpw] Detailed installation instructions on FreeBSD - attached

2003-08-14 Thread eLgino
ok, thanks

but WHERE to copy the envconv programm in WITCH directory?

thank you for your friendly help and your howto

cya

- Original Message -
From: "Evren Yurtesen" <[EMAIL PROTECTED]>
To: "eLgino" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, August 13, 2003 8:50 PM
Subject: Re: [vchkpw] Detailed installation instructions on FreeBSD -
attached


> I dont understand, the file name is written just above the line
> /var/qmail/supervise/qmail-smtp/run
> which means inside this file, the text between  must be
> if you dont know what is serialmail, just use the rblsmtpd one.
>
> Evren
>
> On Wed, 13 Aug 2003, eLgino wrote:
>
> > "Evren Yurtesen" <[EMAIL PROTECTED]>
> >
> > HI thank you very much but what your are meaning with:
> >
> > /var/qmail/supervise/qmail-smtp/run text with serialmail...
>
> --
--
> > 
> > exec /usr/local/bin/tcpserver -p -R -x
/usr/local/vpopmail/etc/tcp.smtp.cdb
> > \
> > -u82 -g81 -v -c100 0 smtp \
> >   sh -c '
> > /var/qmail/bin/qmail-smtpd
> > cd /var/qmail/autoturn
> > exec setlock -nx $TCPREMOTEIP/seriallock \
> > maildirsmtp $TCPREMOTEIP autoturn-$TCPREMOTEIP- $TCPREMOTEIP
> > AutoTURN
> >   ' \
> > `hostname --fqdn` /usr/local/scripts/vpopmail/vchkpw /usr/bin/true 2>&1
>
> --
--
> > 
> >
> > /var/qmail/supervise/qmail-smtp/run text with rblsmtpd...
>
> --
--
> > 
> > #!/bin/sh
> > exec /usr/local/bin/tcpserver -p -R -x
/usr/local/vpopmail/etc/tcp.smtp.cdb
> > \
> > -u82 -g81 -v -c100 0 smtp /usr/local/bin/rblsmtpd \
> > -r bl.spamcop.net \
> > -r sbl.spamhaus.net \
> > /var/qmail/bin/qmail-smtpd \
> > `hostname --fqdn` /usr/local/scripts/vpopmail/vchkpw /usr/bin/true 2>&1
> >
> > with serialmail... / with rblsmtpd ??? whats that?
> >
> > and what you are meaning of
> >
> > 
> >
> > Now copy the envconv program to each directory
> >
> > envconv text...
>
> --
--
> > 
> > #!/usr/bin/perl
> >
> > # written by Jonas Pasche
> > # enhanced by Matthias Andree
> >
> > while () {
> >   if( $_ =~ /^([^#][^=]+)=(.*)/) {
> > $name=$1;
> > unlink "$name";
> > open (F, ">$name") or die "Cannot open $name: $!";
> > $value = $2;
> > if( $value =~ /^"(.*)"$/ ) {
> >   $x=$1;
> > } else {
> >   $x=$value;
> > }
> > while ($x =~ m/\$(\S+)/ && $vars{$1}) {
> > $y = $1;
> > $x =~ s/\$$y/$vars{$y}/;
> > }
> > $vars{$name}=$x;
> > print F $x or die "Cannot write to $1: $!";
> > close (F) or die "Cannot close $1: $!";
> >   }
> > }
>
> --
--
> > 
> >
> > where to copy the programm/script/tool what ever? to what directories,
thank
> > you very much!
> >
> >
> > - Original Message -
> > From: "Evren Yurtesen" <[EMAIL PROTECTED]>
> > To: "Shane Chrisp" <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>; "eLgino" <[EMAIL PROTECTED]>
> > Sent: Wednesday, August 13, 2003 7:34 PM
> > Subject: [vchkpw] Detailed installation instructions on FreeBSD -
attached
> >
> >
> > > Here is the detailed installation instructions from my own
installation on
> > > FreeBSD!
> > >
> > > Now for the people who has trouble, I will help as much as I can if
there
> > > are problems in these instructions.
> > >
> > > I also think that this might be included in vpopmail distribution. I
came
> > > to 0.0.6 version of this document while fixing the mistakes in it
though
> > > :) I am almost certain that I eliminated all the mistakes I did.
> > >
> > > Now my mail server has been working for 1 month with 8000 thousand
users
> > > and 600 domains. I know its not much but a good test platform. Nobody
> > > complained about anything so far.
> > >
> > > The document contains, installation of
> > > vpopmail, qmailadmin, vqadmin, courier-imap, qmailmrtg, isoqlog,
> > > smtp-auth-tls, blah blah :)
> > >
> > > Evren
> > >
> >
> >
> >
>
>




Re: [vchkpw] other fun vpopmail issues!

2003-08-14 Thread David Gibbons
Tom Walsh wrote:

::
::Okay on another note i'm having a boggling time getting the "Seekable"
::patch SpamAssassin wants to apply to vpopmail..
::it patches fine but then on compile i get.. this is on a newly untared
::vpopmail with only allow-roaming users=y set in the config.
::
::
::gcc -I. -Icdb -g -O2 -Wall -c seek.c
::seek.c:24: conflicting types for `lseek'
::/usr/include/stdio.h:278: previous declaration of `lseek'
::*** Error code 1
::
::
::has anyone else any idea what's going on? seems like vpopmail really
::doesn't like me this week.
David,

Which version of vpopmail are you applying this to?

It sounds like you are patching a version that already has the seekable
patch in it... I think it was added to the code base for all version after
5.3.7(?).
The patch is only needed if you want to use a version older than that.

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




 

When i try the newer 5.3.23 i get compile errors

vdelivermail.c: In function `date_header':
vdelivermail.c:1333: invalid operands to binary /
vdelivermail.c:1321: warning: `tz' might be used uninitialized in this function
*** Error code 1
nothing seems to work today for me :/







Re: [vchkpw] .qmail

2003-08-14 Thread Tom Collins
On Monday, August 11, 2003, at 06:52  AM, Flavio Caetano wrote:
if I create a .qmail file under /home/vpopmail/domains/teste.com/teste 
that
cointains "&[EMAIL PROTECTED]" this redir doesn't work
What does /home/vpopmail/domains/teste.com/.qmail-default look like?

Is [EMAIL PROTECTED] a real user account, with a password?

The way delivery works, qmail-local finds 
domains/teste.com/.qmail-teste and handles delivery.  Without 
.qmail-teste, it goes to .qmail-default which should contain 
vdelivermail.  vdelivermail checks for a user account, and if one 
exists, delivers the email to it (processing its .qmail file if 
necessary).

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



[vchkpw] maildirsize file in Maildir/

2003-08-14 Thread Benjamin Tomhave
Hello,

Can anybody explain the purpose of the maildirsize folder in an account's
Maildir/ with a mysql-based vpopmail install?  It seems kind of redundant to
me that there should be a static file with quota information such as is
contained in maildirsize since quota info is maintained (partially or
wholly?) in the vpopmail database.  I ran into a situation this week where I
modified a user's quota in the db and it didn't take as far as courier-imap
was concerned until I removed the maildirsize file, thus causing it to be
regenerated.  Wondering if something needs to be "fixed" so that issues like
this won't occur in the future?

Thank you,

-ben

---
Benjamin Tomhave, CISSP
Senior Systems Engineer
[EMAIL PROTECTED]
Sofast Communications  www.sofast.net




Re: [vchkpw] 5.3.24, maildrop and catchalls

2003-08-14 Thread Charles Sprickman
Just answering my own email.

I made a stunning/stupid discovery.  The maildrop filters out there that
do the directory assignment like this:

VHOME=`/home/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]

are inherently broken for catchalls.  This may be obvious to some, but I
was blindly trusting stuff I found on the mailing list, which can be
dangerous.

If for example I have a user "spork" as the catchall for
"fasttrackmonkey.com" and mail is sent to "[EMAIL PROTECTED]"
current versions of vdelivermail will read spork's .qmail file which in
turn calls maildrop with a filter using the above construct.  Well, there
is no such user as "[EMAIL PROTECTED]", so $VHOME is empty.
That in turn leads to bad things.

The other example I've seen relies on a variable called "PWD".  For
whatever reason, my maildrop can *never* see that variable (tested under
vpopmail 5.3.21 - .24).  Whether that's some quirk in my version of
maildrop (1.5.2) or something else that I'm not seeing, that solution
doesn't work for me.  However, I like the idea in theory.

So, here's what I've come up with to handle filtering on normal users and
catchall users.  Running it right now on 5.3.24.  Qmailadmin is set to put
"|preline /usr/local/bin/maildrop /usr/local/etc/mailfilter.user" in a
user's .qmail file if they click the "enable spam detection" button.  The
filter calls spamc, looks for a "Spam" folder in the user's Maildir,
creates one if it doesn't exist, then delivers spam to that folder.
Additionally it looks for a ".mailfilter" file in the user's Maildir and
reads that if it exists.

Here's the contents of /usr/local/etc/mailfilter.user:


SHELL="/bin/sh"
VDIR=`pwd` # grab PWD by running the pwd command
USERNAME=`echo ${VDIR##*/}`
USERHOST=`PWDTMP=${VDIR%/*}; echo ${PWDTMP##*/}`

logfile "/home/vpopmail/domains/fasttrackmonkey.com/maildrop.log" #testing

log "= BEGIN"
log "=== VARS: host - $USERHOST  name - $USERNAME  vdir - $VDIR"

if ( $SIZE < 262144 ) # don't kill spamd with huge messages

{
exception {
xfilter "/usr/local/bin/spamc -f -u [EMAIL PROTECTED]"
log "=== SPAMC called"
}
}

if (/^X-Spam-Flag: *YES/) # Did spamc call it spam?

{
# try filtering it using user-defined rules
log "== SPAM YES"
exception {
log "= PARSING  $VDIR/Maildir/.mailfilter"
include $VDIR/Maildir/.mailfilter
}
log "== SPAM YES back from included file"
# make sure .Spam folder exists
`test -d ./Maildir/.Spam`
if( $RETURNCODE == 1 )
{
log "= CREATING SPAMDIR"
`maildirmake -f Spam ./Maildir`
}

# then try delivering it to a Spam folder
exception {
log "= DELIVERING SPAM to $VDIR/Maildir/.Spam/"
to "$VDIR/Maildir/.Spam/"
}

exception {
log "== SPAM YES - couldn't deliver to .Spam folder"
to "$VDIR/Maildir"
}
}

else

{
log "=== SPAM NO"
exception {
log "== PARSING $VDIR/Maildir/.mailfilter"
include $VDIR/Maildir/.mailfilter
}
log "== BACK FROM INCLUDE"
exception {
log "= DUMP to Maildir"
to "$VDIR/Maildir"
}

log " EXITING"

}


And here's a snippet of an included .mailfilter from a user's Maildir:


log " In included file"

if ( /^Return-Path:  Hello,
>
> Just a quick note, I just gave 5.3.24 a spin, and vdelivermail still
> doesn't pass the $EXT and $HOST variables along when delivering to a
> catchall address.  This, in effect means that you cannot filter any mail
> destined to a catchall address.
>
> I've seen a posting where someone had mentioned using "$PWD" to grab the
> info, but for whatever reason when I throw the following line at maidrop,
> it barfs:
>
> SHELL="/bin/sh"
> VHOME="$PWD/Maildir/"
> USERNAME=`echo ${PWD##*/}`
> USERHOST=`PWDTMP=${PWD%/*}; echo ${PWDTMP##*/}`
>
> Meaning, $PWD has nothing in it...  I have it set to explicitly log those
> values like so:
>
> logfile "/home/vpopmail/domains/fasttrackmonkey.com/maildrop.log"
> log "="
> log "host - $USERHOST  name - $USERNAME pwd - $PWD"
>
> The result is:
>
> =
> host -   name -  pwd -
>
> That case does not work regardless of whether it's a catchall delivery or
> not...
>
> Charles
>
>



Re: [vchkpw] vpopmail & mysql

2003-08-14 Thread Charles Sprickman
On Thu, 14 Aug 2003, eLgino wrote:

> hi folks,
>
> does work vpopmail with MySQL 4.1.0? or only with version 3?

I've been running with 4.0.x with no problems.  4.1.x is not recommended
for production use though, as stated on the mysql.com website...

Charles

> thx
>
>
>



Re: [vchkpw] Re: Need advise on secondary mail server for backup purpose.

2003-08-14 Thread Kuan Yik
thanks for your guys information. But, with standard settings it should keep
trying for 5 days, then give up and which file I should configure if I want
to customize it?

- Original Message -
From: "Cream[DONut]" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 06, 2003 6:10 PM
Subject: Re: [vchkpw] Re: Need advise on secondary mail server for backup
purpose.


> At 18:05 06-08-2003 +0800, you wrote:
>
> >my mailserver1 has been configured properly and it is up and running
without
> >any problem. Just do not have the idea of setting up and backup mail
server.
>
> It isnt really a vpopmail issue, it is a Qmail issue.
>
> You put it in rcpthosts on mailserver2, that means it will recive mail for
> that domain, since it isnt in the local domains, or virtualdomains, it
cant
> deliver it locally, and will try to deliver it remotely.
> - with standard settings it should keep trying for 5 days, then give up
> - you dont need vpopmail installed, just a plain Qmail server
>
> (somebody please correct me if im wrong)
>
>
>
>




Re: [vchkpw] postgres

2003-08-14 Thread Tom Collins
On Monday, August 11, 2003, at 04:15  PM, VeNoMouS wrote:
erm 5.3.24?? the latest dev is 5.3.23, and when you --enable-postgres=y, vauth.c symlinks to voracle.c not vpgsql.c

The latest is 5.3.24 and includes a patch to fix that.

http://sourceforge.net/projects/vpopmail/

Hopefully Ken will update the Inter7 site soon to avoid future confusion related to new releases.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester


Re: [vchkpw] "vpopmail documentation initiative"

2003-08-14 Thread Ron Guerin
On Wed, 2003-08-13 at 17:23, Ajai Khattri wrote:

> Also, do you have an FAQ of some kind? (I haven't looked). We ought to 
> have some sort of cookbook will tried and proven solutions to common 
> scenarios...

Let's start one.  I'll get into the DocManager after business hours
today and see what we've got to work with.  I'm not sure what's
available in there yet.

- Ron





[vchkpw] Incredibly destructive chmod's in vpopmail's Makefile.am

2003-08-14 Thread Adam Hooper
Here's a snippet of vpopmail's Makefile.am (from line 106 in 5.3.23)


chmod 755 $(DESTDIR)@vpopmaildir@
chmod 755 $(DESTDIR)@vpopmaildir@/include
chmod 755 $(DESTDIR)@vpopmaildir@/etc
chmod 755 $(DESTDIR)@vpopmaildir@/doc
chmod 755 $(DESTDIR)@vpopmaildir@/doc/man_html
chmod 755 $(DESTDIR)@vpopmaildir@/doc/doc_html
chmod 755 $(DESTDIR)@vpopmaildir@/bin
chmod 700 $(DESTDIR)@vpopmaildir@/@domains_dir@
chmod 711 $(DESTDIR)@vpopmaildir@/bin/*
chmod 444 $(DESTDIR)@vpopmaildir@/include/*
chmod 444 $(DESTDIR)@vpopmaildir@/doc/doc_html/*

Can anyone besides me see the problem? To make vpopmail 
distribution-friendly, I symlinked /home/vpopmail/bin to /usr/sbin 
(where I feel the files belong in the first place). So everything in 
/usr/sbin is set to rwx--x--x. Because I installed qmail via my 
distribution's installation tool, its binaries are located in /usr/sbin.

Needless to say, the mail server was broken.

There is no good reason to change permissions on all these files anyway; 
just install them properly in the first place and there's no reason they 
would get changed (unless the sysadmin wanted them changed, for whatever 
reason).

The Makefile.am would be a lot simpler and less system-intrusive if it 
used the 'install' command instead of mkinstalldirs/cp/chown/chmod.

Would it be more helpful if I wrote up a patch for this? I have hardly 
any time for the next 3 weeks, but figured this issue ought to be 
brought to people's attention as soon as possible.

Adam Hooper
[EMAIL PROTECTED]



[vchkpw] wondering what I did wrong..

2003-08-14 Thread Brian
Hello,

vpopmail 5.3.20 from FreeBSD ports collection.  it *was* a cdb based 
setup and I've recently moved from cdb to mysql.  (it's much faster and 
went seemingly easy.. but)

[EMAIL PROTECTED] [~]# 11 > telnet localhost 110
Trying 127.0.0.1...
Connected to localhost
Escape character is '^]'.
+OK <[EMAIL PROTECTED]>
user user
+OK
pass pass
vmysql: sql error[3]: Table 'vpopmail.users' doesn't exist
-ERR authorization failed
Connection closed by foreign host.
and yes it's true the users table does not exist in the mysql vpopmail 
database, also when people with virtual domains try and login as 
postmaster from an alias'd domain it gives them a simmilar error.

This is what I have from a make configure:

   vpopmail 5.3.20
Current settings
---
vpopmail directory = /usr/local/vpopmail
   uid = 89
   gid = 89
  ip alias = OFF --enable-ip-alias-domains=n (default)
address extentions = ON  --enable-qmail-ext=y
rebuild tcpserver file = YES  --enable-rebuild-tcpserver-file=y (default)
 roaming users = ON  --enable-roaming-users=y
tcpserver file = /usr/local/vpopmail/etc/tcp.smtp
open_smtp file = /usr/local/vpopmail/etc/open-smtp
user quota = 1048576S -enable-hardquota=1048576S
 domain quotas = OFF --enable-domainquotas=n (default)
   auth module = mysql --enable-mysql=y
 mysql replication = OFF --enable-mysql-replication=n (default)
table optimization = one domain with many users --enable-many-domains=n
  system passwords = ON  --enable-passwd=y
  file locking = ON  --enable-file-locking=y (default)
 file sync = OFF --enable-file-sync=n disable vdelivermail fsync
 (default)
 make seekable = ON  --enable-make-seekable=y (default)
  auth logging = ON  --enable-auth-logging=y (default)
 mysql logging = ON  --enable-mysql-logging=y
  clear passwd = ON  --enable-clear-passwd=y (default)
 users big dir = ON  --enable-users-big-dir=y (default)
 valias processing = ON  --enable-valias=y
  mysql limits = OFF --enable-mysql-limits=n (default)
pop syslog = show failure attempts with clear text password
 --enable-logging=p
default domain =  --enable-default-domain=
  auth inc = -I/usr/local/include/mysql
  auth lib = -L/usr/local/lib/mysql  -lmysqlclient -lz
mysql> show tables;
++
| Tables_in_vpopmail |
++
| dir_control|
| lastauth   |
| limits |
| relay  |
| valias |
| vlog   |
++
this is a result of show tables; with my domains removed.  (there are 
about 45-50 of them)

Clues or suggestions would be -greatly- appreciated.








Re: [vchkpw] vadddomain issues

2003-08-14 Thread Tom Collins
On Wednesday, August 13, 2003, at 03:19  PM, David Gibbons wrote:
[EMAIL PROTECTED] [/var/qmail/vpop/bin] # ./vadddomain 
frenchclasses.com
Please enter password for postmaster:
enter password again:
Error: Unable to chdir to vpopmail/domains/domain directory

I've no idea where to trouble shoot this.. google is comming up empty 
of solutions/reasons.. i've triede reinstalling anyone have any 
ideas? i can provide more information obvious but i don't know else 
would be helpful
What version of vpopmail?  What were your configuration options?

What is the home directory of the vpopmail user on your server?  (grep 
vpopmail /etc/passwd)

vadddomain, on a default install, will try to create the domain as

~vpopmail/domains/frenchclasses.com

It appears that the home directory entry in /etc/passwd is incorrect.  
It hsould probably be something like "/home/vpopmail" or, in your case, 
"/var/qmail/vpop".

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] doublebounces non-.qmail-default | /var/vpopmail/bin/vdelivermail '' delete

2003-08-14 Thread Oden Eriksson
torsdagen den 14 augusti 2003 20.34 skrev Tom Walsh:
> Just put a comment in the .qmail or .qmail-username file... no need to
> invoke vdelivermail when you are going to throw it to /dev/null anyways...
>
> I have an account created on my mail server named null...
>
> in his .qmail file I have
>
> #
>
> nothing else...
>
> Has the same effect...

Beware that this does not seem to work 100% with vpopmail. Check the archives 
for a better answer.

As a side note, "#" is not like "/dev/null", but perhaps you knew that.





Re: [vchkpw] ETRN / serialmail-AUTOTURN with vpopmail - How to ?

2003-08-14 Thread Evren Yurtesen
I think you should explain what you did and where you failed and what is
going wrong etc. Now you cant expect us to write you a manual for this
only for you. At least nobody would do that for free only for one
person's benefit. Then again after all that work, you might say that you
still do not understand etc. So it is a difficult situation for all of us.
We do not know your exact problem. We can not tell you how to fix it.

We can guide you but you must go through the door yourself :)

Here is my qmail-smtpd run file which was working when I used serialmail
if it is any help. This was the most difficult part for me.
---
exec /usr/local/bin/tcpserver -p -R -x /usr/local/vpopmail/etc/tcp.smtp.cdb \
-u82 -g81 -v -c100 0 smtp \
  sh -c '
/var/qmail/bin/qmail-smtpd
cd /var/qmail/autoturn
exec setlock -nx $TCPREMOTEIP/seriallock \
maildirsmtp $TCPREMOTEIP autoturn-$TCPREMOTEIP- $TCPREMOTEIP AutoTURN
  ' \
`hostname --fqdn` /usr/local/vpopmail/bin/vchkpw /usr/bin/true 2>&1
---


On Tue, 5 Aug 2003, Devendra Singh wrote:

> At 04/08/03 06:27 (+0300), you wrote:
> 
> >Yes you can use serialmail for some domains and for some not
> >please just read the readme files which come with serialmail.
> >they have all the elaboration you need. I have made an excellent working
> >setup from the readme file in a few hours only. There was even a working
> >example if I remember right.
> >
> >Evren
> 
> Dear vpopmail experts,
> 
> I did read the "Readme" and "Install" many times. But could not understand 
> how to mix and match the Serialmail with vpopmail. I am not a qmail / 
> vpopmail guru.
> 
> If anyone has done this before, please help me out. But I was able to 
> configure VODMR (ATRN) and tested it working.
> 
> Thanks in anticipation.
> 
> Devendra Singh
> 




Re: [vchkpw] wondering what I did wrong..

2003-08-14 Thread Ajai Khattri
Brian wrote:

vpopmail 5.3.20 from FreeBSD ports collection.  it *was* a cdb based 
setup and I've recently moved from cdb to mysql.  (it's much faster 
and went seemingly easy.. but)

[EMAIL PROTECTED] [~]# 11 > telnet localhost 110
Trying 127.0.0.1...
Connected to localhost
Escape character is '^]'.
+OK <[EMAIL PROTECTED]>
user user
+OK
pass pass
vmysql: sql error[3]: Table 'vpopmail.users' doesn't exist
-ERR authorization failed
Connection closed by foreign host.
and yes it's true the users table does not exist in the mysql vpopmail 
database, also when people with virtual domains try and login as 
postmaster from an alias'd domain it gives them a simmilar error.

Did you convert all the accounts over to MySQL? I think there's a script 
to do that...

--
Aj.
Systems Administrator / Developer




Re: [vchkpw] Unknown column 'pw_name' in 'field list'

2003-08-14 Thread Alan Murrell
Hello,

> You should not have multiple domain tables in the
> database if you configure with
> --enable-many-domains=y

Yep, that was it.  I thought the
'--enable-many-domians=y' was the option to allow one
table to be created for each domain.  Once I
recompiled with the option set to 'n', it now works. 
Thank you!

Now to finish off the install of QMailadmin, etc. :-)

Alan


__ 
Post your free ad now! http://personals.yahoo.ca



Re: [vchkpw] Bug in 5.3.20

2003-08-14 Thread Michael Bowe
- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 06, 2003 6:30 AM
Subject: [vchkpw] Bug in 5.3.20


> After pulling my hair out attempting to figure out why password learning
> did not work, I looked at vchkpw.c to see what the problem was. It appears
> someone left a #ifdef FOOB write before password learning effectively
> disabling that feature. I simply removed the ifdef and recompiled and it
> worked. Just thought I should let someone know.

I have added information into to the sourceforge development tracking
system, so that it can be fixed in the next development release

Michael.




Re: [vchkpw] upgrading from mysql 3.23 to 4.x

2003-08-14 Thread Evren Yurtesen
well at least you should follow the instructions in mysql site to convert
your tables etc. I didnt do it but just read :) it is good to read.
so only install would perhaps work but they suggest you to convert, since
the old table formats will be absolute in 5.x version

On Mon, 11 Aug 2003, Paul Theodoropoulos wrote:

> has anyone made the migration with vpopmail from mysql 3.23 to 4.x? if so, 
> are there any 'gotchas', or is it as simple as installing the latest mysql 
> and restarting?
> 
> 
> Paul Theodoropoulos
> http://www.anastrophe.com
> 
> 
> 
> 




Re: [vchkpw] vpopmail (with MySQL & courier imap hack)

2003-08-14 Thread Evren Yurtesen
would you prefer to use smtp auth? which is actually better than using
these hacks? (at least from my point of view)
then there is some instructions hmm I use on FreeBSD too with mysql, I
made my installation in a log format. I can just give it to you

On Wed, 13 Aug 2003, eLgino wrote:

> Hi there,
> 
> I'm running qmail with vpopmail, courier imap/bla.
> It works nice under FreeBSD 4.8
> 
> But i have one problem i have compiled vpopmail WITHOUT mysql, and WITH a
> courier-imap hack see here:
> 
> THE HACK >> http://www.pofo.de/HOWTO/qmail/files/open_relay.c
> env VPOPMAILDIR=`pw usershow vpopmail | cut -f9 -d':'`/etc \
> /bin/sh -c 'gcc -o open_relay open_relay.c `cat $VPOPMAILDIR/inc_deps
> $VPOPMAILDIR/lib_deps` -lcrypt'
> install -o root -g wheel -m 755 open_relay /usr/local/bin/
> 
> its a smtp after imap/pop3 "hack"
> 
> but now i will deinstall vpopmail and install with MySQL support, but that
> its not the problem
> 
> 1. How can i delete the hack?
> 2. How can i setup the hack to work with vpopmail AND MySQL?
> 
> thanks in advance!
> 
> eLgino
> 
> PS: sorry for my poor english
> 
> 
> 




Re: [vchkpw] vpopmail & mysql

2003-08-14 Thread Rick Macdougall
Hi,

We use it with 4.x without a problem.

Regards,

Rick

eLgino wrote:

hi folks,

does work vpopmail with MySQL 4.1.0? or only with version 3?

thx

 





Re: [vchkpw] other fun vpopmail issues!

2003-08-14 Thread David Gibbons
Tom Walsh wrote:

::
::Okay on another note i'm having a boggling time getting the "Seekable"
::patch SpamAssassin wants to apply to vpopmail..
::it patches fine but then on compile i get.. this is on a newly untared
::vpopmail with only allow-roaming users=y set in the config.
::
::
::gcc -I. -Icdb -g -O2 -Wall -c seek.c
::seek.c:24: conflicting types for `lseek'
::/usr/include/stdio.h:278: previous declaration of `lseek'
::*** Error code 1
::
::
::has anyone else any idea what's going on? seems like vpopmail really
::doesn't like me this week.
David,

Which version of vpopmail are you applying this to?

It sounds like you are patching a version that already has the seekable
patch in it... I think it was added to the code base for all version after
5.3.7(?).
The patch is only needed if you want to use a version older than that.

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


 

vpopmail 5.2.1




RE: [vchkpw] Urgent - vchkpw/vpopmail authenticate even with wrong pw?

2003-08-14 Thread Shane Chrisp
What is your qmail-pop3d startup file look like? I am running
5.3.23 and have used learn passwords without problem.

Shane

-Original Message-
From: jeff thomas [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 14 August 2003 2:31 AM
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] Urgent - vchkpw/vpopmail authenticate 
even with wrong pw?


Ok...

What the hell ... I just compiled 5.3.24 WITHOUT
learn-passwords. Installed it. Restarted all mail
services. I can STILL log into any account with any
password.

Someone here must be able to shed some light on this
for me??  Please?


--- jeff thomas <[EMAIL PROTECTED]> wrote:
> Ok...
> 
> So, I just compiled 5.3.24 and installed it. I used
> the following configure line:
> 
> ./configure  --enable-qmaildir=/var/qmail
> --enable-tcprules-prog=/usr/local/bin/tcprules
> --enable-learn-passwords=y
>
--enable-tcpserver-file=/usr/home/vpopmail/etc/tcp.smtp
> --enable-defaultquota=1000 --enable-logging=e
> --enable-valias=y --enable-roaming-users=y
> --enable-relay-clear-minutes=30 --enable-mysql=y
> --enable-sqlincdir=/usr/local/include/mysql
> --enable-sqllibdir=/usr/local/lib/mysql
> --enable-default-domain=domain.com
> --enable-qmail-ext=y --prefix=/usr/home
> 
> 
> Same freaking problem. I can log into all of the
> accounts with any password. Thoughts?
> 
> 
> 
> --- jeff thomas <[EMAIL PROTECTED]> wrote:
> > Ok... I tried this fix. 
> > 
> > I edited vchkpw.c and removed the FOOB and ENDIF.
> > recompiled. 
> > 
> > No luck. Same thing. Any password I put in still
> > works.
> > 
> > Thoughts?
> > 
> > --- Michael Bowe <[EMAIL PROTECTED]> wrote:
> > > I just remembered that learn-passwords was
> broken
> > in
> > > 5.3.20, and then
> > > eventually fixed in 5.3.24
> > >
> >
>
http://sourceforge.net/tracker/index.php?func=detail&aid=783824&;
group_id=85937&atid=577798
> > > 
> > > Maybe this has something to do with your
> problem?
> > > 
> > > Michael.
> > > 
> > > - Original Message - 
> > > From: "jeff thomas" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, August 13, 2003 6:47 PM
> > > Subject: Re: [vchkpw] Urgent - vchkpw/vpopmail
> > > authenticate even with wrong
> > > pw?
> > > 
> > > 
> > > > Learn passwords was enabled. However, it
> should
> > > learn
> > > > only the FIRST password entered for each
> > > account
> > > > not multiple passwords for each account.
> > > >
> > > > Right?
> > > >
> > > > It would seem logical that with
> learn-passwords,
> > > the
> > > > first time i put in the password for
> [EMAIL PROTECTED],
> > it
> > > > "learns" that password. If I try to log into
> > > [EMAIL PROTECTED]
> > > > with a different password, I should be
> rejected,
> > > as it
> > > > "learned" the first password.
> > > >
> > > >
> > > >
> > > >
> > > > --- Michael Bowe <[EMAIL PROTECTED]>
> wrote:
> > > > > I could be barking up the wrong tree here
> > but...
> > > > >
> > > > > Perhaps did you configure vpopmail to "learn
> > > > > passwords" ?
> > > > >
> > > > > It rings a bell for me that if you upgrade
> > from
> > > an
> > > > > v4.x vpopmail, and you
> > > > > enable clear passwords in your v5.2
> vpopmail,
> > > you
> > > > > loose all your existing
> > > > > passwords and the general way to recover
> from
> > > this
> > > > > is to enable vpopmail's
> > > > > "learn passwords" functionality
> > > > >
> > > > > This could explain why "any password works".
> > But
> > > > > then again, once the
> > > > > password has been learned, you shouldn't be
> > able
> > > to
> > > > > go back and use some
> > > > > other password and still get access
> > > > >
> > > > > Michael.
> > > > >
> > > > >
> > > > > - Original Message - 
> > > > > From: "jeff thomas" <[EMAIL PROTECTED]>
> > > > > To: <[EMAIL PROTECTED]>
> > > > > Sent: Wednesday, August 13, 2003 10:15 AM
> > > > > Subject: [vchkpw] Urgent - vchkpw/vpopmail
> > > > > authenticate even with wrong pw?
> > > > >
> > > > >
> > > > > > Hello -
> > > > > >
> > > > > > I recently installed vpopmail 5.3.20 from
> > > freebsd
> > > > > > ports. I used Matt Simerson's FreeBSD
> Qmail
> > > > > Toaster
> > > > > > scripts to install it (it uses ports).
> > > > > >
> > > > > >
> > > > > > That installed without problem. I
> installed
> > > > > > courier-imap and squirrelmail as well as
> > > > > sqwebmail. I
> > > > > > noticed today that I can log into any of
> the
> > > > > accounts
> > > > > > via sqwebmail with any password. I can
> > > literally
> > > > > put
> > > > > > in "xxx" for the password on my e-mail
> > account
> > > and
> > > > > it
> > > > > > will let me in. I tried it on squirrelmail
> > > with
> > > > > the
> > > > > > same problem. So, then I tried simply
> > logging
> > > into
> > > > > the
> > > > > > POP3 account with "xyz" as the password.
> It,
> > > too,
> > > > > let
> > > > > > me in with full access.
> > > > > >
> > > > > > This is bad - obviously. Anyone care to
> shed
> > > some
> > > > > > light on what I need to do to get this
> fi

Re: [vchkpw] Urgent - vchkpw/vpopmail authenticate even with wrong pw?

2003-08-14 Thread jeff thomas
Ok... I tried this fix. 

I edited vchkpw.c and removed the FOOB and ENDIF.
recompiled. 

No luck. Same thing. Any password I put in still
works.

Thoughts?

--- Michael Bowe <[EMAIL PROTECTED]> wrote:
> I just remembered that learn-passwords was broken in
> 5.3.20, and then
> eventually fixed in 5.3.24
>
http://sourceforge.net/tracker/index.php?func=detail&aid=783824&group_id=85937&atid=577798
> 
> Maybe this has something to do with your problem?
> 
> Michael.
> 
> - Original Message - 
> From: "jeff thomas" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, August 13, 2003 6:47 PM
> Subject: Re: [vchkpw] Urgent - vchkpw/vpopmail
> authenticate even with wrong
> pw?
> 
> 
> > Learn passwords was enabled. However, it should
> learn
> > only the FIRST password entered for each
> account
> > not multiple passwords for each account.
> >
> > Right?
> >
> > It would seem logical that with learn-passwords,
> the
> > first time i put in the password for [EMAIL PROTECTED], it
> > "learns" that password. If I try to log into
> [EMAIL PROTECTED]
> > with a different password, I should be rejected,
> as it
> > "learned" the first password.
> >
> >
> >
> >
> > --- Michael Bowe <[EMAIL PROTECTED]> wrote:
> > > I could be barking up the wrong tree here but...
> > >
> > > Perhaps did you configure vpopmail to "learn
> > > passwords" ?
> > >
> > > It rings a bell for me that if you upgrade from
> an
> > > v4.x vpopmail, and you
> > > enable clear passwords in your v5.2 vpopmail,
> you
> > > loose all your existing
> > > passwords and the general way to recover from
> this
> > > is to enable vpopmail's
> > > "learn passwords" functionality
> > >
> > > This could explain why "any password works". But
> > > then again, once the
> > > password has been learned, you shouldn't be able
> to
> > > go back and use some
> > > other password and still get access
> > >
> > > Michael.
> > >
> > >
> > > - Original Message - 
> > > From: "jeff thomas" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, August 13, 2003 10:15 AM
> > > Subject: [vchkpw] Urgent - vchkpw/vpopmail
> > > authenticate even with wrong pw?
> > >
> > >
> > > > Hello -
> > > >
> > > > I recently installed vpopmail 5.3.20 from
> freebsd
> > > > ports. I used Matt Simerson's FreeBSD Qmail
> > > Toaster
> > > > scripts to install it (it uses ports).
> > > >
> > > >
> > > > That installed without problem. I installed
> > > > courier-imap and squirrelmail as well as
> > > sqwebmail. I
> > > > noticed today that I can log into any of the
> > > accounts
> > > > via sqwebmail with any password. I can
> literally
> > > put
> > > > in "xxx" for the password on my e-mail account
> and
> > > it
> > > > will let me in. I tried it on squirrelmail
> with
> > > the
> > > > same problem. So, then I tried simply logging
> into
> > > the
> > > > POP3 account with "xyz" as the password. It,
> too,
> > > let
> > > > me in with full access.
> > > >
> > > > This is bad - obviously. Anyone care to shed
> some
> > > > light on what I need to do to get this fixed
> ASAP.
> > > I
> > > > upgraded from 4.9.x and use mysql4 for
> > > authentication.
> > > >
> > > > Any and all help is appreciated.
> > > >
> > > > __
> > > > Do you Yahoo!?
> > > > Yahoo! SiteBuilder - Free, easy-to-use web
> site
> > > design software
> > > > http://sitebuilder.yahoo.com
> > > >
> > > >
> > >
> > >
> >
> >
> > __
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> > http://sitebuilder.yahoo.com
> >
> >
> 
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com



[vchkpw] .qmail

2003-08-14 Thread Flavio Caetano
Hi... I have the following problem

if I create a .qmail file under /home/vpopmail/domains/teste.com/teste that 
cointains "&[EMAIL PROTECTED]" this redir doesn't work

but if I create a .qmail-teste under /home/vpopmail/domains/teste.com that 
cointains "&[EMAIL PROTECTED]" the redir works well!


my configuration:

qmail + vpopmail (5.3.24)






Re: [vchkpw] Detailed installation instructions on FreeBSD - attached

2003-08-14 Thread eLgino
"Evren Yurtesen" <[EMAIL PROTECTED]>

HI thank you very much but what your are meaning with:

/var/qmail/supervise/qmail-smtp/run text with serialmail...


exec /usr/local/bin/tcpserver -p -R -x /usr/local/vpopmail/etc/tcp.smtp.cdb
\
-u82 -g81 -v -c100 0 smtp \
  sh -c '
/var/qmail/bin/qmail-smtpd
cd /var/qmail/autoturn
exec setlock -nx $TCPREMOTEIP/seriallock \
maildirsmtp $TCPREMOTEIP autoturn-$TCPREMOTEIP- $TCPREMOTEIP
AutoTURN
  ' \
`hostname --fqdn` /usr/local/scripts/vpopmail/vchkpw /usr/bin/true 2>&1



/var/qmail/supervise/qmail-smtp/run text with rblsmtpd...


#!/bin/sh
exec /usr/local/bin/tcpserver -p -R -x /usr/local/vpopmail/etc/tcp.smtp.cdb
\
-u82 -g81 -v -c100 0 smtp /usr/local/bin/rblsmtpd \
-r bl.spamcop.net \
-r sbl.spamhaus.net \
/var/qmail/bin/qmail-smtpd \
`hostname --fqdn` /usr/local/scripts/vpopmail/vchkpw /usr/bin/true 2>&1

with serialmail... / with rblsmtpd ??? whats that?

and what you are meaning of



Now copy the envconv program to each directory

envconv text...


#!/usr/bin/perl

# written by Jonas Pasche
# enhanced by Matthias Andree

while () {
  if( $_ =~ /^([^#][^=]+)=(.*)/) {
$name=$1;
unlink "$name";
open (F, ">$name") or die "Cannot open $name: $!";
$value = $2;
if( $value =~ /^"(.*)"$/ ) {
  $x=$1;
} else {
  $x=$value;
}
while ($x =~ m/\$(\S+)/ && $vars{$1}) {
$y = $1;
$x =~ s/\$$y/$vars{$y}/;
}
$vars{$name}=$x;
print F $x or die "Cannot write to $1: $!";
close (F) or die "Cannot close $1: $!";
  }
}



where to copy the programm/script/tool what ever? to what directories, thank
you very much!


- Original Message -
From: "Evren Yurtesen" <[EMAIL PROTECTED]>
To: "Shane Chrisp" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; "eLgino" <[EMAIL PROTECTED]>
Sent: Wednesday, August 13, 2003 7:34 PM
Subject: [vchkpw] Detailed installation instructions on FreeBSD - attached


> Here is the detailed installation instructions from my own installation on
> FreeBSD!
>
> Now for the people who has trouble, I will help as much as I can if there
> are problems in these instructions.
>
> I also think that this might be included in vpopmail distribution. I came
> to 0.0.6 version of this document while fixing the mistakes in it though
> :) I am almost certain that I eliminated all the mistakes I did.
>
> Now my mail server has been working for 1 month with 8000 thousand users
> and 600 domains. I know its not much but a good test platform. Nobody
> complained about anything so far.
>
> The document contains, installation of
> vpopmail, qmailadmin, vqadmin, courier-imap, qmailmrtg, isoqlog,
> smtp-auth-tls, blah blah :)
>
> Evren
>




Re: [vchkpw] postgres

2003-08-14 Thread VeNoMouS



you are indeed correct just read the 
changelog.
 
Charles Boening- Update configure.in to work 
for pgsql compiles.- Add --enable-pgsql-logging configure option.- Add 
vauth_crypt() to vpgsql.c.
 
cheers

  - Original Message - 
  From: 
  Tom Collins 

  To: vpopmail list 
  Cc: Ken Jones 
  Sent: Tuesday, August 12, 2003 11:25 
  AM
  Subject: Re: [vchkpw] postgres
  On Monday, August 11, 2003, at 04:15 PM, VeNoMouS wrote:
  erm 5.3.24?? the latest dev 
is 5.3.23, and when you --enable-postgres=y, vauth.c symlinks to voracle.c 
not vpgsql.cThe latest is 5.3.24 
  and includes a patch to fix that.http://sourceforge.net/projects/vpopmail/Hopefully 
  Ken will update the Inter7 site soon to avoid future confusion related to new 
  releases.--Tom Collins[EMAIL PROTECTED]http://sniffter.com/ - 
  info on the Sniffter hand-held Network 
Tester


Re: [vchkpw] wondering what I did wrong..

2003-08-14 Thread Evren Yurtesen
You have vpopmail set as one domain with many users
--enable-many-domains=n
then you shouldnt have users table if I am not mistaken.

But yet vchkpw should know this I wonder if you have an older version
somehow from somewhere? I use vpopmail with FreeBSD too and it works fine.
Although I am using many domains approach. Although I would suggest that
you should use many domains if you at least have more than 1 domain and
you dont have like 10 users in each :)

Evren

On Fri, 8 Aug 2003, Brian wrote:

> Hello,
> 
> vpopmail 5.3.20 from FreeBSD ports collection.  it *was* a cdb based 
> setup and I've recently moved from cdb to mysql.  (it's much faster and 
> went seemingly easy.. but)
> 
> [EMAIL PROTECTED] [~]# 11 > telnet localhost 110
> Trying 127.0.0.1...
> Connected to localhost
> Escape character is '^]'.
> +OK <[EMAIL PROTECTED]>
> user user
> +OK
> pass pass
> vmysql: sql error[3]: Table 'vpopmail.users' doesn't exist
> -ERR authorization failed
> Connection closed by foreign host.
> 
> and yes it's true the users table does not exist in the mysql vpopmail 
> database, also when people with virtual domains try and login as 
> postmaster from an alias'd domain it gives them a simmilar error.
> 
> This is what I have from a make configure:
> 
> vpopmail 5.3.20
>  Current settings
> ---
> 
> vpopmail directory = /usr/local/vpopmail
> uid = 89
> gid = 89
>ip alias = OFF --enable-ip-alias-domains=n (default)
> address extentions = ON  --enable-qmail-ext=y
> rebuild tcpserver file = YES  --enable-rebuild-tcpserver-file=y (default)
>   roaming users = ON  --enable-roaming-users=y
>  tcpserver file = /usr/local/vpopmail/etc/tcp.smtp
>  open_smtp file = /usr/local/vpopmail/etc/open-smtp
>  user quota = 1048576S -enable-hardquota=1048576S
>   domain quotas = OFF --enable-domainquotas=n (default)
> auth module = mysql --enable-mysql=y
>   mysql replication = OFF --enable-mysql-replication=n (default)
> table optimization = one domain with many users --enable-many-domains=n
>system passwords = ON  --enable-passwd=y
>file locking = ON  --enable-file-locking=y (default)
>   file sync = OFF --enable-file-sync=n disable vdelivermail fsync
>   (default)
>   make seekable = ON  --enable-make-seekable=y (default)
>auth logging = ON  --enable-auth-logging=y (default)
>   mysql logging = ON  --enable-mysql-logging=y
>clear passwd = ON  --enable-clear-passwd=y (default)
>   users big dir = ON  --enable-users-big-dir=y (default)
>   valias processing = ON  --enable-valias=y
>mysql limits = OFF --enable-mysql-limits=n (default)
>  pop syslog = show failure attempts with clear text password
>   --enable-logging=p
>  default domain =  --enable-default-domain=
>auth inc = -I/usr/local/include/mysql
>auth lib = -L/usr/local/lib/mysql  -lmysqlclient -lz
> 
> mysql> show tables;
> ++
> | Tables_in_vpopmail |
> ++
> | dir_control|
> | lastauth   |
> | limits |
> | relay  |
> | valias |
> | vlog   |
> ++
> 
> this is a result of show tables; with my domains removed.  (there are 
> about 45-50 of them)
> 
> Clues or suggestions would be -greatly- appreciated.
> 
> 
> 
> 
> 
> 
> 




Re: [vchkpw] is there a max user quota value?

2003-08-14 Thread Tom Collins
On Tuesday, August 12, 2003, at 08:04  AM, Benjamin Tomhave wrote:
Is there currently a max user quota value?  I have an employee who has
temporarily boosted their account quota to 5G (very excessive) in 
order to
transfer their mail from Outlook to Evolution via IMAP.  Running 
vuserinfo
indicates the correct quota size and says only 7% used, but 
courier-imap is
blocking the transfer and reporting that the user has exceeded quota.  
I was
wondering if something might be broken in an API that the quota info is
being misreported to courier-imap?
Why not just temporarily set it to NOQUOTA?

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] Urgent - vchkpw/vpopmail authenticate even with wrong pw?

2003-08-14 Thread Michael Bowe
I just remembered that learn-passwords was broken in 5.3.20, and then
eventually fixed in 5.3.24
http://sourceforge.net/tracker/index.php?func=detail&aid=783824&group_id=85937&atid=577798

Maybe this has something to do with your problem?

Michael.

- Original Message - 
From: "jeff thomas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 13, 2003 6:47 PM
Subject: Re: [vchkpw] Urgent - vchkpw/vpopmail authenticate even with wrong
pw?


> Learn passwords was enabled. However, it should learn
> only the FIRST password entered for each account
> not multiple passwords for each account.
>
> Right?
>
> It would seem logical that with learn-passwords, the
> first time i put in the password for [EMAIL PROTECTED], it
> "learns" that password. If I try to log into [EMAIL PROTECTED]
> with a different password, I should be rejected, as it
> "learned" the first password.
>
>
>
>
> --- Michael Bowe <[EMAIL PROTECTED]> wrote:
> > I could be barking up the wrong tree here but...
> >
> > Perhaps did you configure vpopmail to "learn
> > passwords" ?
> >
> > It rings a bell for me that if you upgrade from an
> > v4.x vpopmail, and you
> > enable clear passwords in your v5.2 vpopmail, you
> > loose all your existing
> > passwords and the general way to recover from this
> > is to enable vpopmail's
> > "learn passwords" functionality
> >
> > This could explain why "any password works". But
> > then again, once the
> > password has been learned, you shouldn't be able to
> > go back and use some
> > other password and still get access
> >
> > Michael.
> >
> >
> > - Original Message - 
> > From: "jeff thomas" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, August 13, 2003 10:15 AM
> > Subject: [vchkpw] Urgent - vchkpw/vpopmail
> > authenticate even with wrong pw?
> >
> >
> > > Hello -
> > >
> > > I recently installed vpopmail 5.3.20 from freebsd
> > > ports. I used Matt Simerson's FreeBSD Qmail
> > Toaster
> > > scripts to install it (it uses ports).
> > >
> > >
> > > That installed without problem. I installed
> > > courier-imap and squirrelmail as well as
> > sqwebmail. I
> > > noticed today that I can log into any of the
> > accounts
> > > via sqwebmail with any password. I can literally
> > put
> > > in "xxx" for the password on my e-mail account and
> > it
> > > will let me in. I tried it on squirrelmail with
> > the
> > > same problem. So, then I tried simply logging into
> > the
> > > POP3 account with "xyz" as the password. It, too,
> > let
> > > me in with full access.
> > >
> > > This is bad - obviously. Anyone care to shed some
> > > light on what I need to do to get this fixed ASAP.
> > I
> > > upgraded from 4.9.x and use mysql4 for
> > authentication.
> > >
> > > Any and all help is appreciated.
> > >
> > > __
> > > Do you Yahoo!?
> > > Yahoo! SiteBuilder - Free, easy-to-use web site
> > design software
> > > http://sitebuilder.yahoo.com
> > >
> > >
> >
> >
>
>
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>
>




Re: [vchkpw] Sorry,_no_mailbox_here_by_that_name

2003-08-14 Thread Mike Robin Haller
Hello

i finally got the problem. i tried to delete and re-add another domain
with a "-" in it. and it worked. under the new version of vpopmail. so
it was not that problem.

i then thought about, what the heck is the difference between
haller-systemservice.net and all the others? sure, it is my main /
master domain. it was in all defaultdomain and me-files. so i removed
all entries from these files, except for localhost.

now it works.



main:/var/qmail/control # cat defaultdomain
localhost
main:/var/qmail/control # cat plusdomain
localhost
main:/var/qmail/control # cat me
localhost
main:/var/qmail/control # cat helohost
localhost
main:/var/qmail/control #


main:/var/qmail/control # /etc/init.d/init.d/qmail restart
Restarting qmail:
* Stopping qmail-smtpd.
* Sending qmail-send SIGTERM and restarting.
* Restarting qmail-smtpd.


main:/var/qmail/control # grep systemservice.net *
rcpthosts:haller-systemservice.net
virtualdomains:haller-systemservice.net:haller-systemservice.net


before the removal, there were several entries in the plusdomain,
defaultdomain, me and helohost files with
"main.haller-systemservice.net" or "haller-systemservice.net" because
this is the fqdn of the server. after removing the whole bunch, it
works. it was not a problem of permissions or with vpopmail.


MRH> Hi vpopmail mailing list,

MRH> i have this problem and i hope someone can help me fast, because after
MRH> an update to 5.3.23, i cannot add any domains.
MRH> vadddomain always crashed with an segmentation fault. i debugged it
MRH> and the segfaults were caused by two free(in_domain) and another
MRH> free(..). i commented them out and recompiled, so i could create the
MRH> necc. domain directories.

MRH> NOW the problem is, that he does not seem to recognize the directory.
MRH> i can add successfully the domain with
MRH> /home/vpopmail/bin/vadddomain haller-systemservice.net SECRETPW

MRH> i can also get the infos:

MRH> --
MRH> main:/home/vpopmail/domains/haller-systemservice.net # 
/home/vpopmail/bin/vuserinfo [EMAIL PROTECTED]
MRH> name:   info
MRH> passwd: $1$fJye;$2x5VjC3f4XGvatfafLffx.
MRH> clear passwd: SECRETPW
MRH> uid:1
MRH> gid:0
MRH> gecos: info
MRH> all services available
MRH> dir:   /home/vpopmail/domains/haller-systemservice.net/info
MRH> quota: 1S,1000C
MRH> usage: 0%
MRH> last auth: Mon Aug 11 20:03:38 2003
MRH> last auth ip: 217.230.89.187
MRH> --


MRH> but the mail to [EMAIL PROTECTED] gets always bounces:


MRH> --
MRH> @40003f37d9503b11ece4 new msg 66136
MRH> @40003f37d9503b120c24 info msg 66136: bytes 1137 from <[EMAIL PROTECTED]> qp 
10859 uid 502
MRH> @40003f37d9503b8a8014 starting delivery 165: msg 66136 to local [EMAIL 
PROTECTED]
MRH> @40003f37d9503b8a9f54 status: local 1/10 remote 0/20
MRH> @40003f37d9503b8aa33c delivery 165: failure: 
Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/
MRH> @40003f37d9503b8aab0c status: local 0/10 remote 0/20
MRH> @40003f37d9510048f1d4 bounce msg 66136 qp 10862
MRH> @40003f37d95100490d2c end msg 66136
MRH> --


MRH> i have another domain haller-systemservice.de which i created before
MRH> the update. this domain works fine.
MRH> i checked the file permissions on the files in the directory
MRH> /home/vpopmail/domains/haller-systemservice.net/ with the same files
MRH> in the directory
MRH> /home/vpopmail/domains/haller-systemservice.de/
MRH> they are the same, but it does not work. please help



MRH> main:/ # ll /home/vpopmail/domains/haller-systemservice.net
MRH> total 17
MRH> drwxr-xr-x4 vpopmail vchkpw256 Aug 11 19:27 .
MRH> drwxr-xr-x   17 vpopmail vchkpw640 Aug 11 19:12 ..
MRH> -rw-r--r--1 vpopmail vchkpw 34 Aug 11 19:27 .dir-control
MRH> -rwxr-xr-x1 vpopmail vchkpw 69 Aug 11 19:58 .qmail-default
MRH> -rw-r-xr-x1 vpopmail vchkpw  0 Aug 11 19:27 .vpasswd.lock
MRH> drwxr-xr-x3 vpopmail vchkpw 96 Aug 11 19:27 info
MRH> drwxr-xr-x3 vpopmail vchkpw 96 Aug 11 19:12 postmaster
MRH> -rw-r-xr-x1 vpopmail vchkpw264 Aug 11 19:27 vpasswd
MRH> -rw-r-xr-x1 vpopmail vchkpw   2356 Aug 11 19:27 vpasswd.cdb
MRH> main:/ # ll /home/vpopmail/domains/haller-systemservice.de
MRH> total 17
MRH> drwxr-xr-x5 vpopmail vchkpw288 Aug 11 17:21 .
MRH> drwxr-xr-x   17 vpopmail vchkpw640 Aug 11 19:12 ..
MRH> -rw-r--r--1 vpopmail vchkpw 34 Aug 11 17:21 .dir-control
MRH> -rw-r-xr-x1 vpopmail vchkpw 96 Aug 11 16:10 .qmail-default
MRH> drwx--xr-x2 vpopmail vchkpw176 Aug  6 19:57 .spamassassin
MRH> -rw-r-xr-x1 vpopmail vchkpw  0 Mar 12 21:09 .vpasswd.lock
MRH> drwxr-xr-x3 vpopmai

Re: [vchkpw] configure --enable-mysql=y error : help a noob please?

2003-08-14 Thread Japheth Cleaver
I believe the proper values are something like:
 --enable-incdir=/usr/include/mysql
 --enable-libdir=/usr/lib/mysql
At least, those are where things are and what works on a RH9 + mysql.com 
rpms system

Japheth Cleaver
[EMAIL PROTECTED]
At 12:19 AM 8/6/2003 +, jon kutassy wrote:
Im trying to set up vpopmail +mysql + qmail on redhat 9

I believe I've read the relevent docs, and searched the web :

when i run ./configure --enable-mysql=y

I get this error:

configure: error: unable to find your inc dir, specify --enable-incdir

Now I'd love to be able to do this, but Im not sure what one is...

Regards

Jon





[vchkpw] How to create a qmail user

2003-08-14 Thread eslatino



I want to know how to create a user who can send 
and receive mail (via email client).
 
Thanks


[vchkpw] Is the list broken

2003-08-14 Thread John Johnson



 I have not gotten anymail from this list in a 
few days is it broken?
 
-John
 


Re: [vchkpw] Detailed installation instructions on FreeBSD - attached

2003-08-14 Thread Evren Yurtesen
I dont understand, the file name is written just above the line
/var/qmail/supervise/qmail-smtp/run
which means inside this file, the text between  must be
if you dont know what is serialmail, just use the rblsmtpd one.

Evren

On Wed, 13 Aug 2003, eLgino wrote:

> "Evren Yurtesen" <[EMAIL PROTECTED]>
> 
> HI thank you very much but what your are meaning with:
> 
> /var/qmail/supervise/qmail-smtp/run text with serialmail...
> 
> 
> exec /usr/local/bin/tcpserver -p -R -x /usr/local/vpopmail/etc/tcp.smtp.cdb
> \
> -u82 -g81 -v -c100 0 smtp \
>   sh -c '
> /var/qmail/bin/qmail-smtpd
> cd /var/qmail/autoturn
> exec setlock -nx $TCPREMOTEIP/seriallock \
> maildirsmtp $TCPREMOTEIP autoturn-$TCPREMOTEIP- $TCPREMOTEIP
> AutoTURN
>   ' \
> `hostname --fqdn` /usr/local/scripts/vpopmail/vchkpw /usr/bin/true 2>&1
> 
> 
> 
> /var/qmail/supervise/qmail-smtp/run text with rblsmtpd...
> 
> 
> #!/bin/sh
> exec /usr/local/bin/tcpserver -p -R -x /usr/local/vpopmail/etc/tcp.smtp.cdb
> \
> -u82 -g81 -v -c100 0 smtp /usr/local/bin/rblsmtpd \
> -r bl.spamcop.net \
> -r sbl.spamhaus.net \
> /var/qmail/bin/qmail-smtpd \
> `hostname --fqdn` /usr/local/scripts/vpopmail/vchkpw /usr/bin/true 2>&1
> 
> with serialmail... / with rblsmtpd ??? whats that?
> 
> and what you are meaning of
> 
> 
> 
> Now copy the envconv program to each directory
> 
> envconv text...
> 
> 
> #!/usr/bin/perl
> 
> # written by Jonas Pasche
> # enhanced by Matthias Andree
> 
> while () {
>   if( $_ =~ /^([^#][^=]+)=(.*)/) {
> $name=$1;
> unlink "$name";
> open (F, ">$name") or die "Cannot open $name: $!";
> $value = $2;
> if( $value =~ /^"(.*)"$/ ) {
>   $x=$1;
> } else {
>   $x=$value;
> }
> while ($x =~ m/\$(\S+)/ && $vars{$1}) {
> $y = $1;
> $x =~ s/\$$y/$vars{$y}/;
> }
> $vars{$name}=$x;
> print F $x or die "Cannot write to $1: $!";
> close (F) or die "Cannot close $1: $!";
>   }
> }
> 
> 
> 
> where to copy the programm/script/tool what ever? to what directories, thank
> you very much!
> 
> 
> - Original Message -
> From: "Evren Yurtesen" <[EMAIL PROTECTED]>
> To: "Shane Chrisp" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>; "eLgino" <[EMAIL PROTECTED]>
> Sent: Wednesday, August 13, 2003 7:34 PM
> Subject: [vchkpw] Detailed installation instructions on FreeBSD - attached
> 
> 
> > Here is the detailed installation instructions from my own installation on
> > FreeBSD!
> >
> > Now for the people who has trouble, I will help as much as I can if there
> > are problems in these instructions.
> >
> > I also think that this might be included in vpopmail distribution. I came
> > to 0.0.6 version of this document while fixing the mistakes in it though
> > :) I am almost certain that I eliminated all the mistakes I did.
> >
> > Now my mail server has been working for 1 month with 8000 thousand users
> > and 600 domains. I know its not much but a good test platform. Nobody
> > complained about anything so far.
> >
> > The document contains, installation of
> > vpopmail, qmailadmin, vqadmin, courier-imap, qmailmrtg, isoqlog,
> > smtp-auth-tls, blah blah :)
> >
> > Evren
> >
> 
> 
> 




[vchkpw] Re: Need advise on secondary mail server for backup purpose.

2003-08-14 Thread Sérgio Manuel Rosa
Hi,
yes that's correct. I'm not shure about the time that the backup server will 
hang on to the message. 

I've a backup mail server with only qmail running, with my domains in 
rcpthosts, and it will receive all mail when mail1 is down ou loaded, then 
it will try to send the mail it is holding to mal1. nothing special on the 
second server.
That simple. :-) 

Cream[DONut] writes: 

At 18:05 06-08-2003 +0800, you wrote: 

my mailserver1 has been configured properly and it is up and running 
without
any problem. Just do not have the idea of setting up and backup mail 
server.
It isnt really a vpopmail issue, it is a Qmail issue. 

You put it in rcpthosts on mailserver2, that means it will recive mail for 
that domain, since it isnt in the local domains, or virtualdomains, it 
cant deliver it locally, and will try to deliver it remotely.
- with standard settings it should keep trying for 5 days, then give up
- you dont need vpopmail installed, just a plain Qmail server 

(somebody please correct me if im wrong)  


regards
srosa 




Re: [vchkpw] Unknown column 'pw_name' in 'field list'

2003-08-14 Thread Michael Bowe
Hi Alan

You should not have multiple domain tables in the database if you configure
with --enable-many-domains=y

Did you perhaps configure/make originally with --enable-many-domains=n, and
then swap over to --enable-many-domains=y ?

Could be some left over config hanging around...
If in doubt, I would recommend you do these steps :

 delete your existing vpopmail source dir
  untar
  setup your vmysql.h
  re-run configure (checking that you are using the
desired --enable-many-domains)
  make
  make install-strip

Then dont forget you have to recompile any add-on apps that use the vpopmail
libraries, eg qmailadmin, courier-imap

Also, you could compare your config against my guide :

"A QUICK GUIDE TO VPOPMAIL WITH MYSQL"
http://www.pipeline.com.au/staff/mbowe/isp/vpopmail-mysql.htm

Michael.

- Original Message - 
From: "Alan Murrell" <[EMAIL PROTECTED]>
To: "Vpopmail Users List" <[EMAIL PROTECTED]>
Sent: Monday, August 11, 2003 2:18 PM
Subject: [vchkpw] Unknown column 'pw_name' in 'field list'


> Hello,
>
>   Mandrake 9.1
>   Qmail 1.03
>   Vpopmail 5.3.24
>
> I am setting up a new server with the latest (devel)
> version of vpopmail, using MySQL as the backend.  I
> edited vmysql to point to the database server, and
> have confirmed that the (MySQL) username and password
> work by authenticating from the mail server to the
> MySQL server using the 'mysql' program.
>
> However, when I test POP authentication via telnet, I
> get the following error:
>
> --- CUT HERE ---
> [EMAIL PROTECTED] vpopmail-5.3.24]# telnet localhost 110
> Trying 127.0.0.1...
> Connected to localhost (127.0.0.1).
> Escape character is '^]'.
> +OK <[EMAIL PROTECTED]>
> user alan
> +OK
> pass bofh123
> vmysql: sql error[3]: Unknown column 'pw_name' in
> 'field list'
> -ERR authorization failed
> Connection closed by foreign host.
> --- CUT HERE ---
>
> I have checked several of the domain tables in the
> database, and they do indeed have the 'pw_name'
> column, and it appears to be defined in the 'vmysql.h'
> file.  The README.mysql file does not shed any light
> on this.
>
> I was wondering if anyone here would be able to shed
> some light on this, and let me know what I appear to
> have done wrong?
>
> In case it is relevent, my vpopmail configuration
> looks like this:
>
> --- CUT HERE ---
> ./configure --enable-tcprules-prog=/usr/bin/tcprules \
>   --enable-tcpserverfile=/etc/tcp.smtp \
>   --enable-clear-passwd=y \
>   --enable-mysql=y \
>   --enable-valias=y \
>   --enable-file-locking=y \
>   --enable-many-domains=y \
>   --enable-defaultquota=25214400S,1000C \
>   --enable-domainquotas=y
> --- CUT HERE ---
>
> TIA for your help and insight.
>
> Alan Murrell <[EMAIL PROTECTED]>
>
>
> __
> Post your free ad now! http://personals.yahoo.ca
>
>




Re: [vchkpw] Urgent - vchkpw/vpopmail authenticate even with wrong pw?

2003-08-14 Thread jeff thomas
Ok...

What the hell ... I just compiled 5.3.24 WITHOUT
learn-passwords. Installed it. Restarted all mail
services. I can STILL log into any account with any
password.

Someone here must be able to shed some light on this
for me??  Please?


--- jeff thomas <[EMAIL PROTECTED]> wrote:
> Ok...
> 
> So, I just compiled 5.3.24 and installed it. I used
> the following configure line:
> 
> ./configure  --enable-qmaildir=/var/qmail
> --enable-tcprules-prog=/usr/local/bin/tcprules
> --enable-learn-passwords=y
>
--enable-tcpserver-file=/usr/home/vpopmail/etc/tcp.smtp
> --enable-defaultquota=1000 --enable-logging=e
> --enable-valias=y --enable-roaming-users=y
> --enable-relay-clear-minutes=30 --enable-mysql=y
> --enable-sqlincdir=/usr/local/include/mysql
> --enable-sqllibdir=/usr/local/lib/mysql
> --enable-default-domain=domain.com
> --enable-qmail-ext=y --prefix=/usr/home
> 
> 
> Same freaking problem. I can log into all of the
> accounts with any password. Thoughts?
> 
> 
> 
> --- jeff thomas <[EMAIL PROTECTED]> wrote:
> > Ok... I tried this fix. 
> > 
> > I edited vchkpw.c and removed the FOOB and ENDIF.
> > recompiled. 
> > 
> > No luck. Same thing. Any password I put in still
> > works.
> > 
> > Thoughts?
> > 
> > --- Michael Bowe <[EMAIL PROTECTED]> wrote:
> > > I just remembered that learn-passwords was
> broken
> > in
> > > 5.3.20, and then
> > > eventually fixed in 5.3.24
> > >
> >
>
http://sourceforge.net/tracker/index.php?func=detail&aid=783824&group_id=85937&atid=577798
> > > 
> > > Maybe this has something to do with your
> problem?
> > > 
> > > Michael.
> > > 
> > > - Original Message - 
> > > From: "jeff thomas" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, August 13, 2003 6:47 PM
> > > Subject: Re: [vchkpw] Urgent - vchkpw/vpopmail
> > > authenticate even with wrong
> > > pw?
> > > 
> > > 
> > > > Learn passwords was enabled. However, it
> should
> > > learn
> > > > only the FIRST password entered for each
> > > account
> > > > not multiple passwords for each account.
> > > >
> > > > Right?
> > > >
> > > > It would seem logical that with
> learn-passwords,
> > > the
> > > > first time i put in the password for
> [EMAIL PROTECTED],
> > it
> > > > "learns" that password. If I try to log into
> > > [EMAIL PROTECTED]
> > > > with a different password, I should be
> rejected,
> > > as it
> > > > "learned" the first password.
> > > >
> > > >
> > > >
> > > >
> > > > --- Michael Bowe <[EMAIL PROTECTED]>
> wrote:
> > > > > I could be barking up the wrong tree here
> > but...
> > > > >
> > > > > Perhaps did you configure vpopmail to "learn
> > > > > passwords" ?
> > > > >
> > > > > It rings a bell for me that if you upgrade
> > from
> > > an
> > > > > v4.x vpopmail, and you
> > > > > enable clear passwords in your v5.2
> vpopmail,
> > > you
> > > > > loose all your existing
> > > > > passwords and the general way to recover
> from
> > > this
> > > > > is to enable vpopmail's
> > > > > "learn passwords" functionality
> > > > >
> > > > > This could explain why "any password works".
> > But
> > > > > then again, once the
> > > > > password has been learned, you shouldn't be
> > able
> > > to
> > > > > go back and use some
> > > > > other password and still get access
> > > > >
> > > > > Michael.
> > > > >
> > > > >
> > > > > - Original Message - 
> > > > > From: "jeff thomas" <[EMAIL PROTECTED]>
> > > > > To: <[EMAIL PROTECTED]>
> > > > > Sent: Wednesday, August 13, 2003 10:15 AM
> > > > > Subject: [vchkpw] Urgent - vchkpw/vpopmail
> > > > > authenticate even with wrong pw?
> > > > >
> > > > >
> > > > > > Hello -
> > > > > >
> > > > > > I recently installed vpopmail 5.3.20 from
> > > freebsd
> > > > > > ports. I used Matt Simerson's FreeBSD
> Qmail
> > > > > Toaster
> > > > > > scripts to install it (it uses ports).
> > > > > >
> > > > > >
> > > > > > That installed without problem. I
> installed
> > > > > > courier-imap and squirrelmail as well as
> > > > > sqwebmail. I
> > > > > > noticed today that I can log into any of
> the
> > > > > accounts
> > > > > > via sqwebmail with any password. I can
> > > literally
> > > > > put
> > > > > > in "xxx" for the password on my e-mail
> > account
> > > and
> > > > > it
> > > > > > will let me in. I tried it on squirrelmail
> > > with
> > > > > the
> > > > > > same problem. So, then I tried simply
> > logging
> > > into
> > > > > the
> > > > > > POP3 account with "xyz" as the password.
> It,
> > > too,
> > > > > let
> > > > > > me in with full access.
> > > > > >
> > > > > > This is bad - obviously. Anyone care to
> shed
> > > some
> > > > > > light on what I need to do to get this
> fixed
> > > ASAP.
> > > > > I
> > > > > > upgraded from 4.9.x and use mysql4 for
> > > > > authentication.
> > > > > >
> > > > > > Any and all help is appreciated.
> > > > > >
> > > > > > __
> > > > > > Do you Yahoo!?
> > > > > > Yahoo! SiteBuilder - Free, easy-to-use web
> > > site
> > > > > design software
> 

[vchkpw] other fun vpopmail issues!

2003-08-14 Thread David Gibbons
Okay on another note i'm having a boggling time getting the "Seekable" 
patch SpamAssassin wants to apply to vpopmail..
it patches fine but then on compile i get.. this is on a newly untared 
vpopmail with only allow-roaming users=y set in the config.

gcc -I. -Icdb -g -O2 -Wall -c seek.c
seek.c:24: conflicting types for `lseek'
/usr/include/stdio.h:278: previous declaration of `lseek'
*** Error code 1
has anyone else any idea what's going on? seems like vpopmail really 
doesn't like me this week.





Re: [vchkpw] Re: "vpopmail documentation initiative"

2003-08-14 Thread Ron Guerin
On Wed, 2003-08-13 at 20:05, Paul L. Allen wrote:
> Ron Guerin writes:
> 
> > I don't think spending an evening wandering around Google and hitting
> > dead links is a substitute for proper documentation.
> 
> I would agree there - googling is very much a last resort.  And the
> whole point of open source is that we all put back in whatever way we
> can, so a collaberative documentation effort can pay dividends very
> quickly.

Obviously, I agree!

> I'd also say that "search the archives" is no substitute for a proper
> FAQ.  I remember the days when newsgroups and mailing lists DID have
> FAQs.  Then search engines came along and everybody saw them as a
> substitute for an FAQ.  And for a few months people were correct.  For
> a few months a google search would be just as quick and effective as
> a real FAQ.  But after a couple of years, a google search is a complete
> pain.  HUNDREDS of results pages with people asking the question you
> want answered and the response is invariably "do a google search of
> the archive."  The original answer to that question is ZILLIONS of
> pages down the list and unless you have a few months to waste you'll
> never find it.

I remember back around that time there was also the popular belief that
things committed to the Web were preserved for the ages.  I'll refer
back to a specific piece of qmail documentation I'd been looking for...
I found plenty of references to the document in the first 10 results. 
The problem is the actual document itself has nearly fallen off the face
of the earth.  I say nearly, because I _did_ find it. In the WayBack
machine, which truly is the last station before oblivion.

> "Search the archives" equates to "nobody can be bothered to maintain
> an FAQ because nobody has realized just how useless a google search is
> when dealing with a large archive where most questions are answered with
> 'search the archives.'"  The qmail list is one of the worst I've seen
> for this.  Yes, if you have a lot of time to spare you can eventually
> find the answer.  But "search the archive" is never going to be as
> quick a solution as "the answer is in the FAQ."

There will probably always be gems in the archives that appear nowhere
else.  But "search the archives" should only be the answer for very
recent, or very obscure things that have yet to find their way into the
documentation.  Archives should supplement documentation, not _be_
documentation.

> My apologies if I've offended anyone, but it's late, I've had a lot of
> wine, and I've wanted to get that one off my chest for well over three
> years. I even put my money where my mouth is.  If there is an FAQ (on 
> whatever) and I have something useful I submit it to the maintainer.  But 
> all too often the FAQ has been abandoned in favour of "search the archive."

I don't think anyone's going to be offended.

The fact that we don't have more documentation is our responsibility and
no one else's.  In an Open and Free project like this, particularly one
with so many users, the developers shouldn't be producing the admin and
user documentation.  I consider that a waste of their valuable time,
when they can be writing more code, doing more code analysis, ripping
more code _out_, stuff that developers do.  The exception there would be
that obviously, some non-trivial amount of developer participation would
be required for documenting the vpopmail API.  Speaking for myself, I
can't put a line of C code together, but I can string some words
together into a sentence.  That should be true of many others here, and
together, we have the potential for translations (most important for the
FAQ) into many languages.

It could be only a few of us will work on it sporadically.  And that's
ok too.  The important thing is to get started on it.  I was going to
fix some things for myself, and now I'm going to submit those fixes for
everyone else's benefit.  It's how much of the code gets written in Free
and Open software.  Someone who can, scratches an itch and makes it
available to everyone else.

Good to have you on-board!

- Ron





Re: [vchkpw] is this a bug or a feature ???

2003-08-14 Thread Jeff Hedlund


Jeff Hedlund wrote:
Kenneth Ling wrote:

which version of qmailadmin ?
v1.0.24
http://www.sourceforge.net/qmailadmin
(That's the development version)
Er, 1.0.25 is the latest devel version.

Jeff
--
  /\  /\  ......[EMAIL PROTECTED]
 /  \/  \ a t r i x  .  .  .  .  .  .  .   (770) 794-7233
 s o f t w a r e  i n c  ......   http://www.matrixsi.com



[vchkpw] Sorry,_no_mailbox_here_by_that_name

2003-08-14 Thread Mike Robin Haller
Hi vpopmail mailing list,

i have this problem and i hope someone can help me fast, because after
an update to 5.3.23, i cannot add any domains.
vadddomain always crashed with an segmentation fault. i debugged it
and the segfaults were caused by two free(in_domain) and another
free(..). i commented them out and recompiled, so i could create the
necc. domain directories.

NOW the problem is, that he does not seem to recognize the directory.
i can add successfully the domain with
/home/vpopmail/bin/vadddomain haller-systemservice.net SECRETPW

i can also get the infos:

--
main:/home/vpopmail/domains/haller-systemservice.net # /home/vpopmail/bin/vuserinfo 
[EMAIL PROTECTED]
name:   info
passwd: $1$fJye;$2x5VjC3f4XGvatfafLffx.
clear passwd: SECRETPW
uid:1
gid:0
gecos: info
all services available
dir:   /home/vpopmail/domains/haller-systemservice.net/info
quota: 1S,1000C
usage: 0%
last auth: Mon Aug 11 20:03:38 2003
last auth ip: 217.230.89.187
--


but the mail to [EMAIL PROTECTED] gets always bounces:


--
@40003f37d9503b11ece4 new msg 66136
@40003f37d9503b120c24 info msg 66136: bytes 1137 from <[EMAIL PROTECTED]> qp 10859 
uid 502
@40003f37d9503b8a8014 starting delivery 165: msg 66136 to local [EMAIL PROTECTED]
@40003f37d9503b8a9f54 status: local 1/10 remote 0/20
@40003f37d9503b8aa33c delivery 165: failure: 
Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/
@40003f37d9503b8aab0c status: local 0/10 remote 0/20
@40003f37d9510048f1d4 bounce msg 66136 qp 10862
@40003f37d95100490d2c end msg 66136
--


i have another domain haller-systemservice.de which i created before
the update. this domain works fine.
i checked the file permissions on the files in the directory
/home/vpopmail/domains/haller-systemservice.net/ with the same files
in the directory
/home/vpopmail/domains/haller-systemservice.de/
they are the same, but it does not work. please help



main:/ # ll /home/vpopmail/domains/haller-systemservice.net
total 17
drwxr-xr-x4 vpopmail vchkpw256 Aug 11 19:27 .
drwxr-xr-x   17 vpopmail vchkpw640 Aug 11 19:12 ..
-rw-r--r--1 vpopmail vchkpw 34 Aug 11 19:27 .dir-control
-rwxr-xr-x1 vpopmail vchkpw 69 Aug 11 19:58 .qmail-default
-rw-r-xr-x1 vpopmail vchkpw  0 Aug 11 19:27 .vpasswd.lock
drwxr-xr-x3 vpopmail vchkpw 96 Aug 11 19:27 info
drwxr-xr-x3 vpopmail vchkpw 96 Aug 11 19:12 postmaster
-rw-r-xr-x1 vpopmail vchkpw264 Aug 11 19:27 vpasswd
-rw-r-xr-x1 vpopmail vchkpw   2356 Aug 11 19:27 vpasswd.cdb
main:/ # ll /home/vpopmail/domains/haller-systemservice.de
total 17
drwxr-xr-x5 vpopmail vchkpw288 Aug 11 17:21 .
drwxr-xr-x   17 vpopmail vchkpw640 Aug 11 19:12 ..
-rw-r--r--1 vpopmail vchkpw 34 Aug 11 17:21 .dir-control
-rw-r-xr-x1 vpopmail vchkpw 96 Aug 11 16:10 .qmail-default
drwx--xr-x2 vpopmail vchkpw176 Aug  6 19:57 .spamassassin
-rw-r-xr-x1 vpopmail vchkpw  0 Mar 12 21:09 .vpasswd.lock
drwxr-xr-x3 vpopmail vchkpw 96 Mar 11 14:23 info
drwxr-xr-x3 vpopmail vchkpw 96 Mar 11 14:22 postmaster
-rw-r-xr-x1 vpopmail vchkpw264 Mar 12 21:09 vpasswd
-rw-r-xr-x1 vpopmail vchkpw   2356 Mar 12 21:09 vpasswd.cdb






-- 
Mit freundlichen Grüssen
Mike Robin Haller
mailto:[EMAIL PROTECTED]




Re: [vchkpw] vadddomain issues

2003-08-14 Thread David Gibbons
Evren Yurtesen wrote:

try to figure out what does the files in /var/qmail/control
say, the users file etc. where is the domain directory there? considering
vadddomain could add something to there
On Wed, 13 Aug 2003, David Gibbons wrote:

 

[EMAIL PROTECTED] [/var/qmail/vpop/bin] # ./vadddomain frenchclasses.com
Please enter password for postmaster:
enter password again:
Error: Unable to chdir to vpopmail/domains/domain directory
I've no idea where to trouble shoot this.. google is comming up empty of 
solutions/reasons.. i've triede reinstalling anyone have any ideas? 
i can provide more information obvious but i don't know else would be 
helpful



   





 

Okay i removed qmail and reinstalled and n
ow that problem went away (sigh magic?) and now i'm faced with this fun 
error when i try to check pop3

-ERR this user has no $HOME/Maildir
Connection closed by foreign host.
any ideas or suggestions would be much apperciated.. again this is 
vpopmail 5.2.1
installed in /var/qmail/vpop





[vchkpw] OT maildrop, filters and quotas

2003-08-14 Thread Clayton Weise
I've had a problem for quite some time now and it never got answered on the
list, so I made a work around.  Was previously running domain-based maildrop
filters by piping to maildrop in my .qmail-default file but I ran into
problems with that.  For some reason, and I could never figure out exactly
what or where it was coming from, vpopmail would appear to intermittently
exit out with an error that would cause maildrop to exit tmpfail and requeue
the message.  It would only happen when spam was trying to deliver to
accounts that didn't exist.  maildrop would do what it was supposed to do
and hand it off to vpopmail, but every once in a while vpopmail would exit
with an error code other than 0 and the message would get requeued.  This
would, and rather quickly, gunk up the queue with a TON of "sorry, no
mailbox here by that name" rejections that would never get delivered.  If
anybody knows about this, it would be of great help.

To get past the problem, instead of having maildrop hand the message back to
vpopmail I'm just having maildrop deliver it directly by putting .qmail
files inside each users's directory.  This seems to work just great for
filtering purposes, but for some damn reason quotas aren't being enforced.
I've read the man files for maildrop and discovered that it gets the quota
from a MAILDIRQUOTA env variable, so I set that like this:

MAILDIRQUOTA=`/home/vpopmail/bin/vuserinfo -q [EMAIL PROTECTED]

When it comes time for delivery, after the filtering, right now I've just
got this:

to "./Maildir/"

maildrop delivers the message just fine, but it never changes the
maildirsize file.  Quotas never get enforced.  I tried piping it off to the
deliverquota program that comes with the maildrop suite but no dice their
either:

to "| /usr/local/bin/deliverquota ./Maildir/"

I must be missing something, and I'm hoping somebody can help.

-Clayton




[vchkpw] Urgent - vchkpw/vpopmail authenticate even with wrong pw?

2003-08-14 Thread jeff thomas
Hello -

I recently installed vpopmail 5.3.20 from freebsd
ports. I used Matt Simerson's FreeBSD Qmail Toaster
scripts to install it (it uses ports).


That installed without problem. I installed
courier-imap and squirrelmail as well as sqwebmail. I
noticed today that I can log into any of the accounts
via sqwebmail with any password. I can literally put
in "xxx" for the password on my e-mail account and it
will let me in. I tried it on squirrelmail with the
same problem. So, then I tried simply logging into the
POP3 account with "xyz" as the password. It, too, let
me in with full access.

This is bad - obviously. Anyone care to shed some
light on what I need to do to get this fixed ASAP. I
upgraded from 4.9.x and use mysql4 for authentication.

Any and all help is appreciated.

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com



Re: [vchkpw] vadddomain issues

2003-08-14 Thread Evren Yurtesen
try to figure out what does the files in /var/qmail/control
say, the users file etc. where is the domain directory there? considering
vadddomain could add something to there

On Wed, 13 Aug 2003, David Gibbons wrote:

> [EMAIL PROTECTED] [/var/qmail/vpop/bin] # ./vadddomain frenchclasses.com
> Please enter password for postmaster:
> enter password again:
> Error: Unable to chdir to vpopmail/domains/domain directory
> 
> 
> I've no idea where to trouble shoot this.. google is comming up empty of 
> solutions/reasons.. i've triede reinstalling anyone have any ideas? 
> i can provide more information obvious but i don't know else would be 
> helpful
> 
> 
> 
> 




Re: [vchkpw] is this a bug or a feature ???

2003-08-14 Thread Jeff Hedlund


Kenneth Ling wrote:
which version of qmailadmin ?
v1.0.24
http://www.sourceforge.net/qmailadmin
(That's the development version)

Jeff
--
  /\  /\  ......[EMAIL PROTECTED]
 /  \/  \ a t r i x  .  .  .  .  .  .  .   (770) 794-7233
 s o f t w a r e  i n c  ......   http://www.matrixsi.com



RE: [vchkpw] Re: Need advise on secondary mail server for backup purpose.

2003-08-14 Thread Kenneth Ling
basically, once yr primary mail server is up , the secondary will deliver
the mail to yr primary mail server... this was the concept...

please check on yr secondary mail server..
do your get the same MX record like

MX 10 mail
MX 20 mail1

tq

-Original Message-
From: Kuan Yik [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 12:03 PM
To: Kenneth Ling; Cream[DONut]; [EMAIL PROTECTED]
Subject: Re: [vchkpw] Re: Need advise on secondary mail server for
backup purpose.


yeah...think should work. I have shutdown the primary mailserver and the
message has gone into the secondary mail server. Think the message should be
in the qmiail queue now. And, I have make the primary mailserver up again,
but I am still waiting for the message from secondary mail server. So, is
there any command to flush or force the secondary mail server message from
the qmail queue?

Or any configuration file to customize it?

Thanks.
- Original Message -
From: "Kenneth Ling" <[EMAIL PROTECTED]>
To: "Cream[DONut]" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, August 07, 2003 10:42 AM
Subject: RE: [vchkpw] Re: Need advise on secondary mail server for backup
purpose.


> I do a same config like what cream does...
> it work very very fine with me..( so far half a year )
>
> It is nothing to do with vpopmail... pure qmail control file only
>
>
> -Original Message-
> From: Cream[DONut] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 06, 2003 6:11 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [vchkpw] Re: Need advise on secondary mail server for
> backup purpose.
>
>
> At 18:05 06-08-2003 +0800, you wrote:
>
> >my mailserver1 has been configured properly and it is up and running
> without
> >any problem. Just do not have the idea of setting up and backup mail
> server.
>
> It isnt really a vpopmail issue, it is a Qmail issue.
>
> You put it in rcpthosts on mailserver2, that means it will recive mail for
> that domain, since it isnt in the local domains, or virtualdomains, it
cant
> deliver it locally, and will try to deliver it remotely.
> - with standard settings it should keep trying for 5 days, then give up
> - you dont need vpopmail installed, just a plain Qmail server
>
> (somebody please correct me if im wrong)
>
>
>
>
>
>






[vchkpw] vpopmail, sqwebmail and maildrop[

2003-08-14 Thread Paul L. Allen

Hi

I'm trying to figure out how to get the new filter functionality in
sqwemail (I have 3.5.3) working with vpopmail 5.3.23 (which I'm just
about to install because I was using 5.2.1 until I found the authentication
bug affecting courier-imap).

I've searched mailing list archives, dug around on google, read the
maildrop docs and still the solution eludes me.  I can get it to work if
I manually create a .qmail file in a user's maildir but that is not an 
option on a server which will eventually have many virtual domains each
administered by the holders of those domains names and who can add users
at will.

It looks to me as if /etc/maildroprc might do the trick but unfortunately
I cannot afford to play with anything that might cause mail to bounce
because my pointy-haired boss decided to use his new personal domain as a 
test domain on this server and once it was able to send and receive mail
he used it to subscribe to various mailing lists that generate hundreds of 
mails a day about his cherished hobby.

Any solution must meet the following requirements:

  1) Fully compatible with sqwebmail's filters.  The whole point of
  trying to get maildrop to work is to allow the use of those
  filters.

  2) Fully compatible with qmailadmin.  It must not require tweaks
  to .qmail files that get undone when they are modified by
  qmailadmin.  In particular, qmailadmin must be able to modify
  .qmail-default without disrupting filtering.

  3) Does not require any manual intervention by me to enable filters
  for newly-added users.  When a domain administrator adds a new user
  with qmailadmin then filters should automatically be available and
  should not require the administrator to request me to turn filtering
  on for a new user.

These requirements do not seem unreasonable to me so I suspect that
either vpopmail has yet to catch up with the new sqwebmail filters or
I'm missing the blindingly obvious (almost certainly the latter).

Any help would be greatly appreciated.

-- 
Paul Allen
Softflare Support



Re: [vchkpw] Urgent - vchkpw/vpopmail authenticate even with wrongpw?

2003-08-14 Thread Ajai Khattri
Tom Collins wrote:

What do your MySQL tables look like?  What does a typical user entry 
look like?

Is this an issue of the old tables having encrypted passwords without 
cleartext equivalents?
On a related note: is it possible to switch off cleartext passwords on a 
per-user basis?

--
Aj.
Systems Administrator / Developer




Re: [vchkpw] "vpopmail documentation initiative"

2003-08-14 Thread Ajai Khattri
Tom Collins wrote:

I've enabled the DocManager feature of our SourceForge project, and 
Ron is the editor.  If you have vpopmail-related documentation to 
contribute, please submit it here:

http://sourceforge.net/docman/?group_id=85937

This is simply excellent!

Also, do you have an FAQ of some kind? (I haven't looked). We ought to 
have some sort of cookbook will tried and proven solutions to common 
scenarios...

--
Aj.
Systems Administrator / Developer




Re: [vchkpw] vpopmail+spamassassin+clamscan

2003-08-14 Thread Ahmad Masood Shah
this is what I'm doing ... and working prety fine..

I agree with Mr Adam.

-- 

Best Regs,
Masood Ahmad Shah
System Administrator

^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
|   * * * * * * * * * * * * * * * * * * * * * * * *
|   Fibre Net (Pvt) Ltd. Lahore, Pakistan
|   Tel: +92-42-6677024
|   Mobile: +92-300-4277367
|   http://www.fibre.net.pk
|   * * * * * * * * * * * * * * * * * * * * * * * *
^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)

- Original Message - 
From: "Adam Hooper" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 12, 2003 10:43 PM
Subject: Re: [vchkpw] vpopmail+spamassassin+clamscan


| Another method (for different needs, of course): On our site, we just
| put qmail-scanner in the qmail queue. All that needs to be done ("all?"
| I spent hours on this :P) is apply the QMAILQUEUE patch to qmail, and
| install qmail-scanner by following its instructions:
| http://qmail-scanner.sourceforge.net/
|
| qmail-scanner works with spamassassin and clamscan and can do primitive
| attachment checks (i.e., "block all .exe/.bat/.vbs attachments"). The
| way we have it set up, it just puts an 'X-Spam-Status: Yes/No' in the
| message's header, and users can set their mail clients to use rules
| based on that.
|
| The downside: If you're running a very large site and only expect a few
| people to use the virus-scanning abilities of spamassassin, you're going
| to be burning lots of processor cycles. Our site is relatively small and
| we need qmail-scanner anyway to block "dangerous" attachments, so the
| waste of CPU isn't an issue for us.
|
| -- 
| Adam Hooper
| [EMAIL PROTECTED]
|
| Tom Walsh wrote:
|
| > There was some discussion a while back about making SA work with
vpopmail.
| >
| > Most solutions I saw used .qmail-username or .qmail-default which wasn't
the
| > right method for us. Below is a quick write up on how to use SA+clamscan
| > from a .qmail file in the users maildir. We also pull user preferences
for
| > SA from SQL, so the line we use to call SA might not be what you want.
| > Delivery and hand off for scanning is handled by maildrop.
| >
| > First and foremost, make certain that the user vpopmail has a valid
shell...
| > this is very important as vdeliermail will run anything in the .qmail as
the
| > user vpopmail, provided the application doesn't do a setuid/setgid,
which
| > maildrop does not do. (That alone cost me 3 hours to troubleshoot.)
| >
| > For each user you want to enable SA and virus scanning put the following
in
| > a .qmail file in the users directory:
| >
| > | /var/qmail/bin/preline /usr/local/bin/maildrop
| > /usr/home/vpopmail/domains/.mailfilter
| >
| > Make sure that this file has been chmod'ed to 600 (u+rw) and is owned by
| > vpopmail:vchkpw otherwise it will not be run.
| >
| > The .mailfilter listed above contains (some of this script has come from
| > another list member, but I forgot his name, if you contact me I will
give
| > credit where credit is due), it must also be chmod'ed to 600 with owner
| > vpopmail:vchkpw :
| >
| > import EXT
| > import HOST
| > VHOME=`/usr/home/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]
| >
| > # Check for Spam if it is smaller than 250KB
| > if($SIZE < 262144)
| > {
| > xfilter "/usr/local/bin/spamc -d 192.168.1.2 -t 20 -f -u
[EMAIL PROTECTED]"
| > }
| > if ((/^X-Spam-Flag:.*YES/))
| > {
| > `/bin/test -d $VHOME/Maildir/.Spam`
| > if( $RETURNCODE == 1 )
| > {
| > `/var/qmail/bin/maildirmake $VHOME/Maildir/.Spam;
| > /usr/sbin/chown -R vpopmail:vchkpw $VHOME/Maildir/.Spam`
| > }
| > to "$VHOME/Maildir/.Spam/"
| > }
| >
| > # If it isn't Spam, then we scan for Virus if it is smaller than 2MB in
| > size... anything larger... they are on their own
| > if($SIZE < 200)
| > {
| > xfilter "/usr/home/vpopmail/domains/clamscan.sh"
| > }
| > if ((/^X-Virus-Status:.*INFECTED/))
| > {
| > `/bin/test -d $VHOME/Maildir/.Virus`
| > if ( $RETUNRCODE == 1 )
| > {
| > `/var/qmail/bin/maildirmake $VHOME/Maildir/.Virus;
| > /usr/sbin/chown -R vpopmail:vchkpw $VHOME/Maildir/.Virus`
| > }
| > to "$VHOME/Maildir/.Virus/"
| > }
| >
| > #If it isn't Spam or Virus, then deliver normally
| > to "$VHOME/Maildir/"
| >
| > The specific lines of interest are the xfilter lines. We use spamc/spamd
to
| > offload the very CPU intensive process of spam scanning to another
machine
| > on the private network. That is what the -d directive is for which tells
SA
| > which IP to connect to for spamd...
| >
| > The clamscan.sh file is a wrapper for the clamscan binary. We need to do
| > this because of the incompatibility between how clamscan operates and
how
| > maildrop expects an xfilter program to operate. maildrop expects any
message
| > it sends out to an xfilter program to be returned to it via stdout. The
|

Re: [vchkpw] Detailed installation instructions on FreeBSD - attached

2003-08-14 Thread eLgino
ah you mean i copy

/* source start

 #!/usr/bin/perl


 while () {
 if( $_ =~ /^([^#][^=]+)=(.*)/) {
 $name=$1;
 unlink "$name";
 open (F, ">$name") or die "Cannot open $name: $!";
 $value = $2;
 if( $value =~ /^"(.*)"$/ ) {
 $x=$1;
 } else {
 $x=$value;
 }
 while ($x =~ m/\$(\S+)/ && $vars{$1}) {
 $y = $1;
 $x =~ s/\$$y/$vars{$y}/;
 }
 $vars{$name}=$x;
 print F $x or die "Cannot write to $1: $!";
 close (F) or die "Cannot close $1: $!";
 }
 }

*/ source end

to this directory's
:

/var/qmail/supervise/courier-imap-imapd-ssl/env
/var/qmail/supervise/courier-imap-imapd
/var/qmail/supervise/courier-imap-pop3d-ssl
/var/qmail/supervise/courier-imap-pop3d

and whats the name of the file?, lol sorry i'm stupid ...
thanks in advance

all steps right?

- Original Message -
From: "Evren Yurtesen" <[EMAIL PROTECTED]>
To: "eLgino" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, August 13, 2003 8:57 PM
Subject: Re: [vchkpw] Detailed installation instructions on FreeBSD -
attached


> yet I dont see what is not clear about this :)
>
> --
>
> We should get courier imap conf files inside too!
>
> #mkdir /var/qmail/supervise/courier-imap-imapd-ssl/env
> #mkdir /var/qmail/supervise/courier-imap-imapd
> #mkdir /var/qmail/supervise/courier-imap-pop3d-ssl
> #mkdir /var/qmail/supervise/courier-imap-pop3d
>
> Now copy the envconv program to each directory
>
>
> On Wed, 13 Aug 2003, eLgino wrote:
>
> > ok, thanks
> >
> > but WHERE to copy the envconv programm in WITCH directory?
> >
> > thank you for your friendly help and your howto
> >
> > cya
> >
> > - Original Message -
> > From: "Evren Yurtesen" <[EMAIL PROTECTED]>
> > To: "eLgino" <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Wednesday, August 13, 2003 8:50 PM
> > Subject: Re: [vchkpw] Detailed installation instructions on FreeBSD -
> > attached
> >
> >
> > > I dont understand, the file name is written just above the line
> > > /var/qmail/supervise/qmail-smtp/run
> > > which means inside this file, the text between  must
be
> > > if you dont know what is serialmail, just use the rblsmtpd one.
> > >
> > > Evren
> > >
> > > On Wed, 13 Aug 2003, eLgino wrote:
> > >
> > > > "Evren Yurtesen" <[EMAIL PROTECTED]>
> > > >
> > > > HI thank you very much but what your are meaning with:
> > > >
> > > > /var/qmail/supervise/qmail-smtp/run text with serialmail...
> > >
> >
> --
> > --
> > > > 
> > > > exec /usr/local/bin/tcpserver -p -R -x
> > /usr/local/vpopmail/etc/tcp.smtp.cdb
> > > > \
> > > > -u82 -g81 -v -c100 0 smtp \
> > > >   sh -c '
> > > > /var/qmail/bin/qmail-smtpd
> > > > cd /var/qmail/autoturn
> > > > exec setlock -nx $TCPREMOTEIP/seriallock \
> > > > maildirsmtp $TCPREMOTEIP autoturn-$TCPREMOTEIP- $TCPREMOTEIP
> > > > AutoTURN
> > > >   ' \
> > > > `hostname --fqdn` /usr/local/scripts/vpopmail/vchkpw /usr/bin/true
2>&1
> > >
> >
> --
> > --
> > > > 
> > > >
> > > > /var/qmail/supervise/qmail-smtp/run text with rblsmtpd...
> > >
> >
> --
> > --
> > > > 
> > > > #!/bin/sh
> > > > exec /usr/local/bin/tcpserver -p -R -x
> > /usr/local/vpopmail/etc/tcp.smtp.cdb
> > > > \
> > > > -u82 -g81 -v -c100 0 smtp /usr/local/bin/rblsmtpd \
> > > > -r bl.spamcop.net \
> > > > -r sbl.spamhaus.net \
> > > > /var/qmail/bin/qmail-smtpd \
> > > > `hostname --fqdn` /usr/local/scripts/vpopmail/vchkpw /usr/bin/true
2>&1
> > > >
> > > > with serialmail... / with rblsmtpd ??? whats that?
> > > >
> > > > and what you are meaning of
> > > >
> > > > 
> > > >
> > > > Now copy the envconv program to each directory
> > > >
> > > > envconv text...
> > >
> >
> --
> > --
> > > > 
> > > > #!/usr/bin/perl
> > > >
> > > > # written by Jonas Pasche
> > > > # enhanced by Matthias Andree
> > > >
> > > > while () {
> > > >   if( $_ =~ /^([^#][^=]+)=(.*)/) {
> > > > $name=$1;
> > > > unlink "$name";
> > > > open (F, ">$name") or die "Cannot open $name: $!";
> > > > $value = $2;
> > > > if( $value =~ /^"(.*)"$/ ) {
> > > >   $x=$1;
> > > > } else {
> > > >   $x=$value;
> > > > }
> > > > while ($x =~ m/\$(\S+)/ && $vars{$1}) {
> > > > $y = $1;
> > > > $x =~ s/\$$y/$vars{$y}/;
> > > > }
> > > > $vars{$name}=$x;
> > > > print F $x or die "Cannot write to $1: $!";
> > > > close (F) or die "Cannot close $1: $!";
> > > >   }
> > > > }
> > >
> >
> --
> > --
> > > > 
> > > >
> > > > where to copy the programm/script/tool what ever? to what
directories,
> > thank
> > > > you very much!
> > > >

Re: [vchkpw] Urgent - vchkpw/vpopmail authenticate even with wrongpw?

2003-08-14 Thread Evren Yurtesen
I totally agree :)
Instead a person must use the script's actions as a reference point and
install himself those programs manually. Thus you can learn something too.
It is not only difficult to troubleshoot if something goes wrong, but also
if your customers want something which is not possible to achieve with the
script. Then you would also be in trouble since you wouldnt know how to
install any of these programs.

I often had similar problems with windows admins :) They press Next button
and it works. Then when there is a problem, they absolutely have no idea
of how things work, so they cant figure out any solution at all, they try
to format windows and reinstall everything though everytime when there is
a problem :)

Evren

On Wed, 13 Aug 2003, Charles Sprickman wrote:

> On Wed, 13 Aug 2003, jeff thomas wrote:
> 
> > Ok... I tried this fix.
> >
> > I edited vchkpw.c and removed the FOOB and ENDIF.
> > recompiled.
> >
> > No luck. Same thing. Any password I put in still
> > works.
> >
> > Thoughts?
> 
> Since you're using a pre-packaged build, I'd go here:
> 
> http://matt.simerson.net/cgi-bin/ezmlm.cgi
> 
> Search and then ask if anyone else using his script is having similar
> problems.  While I have no argument with the bazillion "here's *my*
> toaster" sites, you have to keep in mind that if you install using
> someone else's knowledge, you'll have a hard time troubleshooting it when
> things go wrong...  Just my 2 bits.
> 
> Charles
> 
> > --- Michael Bowe <[EMAIL PROTECTED]> wrote:
> > > I just remembered that learn-passwords was broken in
> > > 5.3.20, and then
> > > eventually fixed in 5.3.24
> > >
> > http://sourceforge.net/tracker/index.php?func=detail&aid=783824&group_id=85937&atid=577798
> > >
> > > Maybe this has something to do with your problem?
> > >
> > > Michael.
> > >
> > > - Original Message -
> > > From: "jeff thomas" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, August 13, 2003 6:47 PM
> > > Subject: Re: [vchkpw] Urgent - vchkpw/vpopmail
> > > authenticate even with wrong
> > > pw?
> > >
> > >
> > > > Learn passwords was enabled. However, it should
> > > learn
> > > > only the FIRST password entered for each
> > > account
> > > > not multiple passwords for each account.
> > > >
> > > > Right?
> > > >
> > > > It would seem logical that with learn-passwords,
> > > the
> > > > first time i put in the password for [EMAIL PROTECTED], it
> > > > "learns" that password. If I try to log into
> > > [EMAIL PROTECTED]
> > > > with a different password, I should be rejected,
> > > as it
> > > > "learned" the first password.
> > > >
> > > >
> > > >
> > > >
> > > > --- Michael Bowe <[EMAIL PROTECTED]> wrote:
> > > > > I could be barking up the wrong tree here but...
> > > > >
> > > > > Perhaps did you configure vpopmail to "learn
> > > > > passwords" ?
> > > > >
> > > > > It rings a bell for me that if you upgrade from
> > > an
> > > > > v4.x vpopmail, and you
> > > > > enable clear passwords in your v5.2 vpopmail,
> > > you
> > > > > loose all your existing
> > > > > passwords and the general way to recover from
> > > this
> > > > > is to enable vpopmail's
> > > > > "learn passwords" functionality
> > > > >
> > > > > This could explain why "any password works". But
> > > > > then again, once the
> > > > > password has been learned, you shouldn't be able
> > > to
> > > > > go back and use some
> > > > > other password and still get access
> > > > >
> > > > > Michael.
> > > > >
> > > > >
> > > > > - Original Message -
> > > > > From: "jeff thomas" <[EMAIL PROTECTED]>
> > > > > To: <[EMAIL PROTECTED]>
> > > > > Sent: Wednesday, August 13, 2003 10:15 AM
> > > > > Subject: [vchkpw] Urgent - vchkpw/vpopmail
> > > > > authenticate even with wrong pw?
> > > > >
> > > > >
> > > > > > Hello -
> > > > > >
> > > > > > I recently installed vpopmail 5.3.20 from
> > > freebsd
> > > > > > ports. I used Matt Simerson's FreeBSD Qmail
> > > > > Toaster
> > > > > > scripts to install it (it uses ports).
> > > > > >
> > > > > >
> > > > > > That installed without problem. I installed
> > > > > > courier-imap and squirrelmail as well as
> > > > > sqwebmail. I
> > > > > > noticed today that I can log into any of the
> > > > > accounts
> > > > > > via sqwebmail with any password. I can
> > > literally
> > > > > put
> > > > > > in "xxx" for the password on my e-mail account
> > > and
> > > > > it
> > > > > > will let me in. I tried it on squirrelmail
> > > with
> > > > > the
> > > > > > same problem. So, then I tried simply logging
> > > into
> > > > > the
> > > > > > POP3 account with "xyz" as the password. It,
> > > too,
> > > > > let
> > > > > > me in with full access.
> > > > > >
> > > > > > This is bad - obviously. Anyone care to shed
> > > some
> > > > > > light on what I need to do to get this fixed
> > > ASAP.
> > > > > I
> > > > > > upgraded from 4.9.x and use mysql4 for
> > > > > authentication.
> > > > > >
> > > > > > Any and all help is appreciated.
> > > > > >

[vchkpw] vpopmail & mysql

2003-08-14 Thread eLgino
hi folks,

does work vpopmail with MySQL 4.1.0? or only with version 3?

thx




Re: [vchkpw] Sorry,_no_mailbox_here_by_that_name

2003-08-14 Thread Ajai Khattri
Mike Robin Haller wrote:

NOW the problem is, that he does not seem to recognize the directory.
i can add successfully the domain with
/home/vpopmail/bin/vadddomain haller-systemservice.net SECRETPW
i can also get the infos:

--
main:/home/vpopmail/domains/haller-systemservice.net # /home/vpopmail/bin/vuserinfo 
[EMAIL PROTECTED]
name:   info
passwd: $1$fJye;$2x5VjC3f4XGvatfafLffx.
clear passwd: SECRETPW
uid:1
gid:0
gecos: info
   all services available
dir:   /home/vpopmail/domains/haller-systemservice.net/info
quota: 1S,1000C
usage: 0%
last auth: Mon Aug 11 20:03:38 2003
last auth ip: 217.230.89.187
--
but the mail to [EMAIL PROTECTED] gets always bounces:

--
@40003f37d9503b11ece4 new msg 66136
@40003f37d9503b120c24 info msg 66136: bytes 1137 from <[EMAIL PROTECTED]> qp 10859 
uid 502
@40003f37d9503b8a8014 starting delivery 165: msg 66136 to local [EMAIL PROTECTED]
@40003f37d9503b8a9f54 status: local 1/10 remote 0/20
@40003f37d9503b8aa33c delivery 165: failure: 
Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/
@40003f37d9503b8aab0c status: local 0/10 remote 0/20
@40003f37d9510048f1d4 bounce msg 66136 qp 10862
@40003f37d95100490d2c end msg 66136
--
People always seem to ignore the fact that qmail is in the picture too.

What is in /var/qmail/rcpthosts, /var/qmail/virtualdomains and 
/var/qmail/users/assign ?

--
Aj.
Systems Administrator / Developer




Re: [vchkpw] Hard Quota's in VPOPMAIL

2003-08-14 Thread Evren Yurtesen
Because your setting only effects the postmaster user when you open
domain with vQadmin, then vqadmin sets a domain quota, after that
qmailadmin use that domain quota for a default quota. I am almost sure
your postmaster user doesnt have any quota, right? When you use vQadmin
you should set the domain quota to something. Honestly I never wanted to
disable it so I dont know what to write there. Perhaps n or something. Or
a very big number would do.

Did this help? :) 

Evren

PS. FreeBSD :) good choice...

On Fri, 8 Aug 2003, Steve Schofield wrote:

> I'm installing VPOPMAIL 5.3.20 from the ports on FreeBSD 4.8 release.
> Everything installs but I can't figure out why the hard quota always shows
> up even though I put in the configure HARDQUOTA=n in the Makefile, I've
> compiled it with no quotas and yet when I finally get around to adding email
> accounts via QmailAdmin it says my quota is 10 meg?  Any help or direction
> would be appreciated.
> 
> *  - *
> *  Steve Schofield - MCP, CCA
> *  [EMAIL PROTECTED]
> *
> *  Microsoft MVP - ASP.NET
> *  http://www.aspfree.com
> *  - *
> 
> 
> 




[vchkpw] New list, vpopmail-devel

2003-08-14 Thread Tom Collins
By request, I've created vpopmail-devel on SourceForge as a companion list to qmailadmin-devel.  Those of you interested in vpopmail in addition to qmailadmin should probably sign up.  Michael Bowe has been reviewing the source, and we have some work to do.

http://lists.sourceforge.net/mailman/listinfo/vpopmail-devel

The list we be focused on the ongoing development of vpopmail, including discussions on how to implement new features, discussions of bugs, and talk of optimizing or rewriting portions of the source.  It is NOT for questions regarding installation/configuration of vpopmail.  Please continue to use [EMAIL PROTECTED] for those questions.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester

[vchkpw] Unknown column 'pw_name' in 'field list'

2003-08-14 Thread Alan Murrell
Hello,

  Mandrake 9.1
  Qmail 1.03
  Vpopmail 5.3.24

I am setting up a new server with the latest (devel)
version of vpopmail, using MySQL as the backend.  I
edited vmysql to point to the database server, and
have confirmed that the (MySQL) username and password
work by authenticating from the mail server to the
MySQL server using the 'mysql' program.

However, when I test POP authentication via telnet, I
get the following error:

--- CUT HERE ---
[EMAIL PROTECTED] vpopmail-5.3.24]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
Escape character is '^]'.
+OK <[EMAIL PROTECTED]>
user alan
+OK 
pass bofh123
vmysql: sql error[3]: Unknown column 'pw_name' in
'field list'
-ERR authorization failed
Connection closed by foreign host.
--- CUT HERE ---

I have checked several of the domain tables in the
database, and they do indeed have the 'pw_name'
column, and it appears to be defined in the 'vmysql.h'
file.  The README.mysql file does not shed any light
on this.

I was wondering if anyone here would be able to shed
some light on this, and let me know what I appear to
have done wrong?

In case it is relevent, my vpopmail configuration
looks like this:

--- CUT HERE ---
./configure --enable-tcprules-prog=/usr/bin/tcprules \
  --enable-tcpserverfile=/etc/tcp.smtp \
  --enable-clear-passwd=y \
  --enable-mysql=y \
  --enable-valias=y \
  --enable-file-locking=y \
  --enable-many-domains=y \
  --enable-defaultquota=25214400S,1000C \
  --enable-domainquotas=y
--- CUT HERE ---

TIA for your help and insight.

Alan Murrell <[EMAIL PROTECTED]>


__ 
Post your free ad now! http://personals.yahoo.ca



Re: [vchkpw] postgres

2003-08-14 Thread Tom Collins
On Monday, August 11, 2003, at 02:00  PM, VeNoMouS wrote:
has any one actally been able to get vpopmail to work with postgresql yet?

Charles Boening contributed a few postgresql patches for the 5.3.24 release, and I'm assuming that at the very least he has been able to use it.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester


[vchkpw] upgrading from mysql 3.23 to 4.x

2003-08-14 Thread Paul Theodoropoulos
has anyone made the migration with vpopmail from mysql 3.23 to 4.x? if so, 
are there any 'gotchas', or is it as simple as installing the latest mysql 
and restarting?

Paul Theodoropoulos
http://www.anastrophe.com




Re: [vchkpw] Re: "vpopmail documentation initiative"

2003-08-14 Thread Ron Guerin
On Wed, 2003-08-13 at 23:27, Adam Hooper wrote:

> I might as well add something *constructive* to all this: I've heard and 
> seen nothing but good things from Wikis. Sourceforge has all you need to 
> set one up :). (I've used phpwiki, but as far as I know they're all 
> quite similar.) I think a vpopmail Wiki could be quite useful.

I need to give the SourceForce Documentation Manager a proper once-over,
I've only glanced at it, but Wiki has crossed my mind just about every
time I think about this.

The other thought that keeps crossing my mind is that DocBook is sort of
the holy grail of documentation these days as you can go from DocBook to
anything else.

The LDP's online documentation collaboration system will be using
WikiText on the front-end.
http://www.tldp.org/ldpwn/ldpwn-2002-04-30.html

There's also a Wiki to DocBook converter that's part of that project. 
http://www.tldp.org/wt2db/

WikiWords lend themselves nicely to terse but highly-specific, answers
too. It's not much more effort to say "That's the FAQ
vpopmailWithMaildrop" than "It's in the FAQ someplace."

- Ron






Re: [vchkpw] Urgent - vchkpw/vpopmail authenticate even with wrongpw?

2003-08-14 Thread Charles Sprickman
On Wed, 13 Aug 2003, jeff thomas wrote:

> Ok... I tried this fix.
>
> I edited vchkpw.c and removed the FOOB and ENDIF.
> recompiled.
>
> No luck. Same thing. Any password I put in still
> works.
>
> Thoughts?

Since you're using a pre-packaged build, I'd go here:

http://matt.simerson.net/cgi-bin/ezmlm.cgi

Search and then ask if anyone else using his script is having similar
problems.  While I have no argument with the bazillion "here's *my*
toaster" sites, you have to keep in mind that if you install using
someone else's knowledge, you'll have a hard time troubleshooting it when
things go wrong...  Just my 2 bits.

Charles

> --- Michael Bowe <[EMAIL PROTECTED]> wrote:
> > I just remembered that learn-passwords was broken in
> > 5.3.20, and then
> > eventually fixed in 5.3.24
> >
> http://sourceforge.net/tracker/index.php?func=detail&aid=783824&group_id=85937&atid=577798
> >
> > Maybe this has something to do with your problem?
> >
> > Michael.
> >
> > - Original Message -
> > From: "jeff thomas" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, August 13, 2003 6:47 PM
> > Subject: Re: [vchkpw] Urgent - vchkpw/vpopmail
> > authenticate even with wrong
> > pw?
> >
> >
> > > Learn passwords was enabled. However, it should
> > learn
> > > only the FIRST password entered for each
> > account
> > > not multiple passwords for each account.
> > >
> > > Right?
> > >
> > > It would seem logical that with learn-passwords,
> > the
> > > first time i put in the password for [EMAIL PROTECTED], it
> > > "learns" that password. If I try to log into
> > [EMAIL PROTECTED]
> > > with a different password, I should be rejected,
> > as it
> > > "learned" the first password.
> > >
> > >
> > >
> > >
> > > --- Michael Bowe <[EMAIL PROTECTED]> wrote:
> > > > I could be barking up the wrong tree here but...
> > > >
> > > > Perhaps did you configure vpopmail to "learn
> > > > passwords" ?
> > > >
> > > > It rings a bell for me that if you upgrade from
> > an
> > > > v4.x vpopmail, and you
> > > > enable clear passwords in your v5.2 vpopmail,
> > you
> > > > loose all your existing
> > > > passwords and the general way to recover from
> > this
> > > > is to enable vpopmail's
> > > > "learn passwords" functionality
> > > >
> > > > This could explain why "any password works". But
> > > > then again, once the
> > > > password has been learned, you shouldn't be able
> > to
> > > > go back and use some
> > > > other password and still get access
> > > >
> > > > Michael.
> > > >
> > > >
> > > > - Original Message -
> > > > From: "jeff thomas" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Wednesday, August 13, 2003 10:15 AM
> > > > Subject: [vchkpw] Urgent - vchkpw/vpopmail
> > > > authenticate even with wrong pw?
> > > >
> > > >
> > > > > Hello -
> > > > >
> > > > > I recently installed vpopmail 5.3.20 from
> > freebsd
> > > > > ports. I used Matt Simerson's FreeBSD Qmail
> > > > Toaster
> > > > > scripts to install it (it uses ports).
> > > > >
> > > > >
> > > > > That installed without problem. I installed
> > > > > courier-imap and squirrelmail as well as
> > > > sqwebmail. I
> > > > > noticed today that I can log into any of the
> > > > accounts
> > > > > via sqwebmail with any password. I can
> > literally
> > > > put
> > > > > in "xxx" for the password on my e-mail account
> > and
> > > > it
> > > > > will let me in. I tried it on squirrelmail
> > with
> > > > the
> > > > > same problem. So, then I tried simply logging
> > into
> > > > the
> > > > > POP3 account with "xyz" as the password. It,
> > too,
> > > > let
> > > > > me in with full access.
> > > > >
> > > > > This is bad - obviously. Anyone care to shed
> > some
> > > > > light on what I need to do to get this fixed
> > ASAP.
> > > > I
> > > > > upgraded from 4.9.x and use mysql4 for
> > > > authentication.
> > > > >
> > > > > Any and all help is appreciated.
> > > > >
> > > > > __
> > > > > Do you Yahoo!?
> > > > > Yahoo! SiteBuilder - Free, easy-to-use web
> > site
> > > > design software
> > > > > http://sitebuilder.yahoo.com
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> > > __
> > > Do you Yahoo!?
> > > Yahoo! SiteBuilder - Free, easy-to-use web site
> > design software
> > > http://sitebuilder.yahoo.com
> > >
> > >
> >
> >
>
>
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>
>



[vchkpw] doublebounces non-.qmail-default | /var/vpopmail/bin/vdelivermail'' delete

2003-08-14 Thread leonard
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,

To deal with spam/double-bounces,
I wrote in /var/qmail/control/doublebounceto : doublebounce
which is the name for a ".qmail-doublebounce" file
and in it I used  "| /var/vpopmail/bin/vdelivermail '' delete"
... like it was a .qmail-default.

Is this possible for regulars .qmail-aliases too ?
If not where do the eMails go ?

Thank you,
Maybe I found an easy way to deal w/ doublebounces...

Guillaume

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/O8hooqOw021SWZYRAkXnAJwKfqEGnnGOJqV411VuciijYcBYrACffFPg
rHK4gdi7Y0/OSWahNlcmIP4=
=gdL7
-END PGP SIGNATURE-



Re: [vchkpw] other fun vpopmail issues!

2003-08-14 Thread Rick Macdougall
HI,

What version of vpopmail are you trying to compile?

Regards,

Rick

David Gibbons wrote:

Okay on another note i'm having a boggling time getting the "Seekable" 
patch SpamAssassin wants to apply to vpopmail..
it patches fine but then on compile i get.. this is on a newly untared 
vpopmail with only allow-roaming users=y set in the config.

gcc -I. -Icdb -g -O2 -Wall -c seek.c
seek.c:24: conflicting types for `lseek'
/usr/include/stdio.h:278: previous declaration of `lseek'
*** Error code 1
has anyone else any idea what's going on? seems like vpopmail really 
doesn't like me this week.







[vchkpw] maildir quotas

2003-08-14 Thread Clayton Weise
I've had a problem for quite some time now and it never got answered on the
list, so I made a work around.  Was previously running domain-based maildrop
filters by piping to maildrop in my .qmail-default file but I ran into
problems with that.  For some reason, and I could never figure out exactly
what or where it was coming from, vpopmail would appear to intermittently
exit out with an error that would cause maildrop to exit tmpfail and requeue
the message.  It would only happen when spam was trying to deliver to
accounts that didn't exist.  maildrop would do what it was supposed to do
and hand it off to vpopmail, but every once in a while vpopmail would exit
with an error code other than 0 and the message would get requeued.  This
would, and rather quickly, gunk up the queue with a TON of "sorry, no
mailbox here by that name" rejections that would never get delivered.  If
anybody knows about this, it would be of great help.

To get past the problem, instead of having maildrop hand the message back to
vpopmail I'm just having maildrop deliver it directly by putting .qmail
files inside each users's directory.  This seems to work just great for
filtering purposes, but for some damn reason quotas aren't being enforced.
I've read the man files for maildrop and discovered that it gets the quota
from a MAILDIRQUOTA env variable, so I set that like this:

MAILDIRQUOTA=`/home/vpopmail/bin/vuserinfo -q [EMAIL PROTECTED]

When it comes time for delivery, after the filtering, right now I've just
got this:

to "./Maildir/"

maildrop delivers the message just fine, but it never changes the
maildirsize file.  Quotas never get enforced.  I tried piping it off to the
deliverquota program that comes with the maildrop suite but no dice their
either:

to "| /usr/local/bin/deliverquota ./Maildir/"

I must be missing something, and I'm hoping somebody can help.

-Clayton




[vchkpw] vpopmail (with MySQL & courier imap hack)

2003-08-14 Thread eLgino
Hi there,

I'm running qmail with vpopmail, courier imap/bla.
It works nice under FreeBSD 4.8

But i have one problem i have compiled vpopmail WITHOUT mysql, and WITH a
courier-imap hack see here:

THE HACK >> http://www.pofo.de/HOWTO/qmail/files/open_relay.c
env VPOPMAILDIR=`pw usershow vpopmail | cut -f9 -d':'`/etc \
/bin/sh -c 'gcc -o open_relay open_relay.c `cat $VPOPMAILDIR/inc_deps
$VPOPMAILDIR/lib_deps` -lcrypt'
install -o root -g wheel -m 755 open_relay /usr/local/bin/

its a smtp after imap/pop3 "hack"

but now i will deinstall vpopmail and install with MySQL support, but that
its not the problem

1. How can i delete the hack?
2. How can i setup the hack to work with vpopmail AND MySQL?

thanks in advance!

eLgino

PS: sorry for my poor english




Re: [vchkpw] Detailed installation instructions on FreeBSD -attached

2003-08-14 Thread Ron Guerin
On Wed, 2003-08-13 at 13:34, Evren Yurtesen wrote:
> Here is the detailed installation instructions from my own installation on
> FreeBSD!
> 
[snip]
> I also think that this might be included in vpopmail distribution. I came
> to 0.0.6 version of this document while fixing the mistakes in it though
> :) I am almost certain that I eliminated all the mistakes I did.

I was typing up an e-mail about this at about the same time you were
typing this message. ;)  I was fixing errors in a local copy of the html
man pages last week when I realized there must be other people who've
fixed the same errors, and that my time might be better spent trying to
gather documentation back into the project so we can all use it and
improve upon it.

- Ron




Re: [vchkpw] Re: "vpopmail documentation initiative"

2003-08-14 Thread Adam Hooper
Hehe. I know it doesn't really add to the discussion, but...:

I once made a FAQ interface for a completley unrelated project. I let 
people add their own FAQs with admin reviews, FAQs can have multiple 
categories, there's a nice search feature, everything was very dandy. I 
put in the first few FAQs myself and let users submit questions and 
answers as they found them. In the beginning, all was well.

But nobody wants to maintain it! I sure as hell don't, I find it 
infuriating. None of the 5 other admins can be bothered with it either. 
Users STILL use the faq all the time, with 6-month-old data, but nobody 
wants to bother keeping it up to date, because it takes lots of 
research, time and patience.

Worst of all, mailing-list questions don't disappear, they appear with 
just the same regularity. Except now the key phrase is "search the faq." 
Proper netizens are indeed grateful and spend time to offer suggestions, 
but proper netizens can usually find most answers on Google anyway, so 
they'd never ask the question in the first place! In brief, a FAQ does 
surprisingly little to quell mailing list/IRC/private email clutter.

I for one get MORE email I don't want, since I guess my email address 
draws peoples' attention more than the 'Contact us' link. One person has 
donated 10 dollars (US! Woo!) and beyond that I've spent countless hours 
replying to people with stuff like "I haven't the fogiest notion. Check 
the 'Contact us' link for people who know more."

To wrap up: In my experience, a FAQ is a f*cking pain. Good luck finding 
somebody who'll want to put that amount of time and effort -- I know 
I'll never do one again :).

And that's THAT off my chest ;).

(The project is http://openzaurus.org -- just a little plug for my 
favourite embedded distro!)

I might as well add something *constructive* to all this: I've heard and 
seen nothing but good things from Wikis. Sourceforge has all you need to 
set one up :). (I've used phpwiki, but as far as I know they're all 
quite similar.) I think a vpopmail Wiki could be quite useful.

--
Adam Hooper
[EMAIL PROTECTED]
Paul L. Allen wrote:
My apologies if I've offended anyone, but it's late, I've had a lot of
wine, and I've wanted to get that one off my chest for well over three
years. I even put my money where my mouth is.  If there is an FAQ (on 
whatever) and I have something useful I submit it to the maintainer.  But 
all too often the FAQ has been abandoned in favour of "search the archive."





  1   2   >