Re: [vchkpw] Qmail, vpopmail etc. migration: from Fedora Core 1 to CentOs

2007-04-30 Thread Joseph Oaks
Short answer, NO, libs are different...

Joe

Michele Virgilio [EMAIL PROTECTED] wrote: 


I need to migrate my old qmail installation on a Fedora Core 1 machine on
a
new CentOs machine.
It is possible to copy all data without reinstall (and configure)? How can
I
do?
Thanks.
Mik








Re: [vchkpw] Qmail, vpopmail etc. migration: from Fedora Core 1 to CentOs

2007-04-30 Thread Joseph Oaks
Sorry, hit wrong button...

No for the software side, depending on how you have your mail setup, courier
or pop3 depends on the mail itself. If it's pop3 you can move it just fine, 
as long as you setup vpopmail the same as before. If your using courier, 
you can use a program like imapsync (sourceforge) and sync the mail from 
old server to new server fairly easly.

I'm sure with more info, and more planning on your part you can get this 
done. Try to determine how your old server was setup, eg. vpopmail, using
mysql or cdb for the domains for 1, roaming encryption etc...

Joe

Joseph Oaks [EMAIL PROTECTED] wrote: 


Short answer, NO, libs are different...

Joe

Michele Virgilio [EMAIL PROTECTED] wrote: 


I need to migrate my old qmail installation on a Fedora Core 1 machine on
a
new CentOs machine.
It is possible to copy all data without reinstall (and configure)? How
can
I
do?
Thanks.
Mik










[vchkpw] upgrade?

2007-04-24 Thread Joseph Oaks
Hello all, I'm currently running on vpopmail 5.4.13 and want to upgrade 
to 5.4.17, however when I tried it (thank goodness for backups) it
complained
that the table did not exist. When the upgrade finished, I tried to do
vuserinfo email and the error came back as

vmysql: sql error[3]: Table 'vpopmail.trells_com' doesn't exist

The vpopmail.mysql file still works it connects but it seems it doesn't 
update the db. I'm not afraid of blowing this thing away completely and 
starting it fresh, but would like to find out if I can export the data,
build a fresh install, and then import it into the new vpopmail?

TIA

Joe




Re: [vchkpw] vchangepw?

2007-04-23 Thread Joseph Oaks
Stoyan, thanks for the info, however that didn't work either. Maybe if I
give a bit more info, all I'm doing is a simple php page
username
current_password
new_password
confirm_new_password

I then run a check to make sure the username is there in both the vpopmail
and egroupware, then I check the current password, since vpopmail had it
in clear text also, if it checks out I then need to update the db to the
new passwords, this works well only problem is then I get errors that the
authdaemond: supplied password 'somepassword' does not match encrypted
password '$1$UPRJCLMh$ORbRQDIoGJ/g18WgT4/4O.'

I even tried it as crypt()
all i'm doing on the sql side is this
$pw_crypt = crypt($new)
$sql_vpop = $dbv-query(UPDATE `vpopmail` SET `pw_clear_passwd` = '$new',
`pw_passwd` = ('$pw_crypt') WHERE `pw_name` = '$username';);

This updates just fine but the auth then fails with the above error...
Hopefully this will give a little more info on how I can get this to work.

Thanks,

Joe


Stoyan Marinov [EMAIL PROTECTED] wrote: 


Try using crypt() in php.

Stoyan

On Fri, 2007-04-20 at 11:25 -0700, Joseph Oaks wrote:

 Hello all, I'm trying to write a small app for the people in the office
to
 be able to change their passwords without buggin me. I have a simple
little
 PHP already done. It will change the password for both the eGroupWare
and
 vpopmail, however the vpopmail doesn't seem to like the md5
encryption...
 
 My first thought on this was just modify the db directly, with an
update,
 this works however it breaks the auth for mail, the egroupware side
works
 fine. So I got to checking and found the vchangepw in the vpopmail/bin
dir.
 
 My question is how can I call this via a script and pass the email
address,
 current password, and new password to it via variables?
 
 Joe
 
 






[vchkpw] vchangepw?

2007-04-20 Thread Joseph Oaks
Hello all, I'm trying to write a small app for the people in the office to
be able to change their passwords without buggin me. I have a simple little
PHP already done. It will change the password for both the eGroupWare and
vpopmail, however the vpopmail doesn't seem to like the md5 encryption...

My first thought on this was just modify the db directly, with an update,
this works however it breaks the auth for mail, the egroupware side works
fine. So I got to checking and found the vchangepw in the vpopmail/bin dir.

My question is how can I call this via a script and pass the email address,
current password, and new password to it via variables?

Joe




[vchkpw] Re: vchangepw?

2007-04-20 Thread Joseph Oaks
Second though, is vpopmail using MD5 or DES, or some other encryption?

Joe

Joseph Oaks [EMAIL PROTECTED] wrote: 


Hello all, I'm trying to write a small app for the people in the office to
be able to change their passwords without buggin me. I have a simple
little
PHP already done. It will change the password for both the eGroupWare and
vpopmail, however the vpopmail doesn't seem to like the md5 encryption...

My first thought on this was just modify the db directly, with an update,
this works however it breaks the auth for mail, the egroupware side works
fine. So I got to checking and found the vchangepw in the vpopmail/bin
dir.

My question is how can I call this via a script and pass the email
address,
current password, and new password to it via variables?

Joe






Re: [vchkpw] Dead aliases and EZMLM lists

2007-04-19 Thread Joseph Oaks
Max Esquivel [EMAIL PROTECTED] wrote: 


I recently installed the magicmail-smtpd drop in replacement for the  
standard qmail-smtpd, which adds a significant number of spam control  
possibilities.  Actually, spam traffic on my server, dropped to about  
half after the installation.  Nonetheless, after installing,  
qmailadmin created aliases dont work (I can create, modify and  
delete, but) messages sent to an alias result in a User does not  
exist error and the message is bounced back.  The same problem  
exists with ezmlm lists.  I can create, modify, etc via qmailadmin,  
but messages sent to the lists get bounced back with the same User  
does not exist error.

Any ideas?

Thanks!!

Max Esquivel


Max, I had the same issue, all I did was create a wrapper script, here it
is, it could be made better by someone with more skills than I (which dont'
take much)

# $Header:
/web/programmers/cvs/magicmail-backend/scripts/vpopmail-check-user.sh,v 1.2
2005/02/25 20:20:09 xu Exp $

#!/bin/sh

#EMAIL=$1
#ALIAS=`/opt/vpopmail-5.4.13/bin/valias $EMAIL | wc -l | grep 1 /dev/null
21 ; echo $?`
#USER=`/opt/vpopmail-5.4.13/bin/vuserinfo $EMAIL /dev/null 21; echo $? |
grep 0 /dev/null 21 ; echo $?`
#
#if [ $ALIAS -eq 0 ] || [ $USER -eq 0 ]; then
#exit 0
#else
#exit 1


EMAIL=$1

##
# Begin modification for TMDA
# Modified by Joseph Oaks
# Modifed on 7 June 2006
##
DOMAIN=`echo $1 | cut -d@ -f2`
TMDA_ADDRESS=`echo $1 | awk -F- -v DOMAIN=$DOMAIN '{print $1@DOMAIN}'`

TMDA=`/opt/vpopmail-5.4.13/bin/vuserinfo $TMDA_ADDRESS /dev/null 21; echo
$? | grep 0 /dev/null 21 ; echo $?`
##
# End TMDA modifications
##

ALIAS=`/opt/vpopmail-5.4.13/bin/valias $EMAIL | wc -l | grep 1 /dev/null
21 ; echo $?`
USER=`/opt/vpopmail-5.4.13/bin/vuserinfo $EMAIL /dev/null 21; echo $? |
grep 0 /dev/null 21 ; echo $?`

##
# Continue TMDA modification
##
if [ $TMDA -eq 0 ] || [ $ALIAS -eq 0 ] || [ $USER -eq 0 ]; then

  ##
  # Original text
  ##
  # if [ $ALIAS -eq 0 ] || [ $USER -eq 0 ]; then
  ##
  ##

##
# End TMDA modifications
##
exit 0
else
exit 1
fi

You can see my modifications to the vpopmail-check-user.sh
Of course you will have to modify your paths as I'm sure there not the same
as mine, but it helps...

Joe




Re: [vchkpw] Dead aliases and EZMLM lists

2007-04-19 Thread Joseph Oaks
Joseph Oaks [EMAIL PROTECTED] wrote: 


Max Esquivel [EMAIL PROTECTED] wrote: 


I recently installed the magicmail-smtpd drop in replacement for the  
standard qmail-smtpd, which adds a significant number of spam control  
possibilities.  Actually, spam traffic on my server, dropped to about  
half after the installation.  Nonetheless, after installing,  
qmailadmin created aliases dont work (I can create, modify and  
delete, but) messages sent to an alias result in a User does not  
exist error and the message is bounced back.  The same problem  
exists with ezmlm lists.  I can create, modify, etc via qmailadmin,  
but messages sent to the lists get bounced back with the same User  
does not exist error.

Any ideas?

Thanks!!

Max Esquivel



Guess I should mention that i had problems with the TMDA also so thats
why its there, same principle though...

Max, I had the same issue, all I did was create a wrapper script, here it
is, it could be made better by someone with more skills than I (which
dont'
take much)

# $Header:
/web/programmers/cvs/magicmail-backend/scripts/vpopmail-check-user.sh,v
1.2
2005/02/25 20:20:09 xu Exp $

#!/bin/sh

#EMAIL=$1
#ALIAS=`/opt/vpopmail-5.4.13/bin/valias $EMAIL | wc -l | grep 1
/dev/null
21 ; echo $?`
#USER=`/opt/vpopmail-5.4.13/bin/vuserinfo $EMAIL /dev/null 21; echo $?
|
grep 0 /dev/null 21 ; echo $?`
#
#if [ $ALIAS -eq 0 ] || [ $USER -eq 0 ]; then
#exit 0
#else
#exit 1


EMAIL=$1

##
# Begin modification for TMDA
# Modified by Joseph Oaks
# Modifed on 7 June 2006
##
DOMAIN=`echo $1 | cut -d@ -f2`
TMDA_ADDRESS=`echo $1 | awk -F- -v DOMAIN=$DOMAIN '{print $1@DOMAIN}'`

TMDA=`/opt/vpopmail-5.4.13/bin/vuserinfo $TMDA_ADDRESS /dev/null 21;
echo
$? | grep 0 /dev/null 21 ; echo $?`
##
# End TMDA modifications
##

ALIAS=`/opt/vpopmail-5.4.13/bin/valias $EMAIL | wc -l | grep 1
/dev/null
21 ; echo $?`
USER=`/opt/vpopmail-5.4.13/bin/vuserinfo $EMAIL /dev/null 21; echo $? |
grep 0 /dev/null 21 ; echo $?`

##
# Continue TMDA modification
##
if [ $TMDA -eq 0 ] || [ $ALIAS -eq 0 ] || [ $USER -eq 0 ]; then

  ##
  # Original text
  ##
  # if [ $ALIAS -eq 0 ] || [ $USER -eq 0 ]; then
  ##
  ##

##
# End TMDA modifications
##
exit 0
else
exit 1
fi

You can see my modifications to the vpopmail-check-user.sh
Of course you will have to modify your paths as I'm sure there not the
same
as mine, but it helps...

Joe






Fw: [vchkpw] List to send email for everybody for domain.

2006-09-21 Thread Aneesh Joseph



Hi,

A user can't send mail to all users in 
members directly. For that you have QmailAdmin details, you can create mailing 
list and do the same.




Regards,Aneesh 
Joseph System Administrator 





Internet Sales 
Promotion Group | Office: 91-484-4010972| Ext: 235| Mobile: 91 98950 12331|[EMAIL PROTECTED] | 28/118A, Parapilly Lane,, Panampilly Nagar | Cochin 682 036 |Kerala| 
India.

DISCLAIMER:This email (including any attachments) is intended for 
the sole use of the intended recipient/s and maycontain material that is 
CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by 
others or copying or distribution or forwarding of any or all of the contents in 
this message is STRICTLY PROHIBITED. If you are not the intended recipient, 
please contact the sender by email anddelete all copies; your cooperation in 
this regard is appreciated.. 
- Original Message - 
From: Juliano Souza - Tecnologia 
To: vchkpw@inter7.com 
Sent: Thursday, September 21, 2006 9:52 PM
Subject: [vchkpw] List to send email for everybody for 
domain.
How I can build an list [EMAIL PROTECTED] to send emails for everyone for 
domain?I've read vpopbull, but only the mail admin can send emails 
via vpopbull.How can an simple user can send emails for everyone without 
vpopbull.Thanks-- Juliano Souza"The day Microsoft 
makes something that doesn't suck is probably the day they start making vacuum 
cleaners."
!DSPAM:4513625378531039498879!






Re: [vchkpw] tcpserver error

2006-08-23 Thread Aneesh Joseph



- Original Message - 

From: Doug Appleton 

To: vchkpw@inter7.com 
Sent: Wednesday, August 23, 2006 6:42 PM
Subject: [vchkpw] tcpserver error
Has anyone ever seen this type of error before? telnet 
localhost 25Trying 127.0.0.1...Connected to localhost.localdomain 
(127.0.0.1).Escape character is '^]'.tcpserver: fatal: unable to bind: 
access deniedConnection closed by foreign host.Any ideas on how to fix 
this? Doug

Hi,

Pls make sure that smtp service is 
running.


Thanks  Regards,

Aneesh Joseph System 
Administrator Internet Sales Promotion 
Group28/118A, Parapilly Lane, Panampilly Nagar,Cochin , Kerala 
-682036Ph : 91 484 4010972, Mobile :91 9895012331E-mail : [EMAIL PROTECTED]


[vchkpw] cannot find -lmysqlclient

2006-08-08 Thread Aneesh Joseph



Hi ,

I am getting the following error when 
installing vpopmail with mysql(vpopmail-5.4.9 + Mysql 5).
any idea ?

gcc -g -O2 -Wall -o vchkpw vchkpw.o md5.o 
hmac_md5.o libvpopmail.a -L/usr/lib/mysql -lmysqlclient -lz -lm 
-lcrypt/usr/bin/ld: cannot find 
-lmysqlclientcollect2: ld returned 1 exit statusmake[2]: *** 
[vchkpw] Error 1make[2]: Leaving directory 
`/downloads/qmailrocks/vpopmail-5.4.9'make[1]: *** [all-recursive] Error 
1make[1]: Leaving directory `/downloads/qmailrocks/vpopmail-5.4.9'make: 
*** [all] Error 2
Thanks  Regards,

Aneesh Joseph System 
Administrator Internet Sales Promotion 
Group28/118A, Parapilly Lane, Panampilly Nagar,Cochin , Kerala 
-682036Ph : 91 484 4010972, Mobile :91 9895012331E-mail : [EMAIL PROTECTED] ; [EMAIL PROTECTED]


Re: [vchkpw] Segmentation fault on one domain

2005-07-03 Thread joseph . clark
I found the problem. It was in the vpasswd file. Some how there was an ^G
at the end of one of the lines along with a space between it and the next
user. Thanks for the info.
-- 
Joseph Clark
Systems Administrator
SimplePC (www.SimplePC.com)
Office: (864) 229-2447
Cell: (864) 980-3631
Email: [EMAIL PROTECTED]

 On Jul 2, 2005, at 12:34 PM, [EMAIL PROTECTED] wrote:
 I'm using cdb for the password database. This domain was working fine
 up
 until Thursday. Which on Wendsday I was working on removing and
 readding
 some accounts with quotas enabled through the vqadmin web interface.

 Try deleting vpasswd.cdb and then see what happens.  If you still have
 problems, look at the vpasswd file for corruption, especially the
 entries before and after the qwerty1234 user.

 --
 Tom Collins  -  [EMAIL PROTECTED]
 QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
 You don't need a laptop to troubleshoot high-speed Internet:
 sniffter.com






[vchkpw] Segmentation fault on one domain

2005-07-02 Thread joseph . clark
I am getting a segmentation fault when I try to do anything with one of
the domains I am administering.

[EMAIL PROTECTED] bin]# ./vadduser [EMAIL PROTECTED] qwerty
Segmentation fault
[EMAIL PROTECTED] bin]# ./vdeluser [EMAIL PROTECTED]
Error: User does not exist
[EMAIL PROTECTED] bin]# grep qwerty1234 ../domains/simplepc.net/vpasswd
qwerty1234:$1$ubLHGoNZ$.uvLADXZbqrxEVZqssRzz0:1:0:qwerty1234:/home/vpopmail/domains/simplepc.net/7/qwerty1234:NOQUOTA:qwerty
[EMAIL PROTECTED] bin]# find /home/vpopmail/domains/simplepc.net/ -name 
qwerty1234
/home/vpopmail/domains/simplepc.net/7/qwerty1234
[EMAIL PROTECTED] bin]# ./vuserinfo [EMAIL PROTECTED]
no such user [EMAIL PROTECTED]
[EMAIL PROTECTED] bin]# ./vadduser -v
version: 5.4.10

I'm using cdb for the password database. This domain was working fine up
until Thursday. Which on Wendsday I was working on removing and readding
some accounts with quotas enabled through the vqadmin web interface.


-- 
Joseph Clark
Systems Administrator
SimplePC (www.SimplePC.com)
Office: (864) 229-2447
Email: [EMAIL PROTECTED]



RE: [vchkpw] Recomendations for best spam rejection

2004-09-16 Thread Joseph B Schmitt II


 -Original Message-
 From: Jon LaBass [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 16, 2004 10:49 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [vchkpw] Recomendations for best spam rejection


  Hi,
 
  how can I use SA global in qmail, with dropping of Mails that
  have more than 10 points of score?
 
  So that this mails that are definitly spam don't deliver to the
  user?
 
  That would extremly reduce our traffic and spam mails in the customer
  mailbox.
 
  Greetings
  Jan
 
   -Original Message-
   From: Matthew Walker [mailto:[EMAIL PROTECTED]
   Sent: Thursday, September 16, 2004 7:06 PM
   To: [EMAIL PROTECTED]
   Subject: Re: [vchkpw] Recomendations for best spam rejection
  
   Oh, yes. I have to second the ClamAV (or /any/ antivirus, really).
  
  
   On Thu, 16 Sep 2004 11:58:13 -0500, Ken Jones [EMAIL PROTECTED] wrote:
   
   
On Thursday 16 September 2004 11:40 am, Andrew
   Niemantsverdriet wrote:
 I am doing a major upgrade to our mail server and I am looking for
 recommendations for programs and qmail patches to limit
   the amount of
 spam that gets through. What are you guys using that has
   great success?
   
I would recommend using an RBL list. Using a check-user patch to
qmail-smtpd. And using a combination of spamassassin and clamav.
   
Ken Jones
   
  
 
 

 Compile vpopmail with  SPAM_THRESHOLD=10 and any message scored at 10.0 or
 above will not be delivered.

 Jon



as all others said SA and Clamd.

we use Clamd tapped into qmail-scanner w/virus updates as notifications are
sent.

we process SA though dot-qmail+maildrop with user-preferences as well as
only processing SA for *real* users.  the difficuly we've seen is there is
so much spam to non-existant accounts we needed to quit wasting SA
processing time.  in addition, we use a little SA cluster: 8 boxes
processing SA, with NFS'd bayesDB and a custom weighted random rotator
script.

--joey



RE: [vchkpw] QMail + Vpopmail vs. Postfix + Cyrus IMAP

2004-09-09 Thread Joseph Schmitt II
 -Original Message-
 From: Rainer Duffner [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 08, 2004 4:52 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [vchkpw] QMail + Vpopmail vs. Postfix + Cyrus IMAP
 
 
 Am Mi, den 08.09.2004 schrieb Michael Bowe um 23:20:
 
  But! whenever I demonstrate the vpopmail software to any of the guys
  at my new place of employment, they are the ones who are marvelling at 
  the ease of use and features of vpopmail.
 
 Indeed.
 Postfix _is_ nice (cyrus is debatable, IMO), but what use is a mailserver
without any webinterface for customers to add/modify/delete their users?
 
 There are lots of bits and pieces around, but no complete package. Just
compare what is available to postfix with
 qmail+patches^3+vpopmail+qmailadmin and see which one you want to start
 with.
 
 
 
 cheers,
 Rainer
 -- 
 ===
 ~ Rainer Duffner - [EMAIL PROTECTED] ~
 ~   Freising - Munich - Germany   ~
 ~Unix - Linux - BSD - OpenSource - Security   ~
 ~  http://www.ultra-secure.de/~rainer/pubkey.pgp  ~
===
 

Somehow I worry the discussion of MTA+MDA will venture to an evangelistic
argument/discussion (much like that between linux/windows/mac etc).

When we first came to the need for a more powerful MTA back in 1999,
qmail+vpopmail+qmailadmin seemed to be the best features wise, and
administration wise.  In dealing with the ever growing spam, a re-evaluation
in 2003 lead us to believe that qmail+vpopmail+qmailadmin still had a slight
edge over the others, including postfix.

As Rainer said, it seems that postfix has more upfront, but it still seems
that qmail can be patched very well.  Currently, I'm running
qmail+vpopmail+qmailadmin, qmail-scanner w/ClamAV, mailfilter invoking
SpamAssassin for userbased SA.

Qmails only holdback is the lack of development (but does a stable secure
MTA need development?), patches add features as needed. But, its not like
MTA requirements has changed over the years, it's the MDA, and that's easy
to plug something else in its place.

--joey




RE: [vchkpw] warning: dropping connection, unable to read /home/vpopmail/etc/tcp.smtp.cdb: access denied

2004-09-08 Thread Joseph Schmitt II
Title: Message




  -Original Message-From: Itamar Reis 
  Peixoto [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 
  08, 2004 4:46 PMTo: [EMAIL PROTECTED]Subject: [vchkpw] 
  warning: dropping connection, unable to read /home/vpopmail/etc/tcp.smtp.cdb: 
  access denied
  tcpserver: warning: dropping connection, unable 
  to read /home/vpopmail/etc/tcp.smtp.cdb: access denied
  
  
  Itamar Reis PeixotoAnalista 
  ConsultorTreyNet Consultoria - UberlândiaTel : + 55 34 3231 
  0598Cel: +55 38 9107 1250http://www.treynet.com.br
  
  
  check your permissionsfrom /home/vpopmail down to 
  /home/vpopmail/etc/tcp.smtp.cdb... making sure its ownership vpopmail:vchkpw 
  and one thing i've noticed is you need permissions 755 down to 
  /home/vpopmail/etc/ and 644 on tcp.smtp.cdb.
  
  --joey


RE: [vchkpw] chaning passwords

2004-09-08 Thread Joseph Schmitt II
 -Original Message-
 From: Alexandre Vieira [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 08, 2004 7:02 PM
 To: [EMAIL PROTECTED]
 Subject: [vchkpw] chaning passwords
 
 
 Hello folks,
 
   I'm running qmail(smtpd+pop3d)+vpopmail in my FreeBSD 4.10-STABLE 
 system and I wanted to know if there is any possible way to give the 
 mail users the power to change theyr virtual account password. My 
 clients are arguing because they have to send an email to the 
 sysadmin 
 to change passwords and that is not convenient.
 
 thanks alot!


http://www.mail-archive.com/vchkpw%40inter7.com/msg19253.html

This was *JUST* discussed But an alternative that I use:
squirrelmail+vpopmail plugin:
http://www.squirrelmail.org/plugin_view.php?id=103



RE: [vchkpw] chaning passwords

2004-09-08 Thread Joseph Schmitt II
 -Original Message-
 From: Alexandre Vieira [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 08, 2004 9:01 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [vchkpw] chaning passwords
 
 
 Joseph Schmitt II wrote:
 
 -Original Message-
 From: Alexandre Vieira [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, September 08, 2004 7:02 PM
 To: [EMAIL PROTECTED]
 Subject: [vchkpw] chaning passwords
 
 
 Hello folks,
 
   I'm running qmail(smtpd+pop3d)+vpopmail in my FreeBSD 4.10-STABLE
 system and I wanted to know if there is any possible way to 
 give the 
 mail users the power to change theyr virtual account password. My 
 clients are arguing because they have to send an email to the 
 sysadmin 
 to change passwords and that is not convenient.
 
 thanks alot!
 
 
 
 
 http://www.mail-archive.com/vchkpw%40inter7.com/msg19253.html
 
 This was *JUST* discussed But an alternative that I use:
 squirrelmail+vpopmail plugin:
  http://www.squirrelmail.org/plugin_view.php?id=103
 
 
   
 
 Hello,
 
 Thanks for your input but I wasn't explicit enough. We use a 
 non-browsing services, it's just simple smtp/pop3 with no panels. 
 However, this users have shell access to the server and I was 
 thinking 
 that maybe there were a way to modify passwords with the 
 bin/vchangepw 
 but when i use it as a regular user it gives me the following 
 error (and 
 yes the user exists):
 
 %/usr/local/vpopmail/bin/vchangepw
 Please enter the email address: [EMAIL PROTECTED] 
 [EMAIL PROTECTED] Enter old password: Please enter password 
 for [EMAIL PROTECTED]: enter password again:
 Error: Illegal username
 %
 
 [EMAIL PROTECTED]:/usr/local/vpopmail]# bin/vuserinfo [EMAIL PROTECTED]
 name:   user
 passwd: $1$zAJePsFq$.1xA6YSFPeqanov4WvqRQ0
 clear passwd:
 uid:1
 gid:0
 flags:  0
 gecos: Username
 limits: No user limits set.
 dir:   /usr/local/vpopmail/domains/domain.tld/user
 quota: NOQUOTA
 usage: NOQUOTA
 last auth: Thu Sep  9 01:25:36 2004
 last auth ip: 127.0.0.1
 [EMAIL PROTECTED]:/usr/local/vpopmail]#
 
 If anyone has any light on this one i would apreciate.
 
 Thanks alot!
 
Ownership of vchangepw probably wont allow normal users to run, and you most
likely wouldn't want that for security reasons. 

You could make your own perl script (suid vpopmail:vchkpw), and when run,
prompt for the full email addres, prompt the old password to check, and upon
success, accept the new password that you could then pass to the vpopmail
perl module (below), system the vchangepw, or just make the changes to mysql
(if you're using) with perl DBI.

There is a really old perl module that might still work here:   
http://bluedot.net/projects/vpopmail.html

--joey
 



RE: [vchkpw] Re: [toaster] qmailadmin / vpopmail / autorespond 2.0.4 issue, mail loses

2004-08-10 Thread Joseph B Schmitt II
 -Original Message-
 From: Tom Collins [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 10, 2004 10:14 AM
 To: [EMAIL PROTECTED]
 Cc: vpopmail list
 Subject: [vchkpw] Re: [toaster] qmailadmin / vpopmail / autorespond
 2.0.4 issue, mail loses


 On Aug 10, 2004, at 3:40 AM, Eero Volotinen wrote:
  Looks like that if using qmailadmin with autorespond 2.0.4, if and
  email that received too many messages with vacation / autoresponder on
  , is losing mail due to wrong exit level? (99 - stop processing .qmail
  file)
 
  Can you confirm this? I noticed that today.

 Steve Fulton patched vdelivermail.c to get around this problem.  Fixing
 autorespond is probably a better solution.


I've just ran into this issue about a week ago, Jeremy has a patch to
force/fix the autorespond exit codes to (0) regardless.  Apparently,
autorespond exits(99) if you've excedded the time/num max.



http://sourceforge.net/tracker/index.php?func=detailaid=808962group_id=669
1atid=306691

--joey



RE: [vchkpw] Re: vpopmail with Postifix

2004-04-28 Thread Joseph Schmitt II
 (http://www.credentia.cc/research/surveys/smtp/200304/)
   8244 38.78% Sendmail
   3707 17.44% Microsoft IIS/Other
   1981 9.32% qmail
 
 Shows qmail in the number 3 slot. 

I'm hoping you don't consider MS IIS/SMTP service as a MDA... And
remember as a MTA, it probably has no real associated users.



 As I stated, we are an ISP, not an end user.  I think our stats will 
 tend to reflect what the majority of ISP (hence majority of 
 high volume mail servers) are using.

Something like this could use a central DB repository handling unique
IPs/MTA

Setup accounts for the IPS/groups who'd use it with a profile...

I'm not sure where to get the MTA info from, but if that's figured
easily, I could front some DB space... 

--joey



Re: [vchkpw] vpopmail 5.4.0 Make error on Solaris 9 (possible solution)

2004-02-26 Thread Joseph Bruzzo
In order for me to do this will I need to install RCS or do I just
download the file, do a diff or do I just replace the old configure.in
with the new configure.in

Sorry not sure on how to do this.  Your assistance will be greatly
appreciated.

Thanks

 On Feb 24, 2004, at 8:14 AM, Joseph Bruzzo wrote:
 I am trying to compile vpopmail-5.4.0 on a SUN Ultra 5 running Solaris
  9
 with all the security and recommended patches.  But I keep on getting
 this error that for the life of me I can not figure it out.

 Please try this patch to configure.in:

 RCS file: /cvsroot/vpopmail/vpopmail/configure.in,v
 retrieving revision 1.27
 diff -u -r1.27 configure.in
 --- configure.in22 Feb 2004 22:17:41 -  1.27
 +++ configure.in24 Feb 2004 17:06:26 -
 @@ -199,7 +199,7 @@

   case $host in
 *-*-solaris*)
 -extralibflags=-R$libdir
 +extralibflags=-R$libdir -lnsl -lsocket
   AC_MSG_WARN(Solaris install detected.  Using extralibflags for
 linking: $extralibflags)
   ;;
 *)

 And then run autoconf to rebuild configure.

 Or, better for our testing, edit configure manually, look for that
 line, and update it.

 I found some entries in the ChangeLog that seem to indicate that one or
 both of those libs are necessary to properly build vpopmail on Solaris.

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



--
HigherAccess.com for web and email hosting needs.
http://www.higheraccess.com/




[vchkpw] vpopmail 5.4.0 Make error on Solaris 9

2004-02-24 Thread Joseph Bruzzo

Hi to all,

I am trying to compile vpopmail-5.4.0 on a SUN Ultra 5 running Solaris 9
with all the security and recommended patches.  But I keep on getting
this error that for the life of me I can not figure it out.

Can anyone help???

my Configuration options are as follows:

bash-2.05# crle -c /var/ld/ld.config -l
/usr/lib:/usr/local/lib:/usr/local/ssl/lib:/usr/local/mysql/lib

bash-2.05# ./configure --enable-roaming-users=n --enable-logging=p
--enable-ip-alias-domains=n --enable-passwd=n --enable-clear-passwd=y
--enable-domain-quotas=n --enable-auth-module=mysql
--enable-incdir=/usr/local/mysql/include
--enable-libdir=/usr/local/mysql/lib --enable-many-domains=n
--enable-auth-logging=y --enable-mysql-logging=y --enable-valias=y
--enable-mysql-limits=n

vpopmail 5.4.0
Current settings
---

vpopmail directory = /var/vpopmail
   uid = 725
   gid = 725
 roaming users = OFF --disable-roaming-users (default)
 password learning = OFF --disable-learn-passwords (default)
 md5 passwords = ON  --enable-md5-passwords (default)
  file locking = ON  --enable-file-locking (default)
vdelivermail fsync = OFF --disable-file-sync (default)
 make seekable = ON  --enable-make-seekable (default)
  clear passwd = ON  --enable-clear-passwd (default)
 user dir hashing  = ON  --enable-users-big-dir (default)
address extensions = OFF --disable-qmail-ext (default)
  ip alias = OFF --disable-ip-alias-domains (default)
 domain quotas = OFF --disable-domainquotas (default)
   auth module = mysql --enable-auth-module=mysql
 mysql replication = OFF --disable-mysql-replication (default)
 mysql logging = ON  --enable-mysql-logging
  mysql limits = OFF --disable-mysql-limits (default)
  MySQL valias = ON  --enable-valias
  auth inc = -I/usr/local/mysql/include
  auth lib = -L/usr/local/mysql/lib -R${exec_prefix}/lib
-lmysqlclient -lz
  system passwords = OFF --disable-passwd (default)
pop syslog = show failed attempts with clear text password
 --enable-logging=p
  auth logging = ON  --enable-auth-logging (default)
one domain per SQL table = --disable-many-domains

bash-2.05# /usr/ccs/bin/make  ## This produces the error below...


gcc -I. -I/usr/local/mysql/include  -I. -I. -I. -g -O2 -Wall -c
`test -f 'vchkpw.c' || echo './'`vchkpw.c gcc -I.
-I/usr/local/mysql/include -I. -I. -I. -g -O2 -Wall -c `test -f
'hmac_md5.c' || echo
'./'`hmac_md5.c hmac_md5.c: In function `hmac_md5':
hmac_md5.c:52: warning: implicit declaration of function `bzero'
hmac_md5.c:54: warning: implicit declaration of function `bcopy'
gcc  -g -O2 -Wall   -o vchkpw  vchkpw.o md5.o hmac_md5.o libvpopmail.a
-L/usr/local/mysql/lib -R/usr/local/lib -lmysqlclient -lz -lcrypt
Undefined   first referenced
 symbol in file
socket
/usr/local/mysql/lib/libmysqlclient.a(libmysql.o) getpeername
   /usr/local/mysql/lib/libmysqlclient.a(viosocket.o)
gethostbyname_r
/usr/local/mysql/lib/libmysqlclient.a(libmysql.o) setsockopt
   /usr/local/mysql/lib/libmysqlclient.a(viosocket.o)
getservbyname
/usr/local/mysql/lib/libmysqlclient.a(libmysql.o) floor
   /usr/local/mysql/lib/libmysqlclient.a(password.o) inet_addr
  /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
inet_ntoa
/usr/local/mysql/lib/libmysqlclient.a(my_net.o) shutdown
 /usr/local/mysql/lib/libmysqlclient.a(viosocket.o) connect
 /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
ld:
fatal: Symbol referencing errors. No output written to vchkpw
collect2: ld returned 1 exit status
make[2]: *** [vchkpw] Error 1
make[2]: Leaving directory `/tmp/vpopmail-5.4.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/vpopmail-5.4.0'
make: *** [all] Error 2



Any help will be greatly appreciated.  Also, thank you in advance.



--
HigherAccess.com for web and email hosting needs.
http://www.higheraccess.com/




RE: [vchkpw] vpopmail 5.4.0 Make error on Solaris 9

2004-02-24 Thread Joseph Bruzzo
I am currently running gcc-3.3, zlib-1.2.1. I will upgrade my gcc to 3.3.2
and try it again.  If that doesn't work do you have any other ideas.  It
would be greatly appreciated.

I have the life with qmail book.  thanks for the tidbit.

Joseph Bruzzo


 I've run into countless problems compiling stuff on Solaris 8. The first
 thing you should do is make sure you are using a recent version of gcc,
 not the cc or gcc that came with Solaris. You may have to change
 configure to point to your new gcc. Find gcc and other precompiled
 binaries at
 sunfreeware.com

 I also found some tidbits that are Solaris specific on the life with
 qmail site.

 Take Care,

 Tony Rini

 -Original Message-
 From: Joseph Bruzzo [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 24, 2004 7:14 AM
 To: [EMAIL PROTECTED]
 Subject: [vchkpw] vpopmail 5.4.0 Make error on Solaris 9


 Hi to all,

 I am trying to compile vpopmail-5.4.0 on a SUN Ultra 5 running Solaris 9
 with all the security and recommended patches.  But I keep on getting
 this error that for the life of me I can not figure it out.

 Can anyone help???

 my Configuration options are as follows:

 bash-2.05# crle -c /var/ld/ld.config -l
 /usr/lib:/usr/local/lib:/usr/local/ssl/lib:/usr/local/mysql/lib

 bash-2.05# ./configure --enable-roaming-users=n --enable-logging=p
 --enable-ip-alias-domains=n --enable-passwd=n --enable-clear-passwd=y
 --enable-domain-quotas=n --enable-auth-module=mysql
 --enable-incdir=/usr/local/mysql/include
 --enable-libdir=/usr/local/mysql/lib --enable-many-domains=n
 --enable-auth-logging=y --enable-mysql-logging=y --enable-valias=y
 --enable-mysql-limits=n

 vpopmail 5.4.0
 Current settings
 ---

 vpopmail directory = /var/vpopmail
uid = 725
gid = 725
  roaming users = OFF --disable-roaming-users (default)
  password learning = OFF --disable-learn-passwords (default)
  md5 passwords = ON  --enable-md5-passwords (default)
   file locking = ON  --enable-file-locking (default)
 vdelivermail fsync = OFF --disable-file-sync (default)
  make seekable = ON  --enable-make-seekable (default)
   clear passwd = ON  --enable-clear-passwd (default)
  user dir hashing  = ON  --enable-users-big-dir (default)
 address extensions = OFF --disable-qmail-ext (default)
   ip alias = OFF --disable-ip-alias-domains (default)
  domain quotas = OFF --disable-domainquotas (default)
auth module = mysql --enable-auth-module=mysql
  mysql replication = OFF --disable-mysql-replication (default)
  mysql logging = ON  --enable-mysql-logging
   mysql limits = OFF --disable-mysql-limits (default)
   MySQL valias = ON  --enable-valias
   auth inc = -I/usr/local/mysql/include
   auth lib = -L/usr/local/mysql/lib -R${exec_prefix}/lib
 -lmysqlclient -lz
   system passwords = OFF --disable-passwd (default)
 pop syslog = show failed attempts with clear text password
  --enable-logging=p
   auth logging = ON  --enable-auth-logging (default)
 one domain per SQL table = --disable-many-domains

 bash-2.05# /usr/ccs/bin/make  ## This produces the error below...


 gcc -I. -I/usr/local/mysql/include  -I. -I. -I. -g -O2 -Wall -c
 `test -f 'vchkpw.c' || echo './'`vchkpw.c gcc -I.
 -I/usr/local/mysql/include -I. -I. -I. -g -O2 -Wall -c `test -f
 'hmac_md5.c' || echo
 './'`hmac_md5.c hmac_md5.c: In function `hmac_md5':
 hmac_md5.c:52: warning: implicit declaration of function `bzero'
 hmac_md5.c:54: warning: implicit declaration of function `bcopy'
 gcc  -g -O2 -Wall   -o vchkpw  vchkpw.o md5.o hmac_md5.o libvpopmail.a
 -L/usr/local/mysql/lib -R/usr/local/lib -lmysqlclient -lz -lcrypt
 Undefined   first referenced
  symbol in file
 socket
 /usr/local/mysql/lib/libmysqlclient.a(libmysql.o) getpeername
/usr/local/mysql/lib/libmysqlclient.a(viosocket.o)
 gethostbyname_r
 /usr/local/mysql/lib/libmysqlclient.a(libmysql.o) setsockopt
/usr/local/mysql/lib/libmysqlclient.a(viosocket.o)
 getservbyname
 /usr/local/mysql/lib/libmysqlclient.a(libmysql.o) floor
/usr/local/mysql/lib/libmysqlclient.a(password.o) inet_addr
   /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
 inet_ntoa
 /usr/local/mysql/lib/libmysqlclient.a(my_net.o) shutdown
  /usr/local/mysql/lib/libmysqlclient.a(viosocket.o) connect
  /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
 ld:
 fatal: Symbol referencing errors. No output written to vchkpw
 collect2: ld returned 1 exit status
 make[2]: *** [vchkpw] Error 1
 make[2]: Leaving directory `/tmp/vpopmail-5.4.0'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/tmp/vpopmail-5.4.0'
 make: *** [all] Error 2



 Any help will be greatly appreciated.  Also, thank you in advance

RE: [vchkpw] vpopmail 5.4.0 Make error on Solaris 9

2004-02-24 Thread Joseph Bruzzo
Thanks for the input.  I will install gmake and give it a try as well.  I
will post the results of my install.

Thnks
Joseph Bruzzo

 I seem to remember having to use gmake to get things going smoothly. I
 haven't performed a qmail install on Solaris 9 so I'm afraid that I
 don't have any experience in your exact environment. Sol8 on sparc sure
 caused a few headaches with an older qmail/vpopmail release, I'm hoping
 things are better now.

 Good luck and post any solutions you find.

 Take Care,
 Tony Rini

 -Original Message-
 From: Joseph Bruzzo [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 24, 2004 8:13 AM
 To: [EMAIL PROTECTED]
 Subject: RE: [vchkpw] vpopmail 5.4.0 Make error on Solaris 9

 I am currently running gcc-3.3, zlib-1.2.1. I will upgrade my gcc to
 3.3.2 and try it again.  If that doesn't work do you have any other
 ideas.  It would be greatly appreciated.

 I have the life with qmail book.  thanks for the tidbit.

 Joseph Bruzzo


 I've run into countless problems compiling stuff on Solaris 8. The
 first thing you should do is make sure you are using a recent version
 of gcc, not the cc or gcc that came with Solaris. You may have to
 change configure to point to your new gcc. Find gcc and other
 precompiled binaries at
 sunfreeware.com

 I also found some tidbits that are Solaris specific on the life with
 qmail site.

 Take Care,

 Tony Rini

 -Original Message-
 From: Joseph Bruzzo [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 24, 2004 7:14 AM
 To: [EMAIL PROTECTED]
 Subject: [vchkpw] vpopmail 5.4.0 Make error on Solaris 9


 Hi to all,

 I am trying to compile vpopmail-5.4.0 on a SUN Ultra 5 running Solaris
 9 with all the security and recommended patches.  But I keep on
 getting this error that for the life of me I can not figure it out.

 Can anyone help???

 my Configuration options are as follows:

 bash-2.05# crle -c /var/ld/ld.config -l
 /usr/lib:/usr/local/lib:/usr/local/ssl/lib:/usr/local/mysql/lib

 bash-2.05# ./configure --enable-roaming-users=n --enable-logging=p
 --enable-ip-alias-domains=n --enable-passwd=n --enable-clear-passwd=y
 --enable-domain-quotas=n --enable-auth-module=mysql
 --enable-incdir=/usr/local/mysql/include
 --enable-libdir=/usr/local/mysql/lib --enable-many-domains=n
 --enable-auth-logging=y --enable-mysql-logging=y --enable-valias=y
 --enable-mysql-limits=n

 vpopmail 5.4.0
 Current settings
 ---

 vpopmail directory = /var/vpopmail
uid = 725
gid = 725
  roaming users = OFF --disable-roaming-users (default)
  password learning = OFF --disable-learn-passwords (default)
  md5 passwords = ON  --enable-md5-passwords (default)
   file locking = ON  --enable-file-locking (default)
 vdelivermail fsync = OFF --disable-file-sync (default)
  make seekable = ON  --enable-make-seekable (default)
   clear passwd = ON  --enable-clear-passwd (default)
  user dir hashing  = ON  --enable-users-big-dir (default)
 address extensions = OFF --disable-qmail-ext (default)
   ip alias = OFF --disable-ip-alias-domains (default)
  domain quotas = OFF --disable-domainquotas (default)
auth module = mysql --enable-auth-module=mysql
  mysql replication = OFF --disable-mysql-replication (default)
  mysql logging = ON  --enable-mysql-logging
   mysql limits = OFF --disable-mysql-limits (default)
   MySQL valias = ON  --enable-valias
   auth inc = -I/usr/local/mysql/include
   auth lib = -L/usr/local/mysql/lib -R${exec_prefix}/lib
 -lmysqlclient -lz
   system passwords = OFF --disable-passwd (default)
 pop syslog = show failed attempts with clear text password
  --enable-logging=p
   auth logging = ON  --enable-auth-logging (default)
 one domain per SQL table = --disable-many-domains

 bash-2.05# /usr/ccs/bin/make  ## This produces the error below...


 gcc -I. -I/usr/local/mysql/include  -I. -I. -I. -g -O2 -Wall -c
 `test -f 'vchkpw.c' || echo './'`vchkpw.c gcc -I.
 -I/usr/local/mysql/include -I. -I. -I. -g -O2 -Wall -c `test -f
 'hmac_md5.c' || echo
 './'`hmac_md5.c hmac_md5.c: In function `hmac_md5':
 hmac_md5.c:52: warning: implicit declaration of function `bzero'
 hmac_md5.c:54: warning: implicit declaration of function `bcopy' gcc
 -g -O2 -Wall   -o vchkpw  vchkpw.o md5.o hmac_md5.o libvpopmail.a
 -L/usr/local/mysql/lib -R/usr/local/lib -lmysqlclient -lz -lcrypt
 Undefined   first referenced
  symbol in file
 socket
 /usr/local/mysql/lib/libmysqlclient.a(libmysql.o) getpeername
/usr/local/mysql/lib/libmysqlclient.a(viosocket.o)
 gethostbyname_r
 /usr/local/mysql/lib/libmysqlclient.a(libmysql.o) setsockopt
/usr/local/mysql/lib/libmysqlclient.a(viosocket.o)
 getservbyname
 /usr/local/mysql/lib/libmysqlclient.a(libmysql.o) floor
/usr/local/mysql/lib/libmysqlclient.a

[vchkpw] Make error on Solaris 9

2004-02-23 Thread Joseph Bruzzo
Hi to all,

I am trying to compile vpopmail-5.4.0 on a SUN Ultra 5 running Solaris 9
with all the security and recommended patches.  But I keep on getting this
error that for the life of me I can not figure it out.

Can anyone help???

my Configuration options are as follows:

bash-2.05# crle -c /var/ld/ld.config -l
/usr/lib:/usr/local/lib:/usr/local/ssl/lib:/usr/local/mysql/lib

bash-2.05# ./configure --enable-roaming-users=n --enable-logging=p
--enable-ip-alias-domains=n --enable-passwd=n --enable-clear-passwd=y
--enable-domain-quotas=n --enable-auth-module=mysql
--enable-incdir=/usr/local/mysql/include
--enable-libdir=/usr/local/mysql/lib --enable-many-domains=n
--enable-auth-logging=y --enable-mysql-logging=y --enable-valias=y
--enable-mysql-limits=n

vpopmail 5.4.0
Current settings
---

vpopmail directory = /var/vpopmail
   uid = 725
   gid = 725
 roaming users = OFF --disable-roaming-users (default)
 password learning = OFF --disable-learn-passwords (default)
 md5 passwords = ON  --enable-md5-passwords (default)
  file locking = ON  --enable-file-locking (default)
vdelivermail fsync = OFF --disable-file-sync (default)
 make seekable = ON  --enable-make-seekable (default)
  clear passwd = ON  --enable-clear-passwd (default)
 user dir hashing  = ON  --enable-users-big-dir (default)
address extensions = OFF --disable-qmail-ext (default)
  ip alias = OFF --disable-ip-alias-domains (default)
 domain quotas = OFF --disable-domainquotas (default)
   auth module = mysql --enable-auth-module=mysql
 mysql replication = OFF --disable-mysql-replication (default)
 mysql logging = ON  --enable-mysql-logging
  mysql limits = OFF --disable-mysql-limits (default)
  MySQL valias = ON  --enable-valias
  auth inc = -I/usr/local/mysql/include
  auth lib = -L/usr/local/mysql/lib -R${exec_prefix}/lib
-lmysqlclient -lz
  system passwords = OFF --disable-passwd (default)
pop syslog = show failed attempts with clear text password
 --enable-logging=p
  auth logging = ON  --enable-auth-logging (default)
one domain per SQL table = --disable-many-domains

bash-2.05# /usr/ccs/bin/make  ## This produces the error below...


gcc -I. -I/usr/local/mysql/include  -I. -I. -I. -g -O2 -Wall -c `test
-f 'vchkpw.c' || echo './'`vchkpw.c gcc -I. -I/usr/local/mysql/include
-I. -I. -I. -g -O2 -Wall -c `test -f 'hmac_md5.c' || echo
'./'`hmac_md5.c hmac_md5.c: In function `hmac_md5':
hmac_md5.c:52: warning: implicit declaration of function `bzero'
hmac_md5.c:54: warning: implicit declaration of function `bcopy'
gcc  -g -O2 -Wall   -o vchkpw  vchkpw.o md5.o hmac_md5.o libvpopmail.a
-L/usr/local/mysql/lib -R/usr/local/lib -lmysqlclient -lz -lcrypt
Undefined   first referenced
 symbol in file
socket
/usr/local/mysql/lib/libmysqlclient.a(libmysql.o) getpeername
   /usr/local/mysql/lib/libmysqlclient.a(viosocket.o)
gethostbyname_r
/usr/local/mysql/lib/libmysqlclient.a(libmysql.o) setsockopt
   /usr/local/mysql/lib/libmysqlclient.a(viosocket.o)
getservbyname
/usr/local/mysql/lib/libmysqlclient.a(libmysql.o) floor
   /usr/local/mysql/lib/libmysqlclient.a(password.o) inet_addr
  /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
inet_ntoa
/usr/local/mysql/lib/libmysqlclient.a(my_net.o) shutdown
 /usr/local/mysql/lib/libmysqlclient.a(viosocket.o) connect
 /usr/local/mysql/lib/libmysqlclient.a(libmysql.o) ld:
fatal: Symbol referencing errors. No output written to vchkpw
collect2: ld returned 1 exit status
make[2]: *** [vchkpw] Error 1
make[2]: Leaving directory `/tmp/vpopmail-5.4.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/vpopmail-5.4.0'
make: *** [all] Error 2



Any help will be greatly appreciated.  Also, thank you in advance.


--
HigherAccess.com for web and email hosting needs.
http://www.higheraccess.com/




Re: [vchkpw] vpopmail

2003-10-15 Thread Joseph Kacmarcik

 Just to clarify: Do you need a tcp.smtp file under /home/vpopmail/etc?  I
 see some documentation on this.  I have this file under /etc/tcp.smtp for
 checkpassword authentication.  The Qmail handbook has no mentioned of
 /home/vpopmail/etc/tcp.smtp?

the file can be wherever you want as long as you specify it when you start
tcpserver with '-x /path/to/tcp.smtp.cdb'.

it's not a qmail thing, it's what allows (or denies) incoming tcp
connections to whatever service you're running, most likely smtp. (:

good day!
joe



Re: [vchkpw] mysql relay table frustrations

2003-09-26 Thread Joseph Kacmarcik

 apply this patch to your courier-imap source tree and add
 -DHAVE_OPEN_SMTP_RELAY -DHAVE_VLOGAUTH to your CFLAGS when you compile
 it.

 let me know how it goes..

most excellent! this works great! thanks! (:

i've read about this patch, but hadn't found it anywhere. now it's on the
list for everyone to find.

thanks again!
good day!
joe



[vchkpw] mysql relay table frustrations

2003-09-24 Thread Joseph Kacmarcik
hi list!

so... i've read a number of posts, looked in a number of places, compiled
and recompiled numerous times, but i can't get qmail/vpopmail/courier on
linux to write to an sql relay table. everything works except this part. i
can authenticate and receive via pop or imap, and either over ssl. i can
send using webmail on the local system.

i used the same patches and the same configure concoctions to compile the
same software on two different freebsd boxes and it works fine (please
don't ask why i don't just use the bsd boxes).

so, here's my configure lines:

no patches to vpopmail. i started with 5.3.23 and am on 5.3.27 now with
the same results

/usr/local/src/vpopmail-5.3.27
./configure --enable-mysql=y --enable-roaming-users=y \
--enable-defaultquota=1073741824S,10C --enable-learn-passwords=y \
--enable-logging=p --enable-mysql-logging=y --enable-qmail-ext=y

no patches for courier imap. started with 2.1.1, am using 2.1.2 now.

/usr/local/src/courier-imap-2.1.2
./configure --prefix=/usr/local --exec-prefix=/usr/local --without-authldap \
--without-authshadow --with-authvchkpw --without-authcram \
--sysconfdir=/usr/local/etc/courier-imap \
--datadir=/usr/local/share/courier-imap \
--libexecdir=/usr/local/libexec/courier-imap \
--enable-workarounds-for-imap-client-bugs --disable-root-check \
--without-authdaemon --with-redhat


my qmail-smtpd startup is: (variables are handled in the script)
exec softlimit -m 800 tcpserver -S -R -H -c100 -x
/usr/local/vpopmail/etc/tcp.smtp.cdb -u $QMAILUID -g $NOFILESGID 0 smtp
qmail-smtpd salo.chubbo.net /usr/local/vpopmail/bin/vchkpw /usr/bin/true
splogger smtpd

have tried removing path to tcp.smtp.cdb too.

/var/qmail/control/sql
server localhost
port 3306
database vpopmail
table relay
user vpopmail
pass password
time 1800

~vpopmail/etc/vpopmail.mysql
localhost|0|vpopmail|password|vpopmail
localhost|0|vpopmail|password|vpopmail

i'm logging mysql traffic for debugging and i don't see any inserts into
the relay table, only selects and deletes (from cron).

ucspi was patched with mr simerson's ucspi-tcp-0.88-mysql3+rss.patch
although i have tried ucspi-tcp-0.88-mysql+rss.patch with the same
results.

i really hope i'm stupid this year and it's a simple thing, but i can't
figure it out.

thoughts and helpful comments appreciated.

thanks in advance!
joe



Re: [vchkpw] mysql relay table frustrations

2003-09-24 Thread Joseph Kacmarcik

 I cant help you on the problem about it not adding entries, but have you
 considered using a qMail auth patch for outgoing, so clients can AUTH to
 send mail. This would do the same thing, and would work as you intended,
 to let someone relay.

haven't really considered it. the more i think about it now, it may end up
being the best direction.

thanks for the suggestion. (:

joe



[vchkpw] Solaris - Symbol referencing errors. No output written to authvchkpw

2003-09-05 Thread Joseph Bruzzo

Hi to all,

If anyone can help me with the following will be greatly appreciated.

I am trying to installing Solaris 9 + QMAIL 1.03 + APACHE 1.3.28 + PHP
4.3.3 + MYSQL + VPOPMAIL (with
MySQL accounts) + COURIER-IMAP + SQUIRRELMAIL (with MySQL
prefs/addrbook), QMAIL-SCANNER + SPAMASSASSIN

Vpopmail was already installed, but Courier-Imap bombs out and it has
something to do with vchkpw.  below you will find my
configure line syntax:

CPPFLAGS=-I/usr/local/include \
LDFLAGS=-L/usr/local/lib -R/usr/local/lib -L/usr/local/mysql/lib
-R/usr/local/mysql/lib
.../configure \
--prefix=/usr/local/courier-imap \
--disable-root-check \
--without-authpam \
--without-authldap \
--without-authpwd \
--without-authmysql \
--without-authpgsql \
--without-authshadow \
--without-authuserdb \
--without-authcustom \
--without-authcram \
--with-authdaemon \
--with-authvchkpw \
--with-waitfunc=wait3

Configure comes out fine.  But when I try to make i get the following
error:

Compiling modauthvchkpw.c
gcc  -I/opt/vpopmail/include -g -O2 -Wall -I.. -I./..   -o authvchkpw
modauthvchkpw.o libauthmod.a libauth.a ../numlib/libnumlib.a
/md5/libmd5.a ../sha1/libsha1.a -L/opt/vpopmail/lib -lvpopmail
-L/usr/local/mysql/lib -lmysqlclient -lz -lm -lcrypt -lnsl -lsocket
Undefined   first referenced
 symbol in file
socket
/usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
getpeername
/usr/local/mysql/lib/libmysqlclient.a(viosocket.o)
gethostbyname_r
/usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
setsockopt
/usr/local/mysql/lib/libmysqlclient.a(viosocket.o)
getservbyname
/usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
inet_addr
/usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
inet_ntoa
/usr/local/mysql/lib/libmysqlclient.a(my_net.o)
shutdown
/usr/local/mysql/lib/libmysqlclient.a(viosocket.o)
connect
/usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
ld: fatal: Symbol referencing errors. No output written to authvchkpw
collect2: ld returned 1 exit status
make[2]: *** [authvchkpw] Error 1
make[2]: Leaving directory `/data/NewInstall/courier-imap-2.0.0/authlib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/data/NewInstall/courier-imap-2.0.0/authlib'
make: *** [all-recursive] Error 1


Does anyone know how to solve this issue or what I can do to make it
work.

Thanks to everyone.
jeb


--
HigherAccess.com for web and email hosting needs.
http://www.higheraccess.com/





[vchkpw] Solaris - Symbol referencing errors. No output written to authvchkpw

2003-09-05 Thread Joseph Bruzzo
Hi to all,

If anyone can help me with the following will be greatly appreciated.

I am trying to installing Solaris 9 + QMAIL 1.03 + APACHE 1.3.28 + PHP
4.3.3 + MYSQL + VPOPMAIL (with
MySQL accounts) + COURIER-IMAP + SQUIRRELMAIL (with MySQL
prefs/addrbook), QMAIL-SCANNER + SPAMASSASSIN

Vpopmail was already installed, but Courier-Imap bombs out and it has
something to do with vchkpw.  below you will find my
configure line syntax:

CPPFLAGS=-I/usr/local/include \
LDFLAGS=-L/usr/local/lib -R/usr/local/lib -L/usr/local/mysql/lib
-R/usr/local/mysql/lib
/configure \
--prefix=/usr/local/courier-imap \
--disable-root-check \
--without-authpam \
--without-authldap \
--without-authpwd \
--without-authmysql \
--without-authpgsql \
--without-authshadow \
--without-authuserdb \
--without-authcustom \
--without-authcram \
--with-authdaemon \
--with-authvchkpw \
--with-waitfunc=wait3

Configure comes out fine.  But when I try to make i get the following
error:

Compiling modauthvchkpw.c
gcc  -I/opt/vpopmail/include -g -O2 -Wall -I.. -I./..   -o authvchkpw
modauthvchkpw.o libauthmod.a libauth.a ../numlib/libnumlib.a
./md5/libmd5.a ../sha1/libsha1.a -L/opt/vpopmail/lib -lvpopmail
-L/usr/local/mysql/lib -lmysqlclient -lz -lm -lcrypt -lnsl -lsocket
Undefined   first referenced
 symbol in file
socket
/usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
getpeername
/usr/local/mysql/lib/libmysqlclient.a(viosocket.o)
gethostbyname_r
/usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
setsockopt
/usr/local/mysql/lib/libmysqlclient.a(viosocket.o)
getservbyname
/usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
inet_addr
/usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
inet_ntoa
/usr/local/mysql/lib/libmysqlclient.a(my_net.o)
shutdown
/usr/local/mysql/lib/libmysqlclient.a(viosocket.o)
connect
/usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
ld: fatal: Symbol referencing errors. No output written to authvchkpw
collect2: ld returned 1 exit status
make[2]: *** [authvchkpw] Error 1
make[2]: Leaving directory `/data/NewInstall/courier-imap-2.0.0/authlib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/data/NewInstall/courier-imap-2.0.0/authlib'
make: *** [all-recursive] Error 1


Does anyone know how to solve this issue or what I can do to make it
work.


--
HigherAccess.com for web and email hosting needs.
http://www.higheraccess.com/





[vchkpw] Problems with forwarding from .qmail using maildrop

2002-10-15 Thread joseph

Hello All,

I have:

vpopmail-5.2.1
qmail-1.03
maildrop-1.4.0
qmailadmin-1.0.6

among other things running on RH 7.3

I have the .qmail-default file for each of my virtual domains read like this:

| preline maildrop /home/vpopmail/mailfilter

where mailfilter reads:

# line below only wrapped in mail message...
VPOP=| /home/vpopmail/bin/vdelivermail '' 
/home/vpopmail/domains/$HOST/postmaster
VHOME=`/home/vpopmail/bin/vuserinfo -d $EXT@$HOST`

if ( $SIZE  262144 )
{
exception {
xfilter /usr/bin/spamc -f -u $EXT@$HOST
}
}

if (/^X-Spam-Flag: *YES/)
{
exception {
to /home/vpopmail/domains/spam/postmaster/Maildir/
}
}
else
{
exception {
to $VPOP
}
}

And this works fine, except for forwarding from a users .qmail file.
..qmail-whatever files in the domain directory work fine, but $USER/.qmail
doesn't work with the:

[EMAIL PROTECTED]

format.

|forward [EMAIL PROTECTED] works, but qmailadmin doesn't use that format.
When I disable my maildrop in the .qmail-default and just call vpopdeliver
the [EMAIL PROTECTED] format in $USER/.qmail works.

What have I broken with my mailfilter?

I want all my virtual domains to have postmaster as their catchall and I
want all mail tagged as spam to end up in a common location. But I need
the forwarding functionality to work via qmailadmin...

All suggestions greatly appreciated.

Joseph






Re: vchkpw and qmail smtp-auth patch

2001-08-23 Thread Joseph F. Dries III

Ken,

Thanks for the speedy-speedy reply. I took your suggestions, and

1. updated my installation to 4.10.35 (not visibly available on the website,
but luckily I knew the version # now...)

2. made the change to my qmail-smtpd invocation such that it now starts up
with the uid of the vpopmail user.

I get past the user not found problem, however I get a different error
now:

==8
Aug 23 15:29:07 hostname vpopmail[10214]: vchkpw: password fail
[EMAIL PROTECTED]:ip.add.re.ss
8--

From my /var/qmail/rc script:

tcpserver -v -H -P -R -x /home/vpopmail/etc/tcp.smtp.cdb \
 -l $HOST -u $QUSER -g $QGROUP 0 smtp \
 /var/qmail/bin/qmail-smtpd $HOST \
 /home/vpopmail/bin/vchkpw /bin/true \
 /var/qmail/bin/cmd5checkpw /bin/true 21 \
 | /var/qmail/bin/splogger smtpd 3 

Where $QUSER is now == `id -u vpopmail`

If I use a POP3, IMAP client (or simple telnet), they all authenticate me
properly. I still cannot get qmail-stmpd to AUTH properly. Any more
suggestions?

I tried this using a different ID than given in the IMAP config: (ie:
[EMAIL PROTECTED], jdries%domain.com, and just jdries) ... All to no avail.

-j

On 8/23/01 3:12 PM, Ken Jones [EMAIL PROTECTED] wrote:

 the vpopmail library restricts access to the authentication
 information unless running as root or the owner of the
 virtual domain. 
 
 You need to either run the smtp server as root or
 if all your domains are owned by vpopmail,then run
 it as the vpopmail/vchkpw uid/gid
 
 You might also want to update to 4.10.35 or 4.10.34

-- 
Joseph F. Dries III
Director Information Technology Services

Advanced Logic Systems, Inc.
411B Southgate Court
Mickleton, NJ 08056
v: 856-423-7701
f: 856-423-7737

http://www.advancedlogicsys.com/