[vchkpw] Limits Table

2003-07-22 Thread Widmer Hannes
HI List


I have a question about the limits witch can be set up in a mysql table.


So, i did the installation with the limits in a mysql Table called
limits.

Now, I'm hosting also other domains for my friends and I d'like to give
them 
the administrativ account to set the quotas of a domain, set the max.
email 
aresses or max. mailinglists.

Vqadmin has this feauture but this one writes .qmail*(can the rest
not remind) 
Config files in witch the Data are stored witch i need in the
mysqltable.

Qmailadmin, ist a verry nice tool, but not able to handle this, or are
I'm false? 
I know, if the table is clear, qmailadmin makes troubles, but it isn't
clear.

Is there a other tool? The best is a webbased ...it's easyer to 
administrate for my non unix friends...


Thanks a lot for your tipps

Greetings Hannes Widmer



[vchkpw] Learn passwords and courier imap/pop3 w/cleartext

2003-07-22 Thread [EMAIL PROTECTED]
Hi list,

I got latest vpopmail with cleartext passwords and lear paswords feats on. I
observed that learning works in quote odd way - after user submitted his new
password via imap or pop3 only cleartext filed in mysql table is updated
whi8le crypted remains empty. Is it a bug or have I blown something?

Cheers
Solt




[vchkpw] vconvert doesn't work

2003-07-22 Thread Jan Lange
Hi,

I have installed Vpopmail 5.2.1 with mysql
support.

Now I have copied the domains with vpasswd files
from a vpopamil 4.9.1 installation.

After that I do a
./vconvert -c -m domain.tld

vconvert answers:
converting domain.tld done

But in the MySQL table vpopmail aren't any
entry's. The table is empty!

I have done a strace and at the last lines, vconvert
reads the vpasswd file, but don't write the data to
mysql

But there aren't any error messages

What do I'm wrong??

please help me

Greetings
Jan


sorry, for my bad english




[vchkpw] create user with pre-defined gid

2003-07-22 Thread Martin Chung



Hi,

Anyone has idea about how to create user with pre-defined 
gidafter executedvadduser?

Martin



Re: [vchkpw] vpopmail + mysql : Define other mysql host in vmysql.hhow-to?

2003-07-22 Thread Ajai Khattri
Of course, this is all documented in README.mysql...

Ahmad Masood Shah wrote:

Hi Kuan,
 
Thanks for your kind of information.
any how where are you from. and What type of enviornment you have.
I'm working with an ISP www.fibre.net.pk http://www.fibre.net.pk
 

--
 
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: Kuan Yik mailto:[EMAIL PROTECTED]
To: Ahmad Masood Shah mailto:[EMAIL PROTECTED] ;
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 8:23 AM
Subject: Re: [vchkpw] vpopmail + mysql : Define other mysql host
in vmysql.h how-to?
Hi Ahmad,
 
I have found out how to define the different port number for the
mysql. We can actually define the mysql port number in the
vmysql.h file under the
 
/* defaults - no need to change */
#define MYSQL_VPORT 0
 
Default value is 0 and you can define to the differnet port number
if you wish.
 
Thank you for your help anyway.

- Original Message -
From: Ahmad Masood Shah mailto:[EMAIL PROTECTED]
To: Kuan Yik mailto:[EMAIL PROTECTED] ;
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 3:21 PM
Subject: Re: [vchkpw] vpopmail + mysql : Define other mysql
host in vmysql.h how-to?
hmm have u changed /etc/service mysql 
it can be handy ... me is kinda busy let me find where you can
put port in vmyslq.h or you will have to change some code in
this file...give me time I will do for u...
-- 
 
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: Kuan Yik mailto:[EMAIL PROTECTED]
To: Ahmad Masood Shah mailto:[EMAIL PROTECTED] ;
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 11:42 AM
Subject: Re: [vchkpw] vpopmail + mysql : Define other
mysql host in vmysql.h how-to?
Hi Ahmad, thanks for your reply, but what if I want to
define different port number or sock file?
 
It is not working if I define like
 
#define MYSQL_UPDATE_SERVER localhost:
#define MYSQL_READ_SERVER   localhost:
 
OR
 
#define MYSQL_UPDATE_SERVER /usr/local/mysq/mysql.sock
#define MYSQL_READ_SERVER   /usr/local/mysql/mysql.sock
 
Any idea how ?
 
thanks

- Original Message -
From: Ahmad Masood Shah mailto:[EMAIL PROTECTED]
To: Kuan Yik mailto:[EMAIL PROTECTED] ;
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 2:25 PM
Subject: Re: [vchkpw] vpopmail + mysql : Define other
mysql host in vmysql.h how-to?
simple is that open you command prompt
 
vi vmysql.h
you will find 2 lines like shown below...
 
 
#define MYSQL_UPDATE_SERVER localhost
#define MYSQL_READ_SERVER   localhost
 
and blah balh

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

[vchkpw] change request

2003-07-22 Thread Benjamin Tomhave
I have a minor change request for future releases:  Could a flag be added to
remove the permission/ownership fixing at the end, or at least add a prompt
that allows one to opt-out?  I recently reinstall 5.3.20 due to a weird
permission issue and I have other files stored in /home/vpopmail/domains
than just my vpopmail domains (it's an NFS mount, so a good place for
joining logs, etc.).  The file/directory ownership/permission changes hosed
that stuff, which took me a while to then sort out.

Thank you!

-ben

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




Re: [vchkpw] create user with pre-defined gid

2003-07-22 Thread Martin Chung
Hi,

I am not using *nix adduser or useradd but using vpopmail's vadduser. As the
gid can control vpopmail user's imap access, webmail access, etc. I want to
created user with no imap or webmail access by default.

Thanks

Martin


- Original Message - 
From: John Simpson [EMAIL PROTECTED]
To: Martin Chung [EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 6:04 AM
Subject: Re: [vchkpw] create user with pre-defined gid






Re: [vchkpw] Big server

2003-07-22 Thread Linux
You would handle delivery from Server1 to Server2 making Server1 the primary
MX record.  Then from there, you will have the domains listed in smtproutes
to hand of to Server2.  Also, make sure your domains are listed in rcpthosts
on Server1 or they will be rejected.


- Original Message -
From: Marcos Dutra [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 21, 2003 8:50 AM
Subject: [vchkpw] Big server


 Hi people,

 I would like make a big server with qmail +vpopmail +mysql +procmail. I
think
 in this structure:
 Server 1: Mx domain + smtp delivery +filters (Antispam, user
filter(procmail)
 and antivirus)
 This server basically is the mail gateway of all domains, where is passed
in
 the filters rules per domain and redirect all mails to server 2

 Server 2: Pop3 accounts + mysql server
 Here is created all accounts.

 This schema is good for multiple domains?
 Another question is how do i do the message delivery the messages from
server1
 to server2?

 Thanks

 Marcos Dutra







Re: [vchkpw] qmail+vpopmail+openldap+qmailadmin in redhat7.3

2003-07-22 Thread phatrakom
lixiang, 

I'd encountered exactly the same problem(-ERR aack, child crashed) with 
vchkpw using LDAP as backend. I'd tried many different configurations and 
finally it seem like I can get around this problem. 

The solution is configure vpopmail with --enable-clear-passwd=n parameter. 
My configure statement looks like: 

./configure --enable-ldap=y  --enable-clear-passwd=n 

I have no idea how this fix the problem, but it's something with the 
authentication. 

Hope this help, 

Phatrakom 



be [EMAIL PROTECTED]
Shop all amazing products and get our special offers!


Re: [vchkpw] create user with pre-defined gid

2003-07-22 Thread Tom Collins
On Tuesday, July 22, 2003, at 08:04  PM, Martin Chung wrote:
I am not using *nix adduser or useradd but using vpopmail's vadduser. 
As the
gid can control vpopmail user's imap access, webmail access, etc. I 
want to
created user with no imap or webmail access by default.
You can't do it with vadduser, but you can use vmoduser after creating 
the account to set the flags.  It's not very efficient, but should fit 
your needs.

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



[vchkpw] A new tools for vpopmail

2003-07-22 Thread Gerald Villemure
There is been some talk about getting qmailadmin to run with PHP and
other environments.

The problem is, how to you get a web server that is running as nobody
to run commands as vpopmail?  The answer has been to set qmailadmin
SETUID vpopmail.  The problem with that is. What if you want to develop
your own front-end in PHP for example?

One answer is to introduce a new command in the base distribution of
vpopmail which would run SETUID vpopmail which could then be called by
whatever front-end you care to design.

This means a tool like qmailadmin or at least of subset if it could be
easily created in mod_perl or mod_php or whatever.  Modules for many of
the webmail solutions out there would popup in no time.

Included is a mock man page for the new command to give you an idea of
what I am talking about.

Let me know what you all think.
GĂ©rald
==
NAME
 vadm - user level vpopmail admin tool

SYNOPSIS
 vadm [options] command [command_args]

DESCRIPTION
 vadm is a tools to provide non interactive user level commands for
vpopmail.
 The binary is SETUID to vpopmail so any user on the system can use
it.
 This greatly simplifies the creating of a web front-end for
example.

OPTIONS
 -b, --base64
 The password is BASE64 encoded.  This is especially useful when
providing
 the password at the command line.

 -p PASS, --password=PASS
 Provide the authentication password for the execution of the
command.
 Its better to use the VADM_PASS environment variable if
possible.

 -u EMAIL_ADDRESS, --user=EMAIL_ADDRESS
 Provide the authentication user name for the execution of the
command.
 You can also set this in the VADM_USER environment variable.

COMMAND SUMMARY
 You must authenticate with a valid user/pass for any commands to be
executed.
 Some commands will only execute if the user/pass has admin rights
on the
domain in question.

 info
 This will output a coma delimited line of info about the user
trying to authenticate.
 If the supplied user/pass fails to authenticate then it exits
with a 1.

 list_users [DOMAIN] [OFFSET] [MAX]
 If DOMAIN is not supplied then assume the domain of the
authenticated user.
 OFFSET and MAX is to handle cases when the list of users is
quite large.
 If the authenticated user has admin rights to the domain then
this command
 will return a list of all users for that domain.  The list
output is one line per
 user with coma delimited info for every user.

 update USER SETTING
 USER is the email address of the account to be updated.
 SETTING is a coma delimited settings in a format similar to
that returned by
 the info command.
 If USER is equal to the authenticated user then the command is
accepted
 otherwise the authenticated user must have admin right to that
domain.

 password USER [-b] [NEW_PASSWORD]
 USER if the email address of the account to be updated.
 -b here indicated if the new pass is BASE64 encoded
 If [NEW_PASSWORD] is not supplied then read the new password
from the
 environment variable VADM_NEWPASS

 newacct USER [SETTING]
 The authenticated user must have admin rights on the domain to
execute
 this command.

 rmacct [-f] USER
 This will remove an account and if the [-f] if supplied it will
also delete all
 the users email. Some checking is done to make sure no forwards
pointing
 to this account.

 setfallback DOMAIN EMAIL
 This will set the fallback address for the domain.

 list_forwards [DOMAIN] [OFFSET] [MAX]
 newfwd USER EMAIL
 rmfwd USER

 etc.. I am sure there are a few more commands that would be
needed.

ENVIRONMENT VARIABLES
 It is recommended that the credentials of the user be set with
environment variable
 rather then at the commend line for security reasons.

 VADM_USER
 This variable specifies the email address of the user
requesting the execution
 of the command.

 VADM_PASS
 This variable specifies the password user requesting the
execution of the
 command.
 The password can be encoded in BASE64 if the -b is supplied.

 VADM_NEWPASS
 This variable hold the new password user requesting to change a
password.
 The password can be encoded in BASE64 if the -b is supplied.

DIAGNOSTICS
 Normally, exit status is 0 with output on STDOUT and 1 otherwise.

BUGS
 This tool does not exist yet.





[vchkpw] Connecting to mysql

2003-07-22 Thread Grant Cooper



I can't find the config file to change the password 
to connect to mysql. And what/how do I have to do to reset it. 


Is there a link that describes all of the conf. 
types for vpopmail?