Re: [vchkpw] Re: vpopmail with mysql authentication of installer specified database

2004-03-05 Thread Jeremy Kitchen
On Fri, 2004-03-05 at 01:49, [EMAIL PROTECTED] wrote:
 Hi,
 
 At the moment I am using a mysql database for
 vpopmail authentication. Does pure-ftpd use
 vpopmail authentication so it would use the
 same database table as defined by vpopmail?

no idea, I just saw a file in contrib/ in my pure-ftpd source.

 If you know the URL, would you please be able
 to point me to it? I am currently googling
 for all references to vpopmail and pure-ftpd.

www.pureftpd.org

-Jeremy
-- 
Jeremy Kitchen
Systems Administrator
[EMAIL PROTECTED]
Kitchen @ #qmail on EFNet - Join the party!
.
Inter7 Internet Technologies, Inc.
www.inter7.com
866.528.3530 toll free
847.492.0470 int'l
847.492.0632 fax
GNUPG key ID: 93BDD6CE



Re: [vchkpw] vpopmail with mysql authentication of installer specified database

2004-03-05 Thread Marcin So³tysiak
 I remember reading from the proftpd forum
 that a vpopmail+proftpd enthusiast was using
 his own defined mysql table to authenticate
 both vpopmail and proftpd users. Is it
 possible to do this without changing the
 source code? (I am not overly happy about
 changing source since the vpopmail
 installation will be updated with time).

In proftpd.conf: (example on proftpd 1.2.9)

SQLAuthenticate users
SQLAuthTypesPlaintext
SQLConnectInfo  [EMAIL PROTECTED] dbuser dbpasswd
SQLUserInfo domain_tld pw_name pw_clear_passwd NULL NULL pw_home
NULL

or

SQLAuthenticate users
SQLAuthTypesCrypt
SQLConnectInfo  [EMAIL PROTECTED] dbuser dbpasswd
SQLUserInfo domain_tld pw_name pw_passwd NULL NULL pw_home NULL


Solt



Re: [vchkpw] Re:nbsp;[vchkpw] nbsp;Re:?vchkpw]?uto?reate?ir?or?pam?mail

2004-03-05 Thread Barry Solof
Hmmm. Since all the file locations are the same it is probably a rights
issue.

Make sure that .qmailadmin-hooks and make_dirs.sh are owned by the
correct user and group. In many cases that would be owner vpopmail and
group vchkpw.

Also, my http server is not running under user apache but as user
vpopmail. This was necessary in order to run the vmailadmin plugin in
the Squirrelmail webmail client. It may be the reason it runs easily on
my server.

Barry

Frankie Wong wrote:

Hi,

It doesn't work in my system even all script and file location exactly matching to 
your example.

Any suggestions or hightlight ?

Frankie

  

Hi,

Here's my scripts. There is probably a better way to do this but it
works on our system.

.qmailadmin-hooks:
--snip--
adduser /home/vpopmail/domains/make_dirs.sh
--snip--

make_dirs.sh:
--snip--
#!/bin/bash

NEWFOLDER=.Sent

# From qmailadmin hooks
USERNAME=$1
DOMAIN=$2
PASSWORD=$3
FULLNAME=$4

THEDIR=`cat /home/vpopmail/domains/$DOMAIN/vpasswd | grep $USERNAME |
awk -F: '{print $6}'`
mkdir $THEDIR/Maildir/$NEWFOLDER /dev/null
mkdir $THEDIR/Maildir/$NEWFOLDER/new /dev/null
mkdir $THEDIR/Maildir/$NEWFOLDER/cur /dev/null
mkdir $THEDIR/Maildir/$NEWFOLDER/tmp /dev/null
echo INBOX$NEWFOLDER  $THEDIR/Maildir/courierimapsubscribed
chown -R vpopmail.vchkpw $THEDIR/Maildir/ #only needed if script not run
by vpopmail
chmod -R 700 $THEDIR/Maildir/$NEWFOLDER #only needed if script not run
by vpopmail
--snip--

Good luck!

Barry

Frankie Wong wrote:



I will be pleased if you can send me your script in order to let me have a better 
reference for my own script design.

Regards,

Frankie



  

Hi,

qmailadmin has hooks that will allow you to send info to other places
when you add, delete or modify a user. Read the document
/var/src/qmailadmin-x/README.hooks for details.

Basically, it'll tell you to create a .qmailadmin-hooks file, what to
put in it and the various places you may want to place the file.  Make
sure that .qmailadmin-hooks has the correct user and group ownership, too.

I use it to call a bash script.  It could probably also call
/usr/lib/courier-imap/bin/maildirmake.

If you want my script file let me know.

Barry

[EMAIL PROTECTED] wrote:





http://www.jerfu.com/toaster/FullToaster_1.0.6.html show me a way to alter 
vpopmail.c in order to create directory
for spam email automatically. However, it is only for version 5.3.11. Is there 
any link that can show
me related information about vpopmail 5.4.1 ?

Regards,

Frankie





  



  



  



[vchkpw] vpopmail 5.4.2 - make error `DOMAINS_DIR' undeclared (first use in this function)

2004-03-05 Thread Devendra Singh
Hi List Members,

I tried upgrading from vpopmail-5.3.30 to vpopmail-5.4.2 on RedHat-7.3 with 
following configure options:

./configure \
  --enable-roaming-users=n \
  [EMAIL PROTECTED] \
  --enable-logging=p \
  --enable-ip-alias-domains=n \
  --enable-passwd=n \
  --enable-clear-passwd=y \
  --enable-auth-module=mysql \
  --enable-incdir=/usr/include/mysql \
  --enable-libdir=/usr/lib/mysql \
  --enable-many-domains=y \
  --enable-auth-logging=y \
  --enable-mysql-logging=y \
  --enable-valias=y \
  --enable-mysql-limits=n
Got Configured Okay, but on make I got the following errors (even I 
upgraded the autoconf version):

[EMAIL PROTECTED] vpopmail-5.4.2]# make
cd .  /bin/sh /usr/local/src/vpopmail-5.4.2/missing --run autoheader
FATAL ERROR: Autoconf version 2.52 or higher is required for this script
touch ./config.h.in
cd .  /bin/sh ./config.status config.h
config.status: creating config.h
make  all-recursive
make[1]: Entering directory `/usr/local/src/vpopmail-5.4.2'
Making all in cdb
make[2]: Entering directory `/usr/local/src/vpopmail-5.4.2/cdb'
( cat warn-auto.sh; \
echo CC=\'`head -1 conf-cc`\'; \
echo LD=\'`head -1 conf-ld`\'; \
cat find-systype.sh; \
) | sh  systype
( cat warn-auto.sh; \
echo 'main=$1; shift'; \
echo 'rm -f $main'; \
echo 'ar cr $main ${1+$@}'; \
case `cat systype` in \
sunos-5.*) ;; \
unix_sv*) ;; \
irix64-*) ;; \
irix-*) ;; \
dgux-*) ;; \
hp-ux-*) ;; \
sco*) ;; \
*) echo 'ranlib $main' ;; \
esac \
)  makelib
chmod 755 makelib
( cat warn-auto.sh; \
echo exec `head -1 conf-cc` '-c ${1+$@}' \
)  compile
chmod 755 compile
( cat warn-auto.sh; \
echo 'main=$1; shift'; \
echo exec `head -1 conf-ld` \
'-o $main $main.o ${1+$@}' \
)  load
chmod 755 load
( ( ./compile tryulong32.c  ./load tryulong32  \
./tryulong32 ) /dev/null 21 \
 cat uint32.h2 || cat uint32.h1 )  uint32.h
rm -f tryulong32.o tryulong32
./compile cdb_hash.c
./compile cdb_unpack.c
./compile cdb_seek.c
./makelib cdb.a cdb_hash.o cdb_unpack.o cdb_seek.o
./compile cdbmake_pack.c
./compile cdbmake_hash.c
./compile cdbmake_add.c
./makelib cdbmake.a cdbmake_pack.o cdbmake_hash.o \
cdbmake_add.o
make[2]: Leaving directory `/usr/local/src/vpopmail-5.4.2/cdb'
make[2]: Entering directory `/usr/local/src/vpopmail-5.4.2'
gcc -I. -I/usr/include/mysql  -I. -I. -I. -g -O2 -Wall -c `test -f 
'vpopmail.c' || echo './'`vpopmail.c
vpopmail.c: In function `vadddomain':
vpopmail.c:134: `DOMAINS_DIR' undeclared (first use in this function)
vpopmail.c:134: (Each undeclared identifier is reported only once
vpopmail.c:134: for each function it appears in.)
vpopmail.c:213: `VPOPMAILDIR' undeclared (first use in this function)
vpopmail.c: In function `vadduser':
vpopmail.c:442: `VPOPMAILUID' undeclared (first use in this function)
vpopmail.c:443: `VPOPMAILGID' undeclared (first use in this function)
vpopmail.c: In function `add_domain_assign':
vpopmail.c:774: `QMAILDIR' undeclared (first use in this function)
vpopmail.c: In function `del_control':
vpopmail.c:869: `QMAILDIR' undeclared (first use in this function)
vpopmail.c: In function `del_domain_assign':
vpopmail.c:962: `QMAILDIR' undeclared (first use in this function)
vpopmail.c: In function `signal_process':
vpopmail.c:1191: `PS_COMMAND' undeclared (first use in this function)
vpopmail.c: In function `update_newu':
vpopmail.c:1241: `QMAILNEWU' undeclared (first use in this function)
vpopmail.c: In function `count_rcpthosts':
vpopmail.c:1592: `QMAILDIR' undeclared (first use in this function)
vpopmail.c: In function `compile_morercpthosts':
vpopmail.c:1615: `QMAILNEWMRH' undeclared (first use in this function)
vpopmail.c: In function `default_domain':
vpopmail.c:1866: `VPOPMAILDIR' undeclared (first use in this function)
vpopmail.c: In function `verror':
vpopmail.c:2020: parse error before `DOMAINS_DIR'
vpopmail.c:2022: parse error before `DOMAINS_DIR'
vpopmail.c:2042: parse error before `DOMAINS_DIR'
vpopmail.c: In function `vget_assign':
vpopmail.c:2225: `QMAILDIR' undeclared (first use in this function)
vpopmail.c: In function `maildir_to_email':
vpopmail.c:3108: parse error before `DOMAINS_DIR'
vpopmail.c:3108: parse error before `DOMAINS_DIR'
vpopmail.c:3108: parse error before `DOMAINS_DIR'
vpopmail.c:3108: parse error before `DOMAINS_DIR'
vpopmail.c:3108: parse error before `DOMAINS_DIR'
vpopmail.c:3108: parse error before `DOMAINS_DIR'
vpopmail.c:3108: parse error before `DOMAINS_DIR'
vpopmail.c:3108: parse error before `DOMAINS_DIR'
vpopmail.c:3108: parse error before `DOMAINS_DIR'
vpopmail.c:3108: parse error before `DOMAINS_DIR'
vpopmail.c:3108: parse error before `DOMAINS_DIR'
vpopmail.c:3110: warning: control reaches end of non-void function
vpopmail.c: At top level:
vpopmail.c:3114: warning: type defaults to `int' in declaration of `pnt'
vpopmail.c:3114: `last' undeclared here (not in a function)
vpopmail.c:3114: `DOMAINS_DIR' undeclared here (not in a function)
vpopmail.c:3114: warning: data definition has no type or storage class
vpopmail.c:3115: parse error before 

[vchkpw] upgrade broke squirrelmail/imap

2004-03-05 Thread Aaron Hackney
Hi All. I have searched the archives for this one, and all I found was 
others with the same problem, but no fixes.

I have upgraded to vpopmail 5.4.0. I use mysql on the backend. Pop3 is 
working perfectly. MY problem is that when I created the 
/home/vpopmail/etc/vpopmail.mysql  file, I couldnt remember what password 
that I used for the mysql account for vpopmail.

No big deal, I just reset the password. Viola, vpopmail is working fine.

But now, squirrelmail via courrier-imap no longer works. It's my 
understanding that courier-imap uses vpopmail to check the password. I can 
find nowhere that lists mysql settings in courier-imap, so I assume it is 
letting vpopmail handle this.

Here is the error I am getting:
imapd: could not connect to mysql update server Access denied for user: 
'[EMAIL PROTECTED]' (Using password: YES)

So clearly, it's a mysql username/password problem. Thing is, I cannot 
trace where the settings that I need to change are?

Any help would be GREATLY appreciated!!

-Aaron




Re: [vchkpw] possible authvchkpw.c patch

2004-03-05 Thread Alex Pleiner
* Peter Hudec [EMAIL PROTECTED] [2004-03-03 17:41]:
 you can try aslo this one
 http://projects.hudecof.net/download/patches/courier-imap-1.7.3-vpopmail.patch

Could you enlight us, what this has to do with the OP?

Alex

-- 
Alex Pleiner
zeitform Internet Dienste Fraunhoferstrasse 5
  64283 Darmstadt, Germany
http://www.zeitform.deTel.: +49 (0)6151 155-635
mailto:[EMAIL PROTECTED]Fax:  +49 (0)6151 155-634
GnuPG/PGP Key-ID: 0x613C21EA


Re: [vchkpw] upgrade broke squirrelmail/imap

2004-03-05 Thread Jeremy Kitchen
On Fri, 2004-03-05 at 09:39, Aaron Hackney wrote:
[snip I changed the mysql password after upgrading and broke
courier-imap]

 So clearly, it's a mysql username/password problem. Thing is, I cannot 
 trace where the settings that I need to change are?

you probably upgraded from an older version of vpopmail where the mysql
password was hard coded.  Reconfigure/recompile courier-imap and you
should solve the problem.

-Jeremy

-- 
Jeremy Kitchen
Systems Administrator
[EMAIL PROTECTED]
Kitchen @ #qmail on EFNet - Join the party!
.
Inter7 Internet Technologies, Inc.
www.inter7.com
866.528.3530 toll free
847.492.0470 int'l
847.492.0632 fax
GNUPG key ID: 93BDD6CE



Re: [vchkpw] upgrade broke squirrelmail/imap

2004-03-05 Thread Aaron Hackney
Jeremy, that did the trick. Actually I was trying this last night, and I 
grabbed the 2.2 version of courier-imap, however the make kept failing with 
a unicode/big5.c error. I rolled back to my original 1.7 and it's up and 
running now.

Note: I had to manually copy the authvchkpw  file from the compile 
directory to the working directory, as the install script was missing it 
for some reason.

Thanks again. I was beating my head against the wall at 2am last night :P

-Aaron

At 09:52 AM 3/5/2004 -0600, you wrote:
On Fri, 2004-03-05 at 09:39, Aaron Hackney wrote:
[snip I changed the mysql password after upgrading and broke
courier-imap]
 So clearly, it's a mysql username/password problem. Thing is, I cannot
 trace where the settings that I need to change are?
you probably upgraded from an older version of vpopmail where the mysql
password was hard coded.  Reconfigure/recompile courier-imap and you
should solve the problem.
-Jeremy

--
Jeremy Kitchen
Systems Administrator
[EMAIL PROTECTED]
Kitchen @ #qmail on EFNet - Join the party!
.
Inter7 Internet Technologies, Inc.
www.inter7.com
866.528.3530 toll free
847.492.0470 int'l
847.492.0632 fax
GNUPG key ID: 93BDD6CE





Re: [vchkpw] possible authvchkpw.c patch

2004-03-05 Thread Matthew Kanar
I asked the same thing in a private email.  The answer is that it doesn't 
have anything to do with the patch or problem that I posted.  Disregard that 
posting.

* Peter Hudec [EMAIL PROTECTED] [2004-03-03 17:41]:
 you can try aslo this one
 
http://projects.hudecof.net/download/patches/courier-imap-1.7.3-vpopmail.patch

Could you enlight us, what this has to do with the OP?

Alex
_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/



Re: [vchkpw] vpopmail 5.4.2 - make error `DOMAINS_DIR' undeclared (first use in this function)

2004-03-05 Thread Tom Collins
On Mar 5, 2004, at 8:11 AM, Devendra Singh wrote:
FATAL ERROR: Autoconf version 2.52 or higher is required for this 
script
On a fresh install, before running configure or make, try typing `touch 
*` in the vpopmail source directory.

If you continue to have problems, you may need to update your 
autoconf/automake and maybe even libtool.  I found that the packages 
from RH8.0 install just fine in RH7.x, and don't depend on any other 
packages.

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


Re: [vchkpw] vpopmail with mysql authentication of installer specified database

2004-03-05 Thread Tom Collins
If an FTP server gives a user open access to their directory, couldn't 
you have a potential security problem?

Since the .qmail file is processed by the vpopmail user, any program I 
add to my .qmail will run as vpopmail.  As a user with ftp access to my 
.qmail file, I could create a .qmail file that emailed a copy of 
~vpopmail/etc/vpopmail.mysql to myself.  I'm sure we can think of even 
worse scenarios, but won't share them on the list (we don't need script 
kiddies picking up the idea and running with it).

This is the main reason we've had to be careful with qmailadmin to make 
sure users can't create new program delivery lines when adding 
forwards.  Unfortunately, we end up removing program delivery lines 
that weren't qmailadmin generated (like tmda (tdma?) stuff).

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