Re: [vchkpw] Connecting to mysql

2003-07-23 Thread Ahmad Masood Shah



check vmysql.h in vpopmail source 
dir..
-- Best Regs,Masood Ahmad ShahSystem 
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: 
  Grant 
  Cooper 
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, July 23, 2003 11:47 
  AM
  Subject: [vchkpw] Connecting to 
  mysql
  
  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?


[vchkpw] maildrop account on Virtual Domains

2003-07-23 Thread Rudi
Hi
Can someone please tell me howto do this? If I have a domain, with one
main account, and 10 mailboxes, how do I tell it that everything except for
the 10 mailboxes must goto the main account?
And then, how would this setup work if I had fetchmail running as
well?
tia--




Re: [vchkpw] maildrop account on Virtual Domains

2003-07-23 Thread Kiril Todorov
now post it in plain text :)
-- 

Kiril Todorov-+-  +359 2 9712013
Bulgaria Online  -+-  http://home.online.bg

/* waiting... dreaming... wishing... */



Re: [vchkpw] maildrop account on Virtual Domains

2003-07-23 Thread Peter Palmreuther
Hi Rudi,

On Wed, 23 Jul 2003 12:47:59 Rudi wrote:

 Hi
 
 Can someone please tell me howto do this? If I have a domain, with one main
 account, and 10 mailboxes, how do I tell it that everything except for the
 10 mailboxes must goto the main account?

Change '~vpopmail/domains/DOMAIN/.qmail-default' with a text editor
from |/path/to/vdelivermail '' bounce-no-mailbox to 
|/path/to/vdelivermail '' /Full/path/to/a/vpopmail/user/directory,
e.g. 

|/home/vpopmail/bin/vdelivermail ''
/home/vpopmail/domains/example.com/mainuser

 And then, how would this setup work if I had fetchmail running as well?

??? Fetchmail injects to MTA and MTA decides how to deliver.
Above setup tells MTA (qmail) and MDA (vpopmail) what to do, what should
fetchmail have to know about this catch-all?

P.S.: For future mails to this list you really should disable Reply-To.
  1.) It's superfluous. It contains the same address as From and
  therefore is absolutely useless.
  2.) It makes it impossible to easily reply to the list for those MUAs
  capable of List-Reply by evaluating 'List-Post' header.
  'Reply-To' takes, for obvious reasons, precedence over
  'List-Post'.
 Thank you.
-- 
Ciao,
 Pit



Re: [vchkpw] A new tools for vpopmail

2003-07-23 Thread Eduardo M. Bragatto
I´ve already made a set of tools for my users like a script to them change
their passwords needing only to know the old password of their accounts.

At the time, I had the same problem that you´re talking now. The first
thought that occurs is chmod +s tool_that_i_want_to_use like you´re
saying. I´ve solved the problem using sudo. It allows me to run some
programs as others (like setuid), but I can make only one or some users have
this kind of permission.

It made my solution much more security than allowing all users to run a
command with vpopmail´s user id.

If this kind of tool really became part of vpopmail, it will be a big step
to lots of other people (like me), to develop their own specific solutions.

- Mensagem Original 
De: Gerald Villemure [EMAIL PROTECTED]
Para: [EMAIL PROTECTED]
[EMAIL PROTECTED], [EMAIL PROTECTED]
[EMAIL PROTECTED]
Assunto: [vchkpw] A new tools for vpopmail
Data: 23/07/03 05:10

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.

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.


Webmail - 99one
Internet Provider




[vchkpw] same domain on more servers Problem

2003-07-23 Thread Peter Mikeska
Hi,

I have qmail+vpopmail for company.com, but they have 3 departments
located in other cities, these 3 locations are connected on slow lines.
Problem is, that poeople in all 3 locations using same domain for mail
adresses.
I want setup somehow mailserver on each site like d1.company.com,
d2.company.com. But I dont want let them send mail which is local send
through main site.


|-d1.company.com (smith, neo)
---internetcompany.com(main)---
|-d2.company.com (trinity)


Main Server has primary mailboxes for neo, trinity, smith. and it has setup
to forward these adreses to [EMAIL PROTECTED], [EMAIL PROTECTED] 
but how setup server d1.company.com to send mail between
[EMAIL PROTECTED] and [EMAIL PROTECTED] without message traveling
to main server and back. i need save traffic ;((
I try vaddaliasdomain to setup alias for d1.company.com but it works
only on local users, if i send mail from d1.company.com to regular
user on main server, it wont work.

or i miss something ? its possible do it somehow thru .smtproutes ?
plz, any info really help.
Thank you in advance

Miki

ps: sorry for crappy english ;)




[vchkpw] troubles with vpopbull: users disappeared

2003-07-23 Thread Lorenzo Grespan
hello everyone. I have several domain names for my company on my qmail
server. Everything was working fine (qmail, vpopmail, qmailadmin,
courier-imap and the like) then one day I upgraded to the latest
vpopmail version (5.2.1).

The problem is that when I launch vpopbull (or use qmailadmin) all I see
are the first two users of my main domain name. the vpasswd file is
fine. 
Everybody is still receiving and sending mail without any problem; I add
new users using vadduser and then I create aliases by hand by creating
.qmail files.

But I still don't like it, and don't understand what is going on. 

does anyone has suggestions?


ps: I've searched the FAQs but found no topic like this one. I apologize
if this is an already discussed topic.

redegards,


-- 
:Lorenzo Grespan
System Administrator, GRECAV S.p.A. http://www.grecav.it
[EMAIL PROTECTED]   +39-0376-589252






[vchkpw] [Fwd: Re: 1 domain on 3 different location problem]

2003-07-23 Thread Robin Bowes
Hi,

I read this today on the qmail list.

This is not the first bad word I've heard said against vpopmail.

Would the any of the authors care to respond?

R.

 Original Message 
Subject: Re: 1 domain on 3 different location problem
From:Russell Nelson [EMAIL PROTECTED]
Date:Wed, July 23, 2003 2:33 pm
To:  [EMAIL PROTECTED]
--

Peter Mikeska writes:
  I have qmail+vpopmail for company.com, but they have 3 departments
located in other cities, these 3 locations are connected on slow lines.
Problem is, that poeople in all 3 locations using same domain for mail
adresses.

Yup, that's a problem.  Fortunately, there's a solution.  Enumerate all
the local users on each machine, and insert them into
virtualdomains like this (using example.com instead of company.com):

[EMAIL PROTECTED]:alias-forward
[EMAIL PROTECTED]:alias-forward
[EMAIL PROTECTED]:alias-forward


And then you need a ~alias/.qmail-forward file which has this:

|forward [EMAIL PROTECTED]

I have no idea how to make this work with vpopmail.  I don't use
vpopmail, nor do I recommend that anybody else use it.  I've read the code
for vpopmail, and although it's written to industry standards, it's crap. 
Total and unmitigated crap.  Fixed-length buffers
everywhere, #ifdef every time you turn around, null-terminated strings
instead of counted strings, it's crap; crap, crap, crap.  I understand
that not everybody can afford a custom-crafted solution from Crynwr
Software, but sometimes you only get what you pay for in the open
source world.

-- 
Robin Bowes | http://robinbowes.com



Re: [vchkpw] troubles with vpopbull: users disappeared

2003-07-23 Thread Rick Macdougall
Hi,

Manually edit the vpasswd files and add a : to the end of lines missing 
it.  Then run mkpasswd domain.com, voila!

In other words, the newer versions of vpopmail require a : (or :50s) 
on the end of each line, where 50s is a quota.

Regards,

Rick

Lorenzo Grespan wrote:

hello everyone. I have several domain names for my company on my qmail
server. Everything was working fine (qmail, vpopmail, qmailadmin,
courier-imap and the like) then one day I upgraded to the latest
vpopmail version (5.2.1).
The problem is that when I launch vpopbull (or use qmailadmin) all I see
are the first two users of my main domain name. the vpasswd file is
fine. 
Everybody is still receiving and sending mail without any problem; I add
new users using vadduser and then I create aliases by hand by creating
.qmail files.

But I still don't like it, and don't understand what is going on. 

does anyone has suggestions?

ps: I've searched the FAQs but found no topic like this one. I apologize
if this is an already discussed topic.
redegards,






Re: [vchkpw] troubles with vpopbull: users disappeared

2003-07-23 Thread Rick Macdougall
Hi,

Lorenzo Grespan wrote:

On Wed, 2003-07-23 at 16:47, Rick Macdougall wrote:

Manually edit the vpasswd files and add a : to the end of lines missing 
it.  Then run mkpasswd domain.com, voila!
In other words, the newer versions of vpopmail require a : (or :50s) 
on the end of each line, where 50s is a quota.


excellent. it works.

thank you very much!

ps: isn't this something that should be more documented somewhere? I
haven't found any useful information about that in the FAQs or the
vpopmail admin guide..
Yes it should be added to a FAQ or something somewhere.  Maybe one of 
the maintainers can do that.

Regards,

Rick




Re: [vchkpw] troubles with vpopbull: users disappeared

2003-07-23 Thread John Simpson
On Wednesday 23 July 2003 10:47, Rick Macdougall wrote:
 Hi,

 Manually edit the vpasswd files and add a : to the end of lines missing
 it.  Then run mkpasswd domain.com, voila!

 In other words, the newer versions of vpopmail require a : (or :50s)
 on the end of each line, where 50s is a quota.

it seems to me that the newer versions of vpopmail should automatically add 
this extra : to the end of lines which are missing it, if there was a file 
format change from one version to another.

either that, or provide a conversion program with the newer versions that 
will fix vpasswd files created by older versions. if nothing else, a quick 
perl script can do this. i may write one, if somebody can send me a sample 
of what the old format vpasswd file looks like (all of my boxes are 
running 5.2.1 right now.)

-- 
---
| John Simpson - KG4ZOW - Programmer At Large |
| http://www.jms1.net/[EMAIL PROTECTED] |
---


pgp0.pgp
Description: signature


Re: [vchkpw] [Fwd: Re: 1 domain on 3 different location problem]

2003-07-23 Thread Rick Macdougall
Hi,

Top posting so people who wish to ignore it can see my responses without 
reading the entire message.

Well, you do get what you pay for sometimes and sometimes not.  The 
whole point of it being Open Source is that if you see something you 
don't like, you can change it and submit it back to the original author(s).

Looking through the code I see...

ifdef's used around various configuration options.  Dunno how else you 
would do it.  grep ifdef on some of the *BSD or Linux source code sometime.

Null terminated strings?  Not really, a few (and I mean a few) here and 
there, mainly when adding a domain to one of the SQL databases.  The 
default vpasswd structure uses counted strings, separated by : to define 
the user structure.  If he's talking about the cdb storage, that's a 
problem with CDB and not vpopmail.

Fixed length buffers I can't really comment on since I'm originally a 
Cobol programmer and I now use php and perl mainly.  If he found it a 
big enough problem, he could have fixed it and sent the patches to the 
authors.

I won't even go into the politics and money aspect of recommending 
custom software design by a third party.  You might as well buy MS 
products and get locked in that way instead :)

Just my 2 cents.

Regards,

Rick

Robin Bowes wrote:

Hi,

I read this today on the qmail list.

This is not the first bad word I've heard said against vpopmail.

Would the any of the authors care to respond?

R.

 Original Message 
Subject: Re: 1 domain on 3 different location problem
From:Russell Nelson [EMAIL PROTECTED]
Date:Wed, July 23, 2003 2:33 pm
To:  [EMAIL PROTECTED]
--
Peter Mikeska writes:
  I have qmail+vpopmail for company.com, but they have 3 departments
located in other cities, these 3 locations are connected on slow lines.
Problem is, that poeople in all 3 locations using same domain for mail
adresses.
Yup, that's a problem.  Fortunately, there's a solution.  Enumerate all
the local users on each machine, and insert them into
virtualdomains like this (using example.com instead of company.com):
[EMAIL PROTECTED]:alias-forward
[EMAIL PROTECTED]:alias-forward
[EMAIL PROTECTED]:alias-forward

And then you need a ~alias/.qmail-forward file which has this:

|forward [EMAIL PROTECTED]

I have no idea how to make this work with vpopmail.  I don't use
vpopmail, nor do I recommend that anybody else use it.  I've read the code
for vpopmail, and although it's written to industry standards, it's crap. 
Total and unmitigated crap.  Fixed-length buffers
everywhere, #ifdef every time you turn around, null-terminated strings
instead of counted strings, it's crap; crap, crap, crap.  I understand
that not everybody can afford a custom-crafted solution from Crynwr
Software, but sometimes you only get what you pay for in the open
source world.





Re: [vchkpw] troubles with vpopbull: users disappeared

2003-07-23 Thread Lorenzo Grespan
On Wed, 2003-07-23 at 17:26, John Simpson wrote:
 it seems to me that the newer versions of vpopmail should automatically add 
 this extra : to the end of lines which are missing it, if there was a file 
 format change from one version to another.
 either that, or provide a conversion program with the newer versions that 
 will fix vpasswd files created by older versions. if nothing else, a quick 
 perl script can do this. i may write one, if somebody can send me a sample 
 of what the old format vpasswd file looks like (all of my boxes are 
 running 5.2.1 right now.)

the old version was something like

username:password:uid:gid:full name:maildir:quota

while the new version could be either:

username:password:uid:gid:full name:maildir:quota:

or:

username:password:uid:gid:full
name:maildir:quota:cleartext password

So it should be enough to check that every line has at least 7 fields,
and 7 colons. It might have 8 fields (cleartext password) but it does
not require another colon after the cleartex password field. 

redegards,

-- 
:Lorenzo Grespan
System Administrator, GRECAV S.p.A. http://www.grecav.it
[EMAIL PROTECTED]   +39-0376-589252






Re: [vchkpw] troubles with vpopbull: users disappeared

2003-07-23 Thread Tom Collins
On Wednesday, July 23, 2003, at 08:26  AM, John Simpson wrote:
it seems to me that the newer versions of vpopmail should 
automatically add
this extra : to the end of lines which are missing it, if there was a 
file
format change from one version to another.
The current 5.3 series does that, and I'm back-porting some of the 
bugfixes from 5.3 for a 5.2.2 release.  So far, 5.2.2 includes this 
patch, and the missing-backslash fix to mysql.h.  If anyone else knows 
of outstanding problems with 5.2 (that were hopefully fixed in 5.3), 
please let me know.

Here's the patch:

--- vpopmail.c  Fri May 17 23:25:49 2002
+++ ../vpopmail-5.3.22/vpopmail.c   Sun Jul 20 09:07:51 2003
@@ -1408,13 +1404,7 @@
 if (fgets(line,sizeof(line),pw) == NULL) return NULL;
 for (i=0; line[i] != 0; i++) if (line[i] == ':') j++;
-
-#ifdef CLEAR_PASS
-/* Must count the clear password field */
-if ( j != 7) return NULL;
-#else
-if ( j != 6) return NULL;
-#endif
+if (j  6) return NULL;
 tmpstr = line;
 pwent.pw_name   = line;
@@ -1435,23 +1425,22 @@
 *tmpstr = 0; ++tmpstr;
 pwent.pw_gid = atoi(tmpstr1);
-
 pwent.pw_gecos  = tmpstr;
 while (*tmpstr!=0  *tmpstr!=':') ++tmpstr;
 *tmpstr = 0; ++tmpstr;
 pwent.pw_dir= tmpstr;
 while (*tmpstr!=0  *tmpstr!=':') ++tmpstr;
-*tmpstr = 0; ++tmpstr;
+if (*tmpstr) { *tmpstr = 0; ++tmpstr; }
 pwent.pw_shell  = tmpstr;
 while (*tmpstr!=0  *tmpstr!=':'  *tmpstr!='\n') ++tmpstr;
-*tmpstr = 0; ++tmpstr;
+if (*tmpstr) { *tmpstr = 0; ++tmpstr; }
 #ifdef CLEAR_PASS
 pwent.pw_clear_passwd  = tmpstr;
-while (*tmpstr!=0  *tmpstr!=':'  *tmpstr!='\n') ++tmpstr;
-*tmpstr = 0; ++tmpstr;
+while (*tmpstr!=0  *tmpstr!='\n') ++tmpstr;
+if (*tmpstr) { *tmpstr = 0; ++tmpstr; }
 #endif
 return pwent;




[vchkpw] Is vpopmail crap?

2003-07-23 Thread Tom Collins
On Wednesday, July 23, 2003, at 07:46  AM, Russell Nelson wrote:
I have no idea how to make this work with vpopmail.  I don't use
vpopmail, nor do I recommend that anybody else use it.  I've read the 
code
for vpopmail, and although it's written to industry standards, it's 
crap.
Total and unmitigated crap.  Fixed-length buffers
everywhere, #ifdef every time you turn around, null-terminated strings
instead of counted strings, it's crap; crap, crap, crap.  I understand
that not everybody can afford a custom-crafted solution from Crynwr
Software, but sometimes you only get what you pay for in the open
source world.
I can't really disagree with him.  I've done a lot of work on the 
qmailadmin source recently, and I'm getting into the vpopmail source 
now.

It is poorly written code.  There are opportunities for buffer 
overflows in many places.  Code is duplicated where it should be 
replaced with functions.  Some of the code is very inefficient.  There 
are a lot of static, fixed-length buffers that could be replaced by 
dynamically-allocated buffers of the proper size.  It uses global 
variables.  It isn't well documented.

But, it works.  It works surprisingly well and I think it's a great way 
to do virtual domains with qmail.

I see this as an opportunity for improvement.  One of my goals of 
contributing to the vpopmail/qmailadmin projects is to clean the up.  
Make them more efficient and more secure.  I'm hoping that by doing so, 
others will take an interest and be encouraged to contribute patches 
that fix large sections of code, instead of just adding ugly band-aids 
on already ugly code.

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



Re: Re: [vchkpw] maildrop account on Virtual Domains

2003-07-23 Thread Rudi Ahlers
Hi
Thanx for the suggestion, but this doesn't seem to work in my case, since
I have Maildir mailbox'es. The question I have with fetchmail is, I have
a multidrop pop account, which I download via fetchmail. This account can
take any-email-address@domain, and this is where the problem lies. I
want to be able to filter say pete@domain, and forward that to the
user Pete. And this is where I got stuck--Kind RegardsRudi
AhlersTradeleads IT Director 27 (80( 926 1689---
Original Message From: "Peter Palmreuther"
<[EMAIL PROTECTED]>To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>CC:
Subject: Re: [vchkpw] maildrop account on Virtual DomainsDate:
23/07/03 01:07Hi Rudi,On Wed, 23 Jul 2003 12:47:59 Rudi
wrote: Hi Can someone please tell me howto do
this? If I have a domain, with one main account, and 10 mailboxes,
how do I tell it that everything except for the 10 mailboxes must
goto the main account?Change
'~vpopmail/domains//.qmail-default' with a text editorfrom
"|/path/to/vdelivermail '' bounce-no-mailbox" to"|/path/to/vdelivermail
''
/Full/path/to/a/vpopmail/user/directory",e.g."|/home/vpopmail/bin/vdelivermail
''/home/vpopmail/domains/example.com/mainuser" And then, how
would this setup work if I had fetchmail running as well
Fetchmail injects to MTA and MTA decides how to deliver.Above setup
tells MTA (qmail) and MDA (vpopmail) what to do, what shouldfetchmail
have to know about this catch-all?P.S.: For future mails to this
list you really should disable "Reply-To".1.) It's superfluous. It
contains the same address as "From" andtherefore is absolutely
useless.2.) It makes it impossible to easily reply to the list for those
MUAscapable of List-Reply by evaluating 'List-Post'
header.'Reply-To' takes, for obvious reasons, precedence
over'List-Post'.Thank
you.--Ciao,Pit




[vchkpw] Accepting mail for localhost, when using virtual domains

2003-07-23 Thread Rudi Ahlers
Hi again
This whole Virtual Domain thing is rather new to me, so I hope you have
patience with me.
My default local domain is set to tradeleads.co.za, but the machine my
virtual domain runs on is knocky.tradeleads.co.za. How do I accept local
emails? i.e, email sent to root / local system users? Email generated from
crontab / at / logs / etc?--Kind RegardsRudi AhlersTradeleads IT
Director 27 (80( 926 1689




Re: [vchkpw] Accepting mail for localhost, when using virtual domains

2003-07-23 Thread Tom Collins
On Wednesday, July 23, 2003, at 09:34  PM, Rudi Ahlers wrote:
My default local domain is set to tradeleads.co.za, but the machine my 
virtual domain runs on is knocky.tradeleads.co.za. How do I accept 
local emails? i.e, email sent to root / local system users? Email 
generated from crontab / at / logs / etc?
Create files in /var/qmail/alias:

echo [EMAIL PROTECTED]  /var/qmail/alias/.qmail-root
echo [EMAIL PROTECTED]  /var/qmail/alias/.qmail-postmaster
I also recommend the following to blackhole doublebounce notices (99.9% 
of which are from spammers forging email):

echo doublebounce  /var/qmail/control/doublebounceto
echo #  /var/qmail/alias/.qmail-doublebounce
--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



[vchkpw] valias and vuserinfo

2003-07-23 Thread Remo Mattei
Hello guys I am looking to get information for aliases what command do I
need to get it going, I have a script that will check if a user exist if it
doesn't then it will forward to another box but if it does then it will
deliver the mail locally. Therefore, I uses vuserinfo but I am not sure how
would I check that with aliases. Thanks for any suggestions.



Remo Mattei
Network Security Engineer
cell 801-209-8554
email [EMAIL PROTECTED]

attachment: winmail.dat