Re: [vchkpw] vpopmail with mysql support

2003-07-09 Thread zafar rizvi
hi
here is the all output of make command
*
cdbmake_add.o
make[2]: Leaving directory `/usr/local/src/vpopmail-5.2.1/cdb'
make[2]: Entering directory `/usr/local/src/vpopmail-5.2.1'
gcc -I. -I/usr/include/mysql  -g -O2 -Wall -c vpopmail.c
gcc -I. -I/usr/include/mysql  -g -O2 -Wall -c md5.c
gcc -I. -I/usr/include/mysql  -g -O2 -Wall -c bigdir.c
gcc -I. -I/usr/include/mysql  -g -O2 -Wall -c vauth.c
In file included from vauth.c:32:
vmysql.h:26:29: warning: multi-line string literals are deprecated
vmysql.h:27:35: warning: multi-line string literals are deprecated
vmysql.h:29:39: warning: multi-line string literals are deprecated
vmysql.h:30:35: warning: multi-line string literals are deprecated
vmysql.h:31:35: warning: multi-line string literals are deprecated
vmysql.h:36:38: warning: multi-line string literals are deprecated
vmysql.h:37:33: warning: multi-line string literals are deprecated
vmysql.h:39:39: warning: multi-line string literals are deprecated
vmysql.h:51:35: warning: multi-line string literals are deprecated
In file included from vauth.c:32:
vmysql.h:55: syntax error before "char"
vmysql.h:60:35: warning: multi-line string literals are deprecated
vmysql.h:71:24: warning: multi-line string literals are deprecated
vmysql.h:79:24: warning: multi-line string literals are deprecated
vmysql.h:84:42: warning: multi-line string literals are deprecated
vmysql.h:91:27: warning: multi-line string literals are deprecated
vmysql.h:59: stray '\' in program
vmysql.h:118:2: #else without #if
vmysql.h:130:2: #endif without #if
vmysql.h:243:2: #endif without #if
vauth.c: In function `vauth_open_update':
vauth.c:108: `mysql_update' undeclared (first use in this function)
vauth.c:108: (Each undeclared identifier is reported only once
vauth.c:108: for each function it appears in.)
vauth.c:112: parse error before "rizvi"
vauth.c:122: parse error before "rizvi"
vauth.c: At top level:
vauth.c:133: parse error before numeric constant
vauth.c:134: warning: type defaults to `int' in declaration of `snprintf'
vauth.c:134: warning: data definition has no type or storage class
vauth.c:143: warning: type defaults to `int' in declaration of `res_update'
vauth.c:143: conflicting types for `res_update'
vauth.c:54: previous declaration of `res_update'
vauth.c:143: `mysql_update' undeclared here (not in a function)
vauth.c:143: warning: initialization makes integer from pointer without a
cast
vauth.c:143: initializer element is not constant
vauth.c:143: warning: data definition has no type or storage class
vauth.c:144: warning: type defaults to `int' in declaration of
`mysql_free_result'
vauth.c:144: warning: parameter names (without types) in function
declaration
vauth.c:144: conflicting types for `mysql_free_result'
/usr/include/mysql/mysql.h:271: previous declaration of `mysql_free_result'
vauth.c:144: warning: data definition has no type or storage class
vauth.c:147: parse error before "if"
vauth.c: In function `vauth_open_read_getall':
vauth.c:199: `MYSQL_READ_SERVER' undeclared (first use in this function)
vauth.c:200: `MYSQL_READ_USER' undeclared (first use in this function)
vauth.c:200: `MYSQL_READ_PASSWD' undeclared (first use in this function)
vauth.c:200: `MYSQL_DATABASE' undeclared (first use in this function)
vauth.c:201: `MYSQL_VPORT' undeclared (first use in this function)
vauth.c:205: parse error before "rizvi"
vauth.c: At top level:
vauth.c:214: parse error before "return"
vauth.c: In function `vauth_adddomain':
vauth.c:228: `MYSQL_DEFAULT_TABLE' undeclared (first use in this function)
vauth.c:232: `TABLE_LAYOUT' undeclared (first use in this function)
vauth.c:234: `mysql_update' undeclared (first use in this function)
vauth.c:239: warning: assignment makes integer from pointer without a cast
vauth.c: In function `vauth_adduser':
vauth.c:269: `MYSQL_DEFAULT_TABLE' undeclared (first use in this function)
vauth.c:272: `MYSQL_LARGE_USERS_TABLE' undeclared (first use in this
function)
vauth.c:311: warning: int format, pointer arg (arg 7)
vauth.c:311: warning: format argument is not a pointer (arg 8)
vauth.c:311: warning: too many arguments for format
vauth.c:313: `mysql_update' undeclared (first use in this function)
vauth.c:317: warning: assignment makes integer from pointer without a cast
vauth.c: In function `vauth_getpw':
vauth.c:351: `MYSQL_DEFAULT_TABLE' undeclared (first use in this function)
vauth.c:355: `MYSQL_LARGE_USERS_TABLE' undeclared (first use in this
function)
vauth.c:365: `mysql_update' undeclared (first use in this function)
vauth.c:370: warning: assignment makes integer from pointer without a cast
vauth.c:375: warning: passing arg 1 of `mysql_num_rows' makes pointer from
integer without a cast
vauth.c:394: warning: passing arg 1 of `mysql_fetch_row' makes pointer from
integer without a cast
vauth.c: In function `vauth_deldomain':
vauth.c:425: `MYSQL_DEFAULT_TABLE' undeclared (first use in this function)
vauth.c:430: `mysql_update' undeclared 

Re: [vchkpw] vpopmail with mysql support

2003-07-09 Thread Ahmad Masood Shah
hmmm it seems when u added you login name rizvi and password rizvi.. you had
done something wrong with syntex of this file..  I will suggest better to
untar again source and put username and password as it will...
Always becareful for syntex when adding something to source

sorry for spell mistake due to lake of time :)

-- 

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)
"All I want is a few minutes alone with the source code for the universe and
a quick recompile."


- Original Message - 
From: "zafar rizvi" <[EMAIL PROTECTED]>
To: "Ahmad Masood Shah" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, July 09, 2003 12:27 PM
Subject: Re: [vchkpw] vpopmail with mysql support


| hi
| here is the all output of make command
| *
| cdbmake_add.o
| make[2]: Leaving directory `/usr/local/src/vpopmail-5.2.1/cdb'
| make[2]: Entering directory `/usr/local/src/vpopmail-5.2.1'
| gcc -I. -I/usr/include/mysql  -g -O2 -Wall -c vpopmail.c
| gcc -I. -I/usr/include/mysql  -g -O2 -Wall -c md5.c
| gcc -I. -I/usr/include/mysql  -g -O2 -Wall -c bigdir.c
| gcc -I. -I/usr/include/mysql  -g -O2 -Wall -c vauth.c
| In file included from vauth.c:32:
| vmysql.h:26:29: warning: multi-line string literals are deprecated
| vmysql.h:27:35: warning: multi-line string literals are deprecated
| vmysql.h:29:39: warning: multi-line string literals are deprecated
| vmysql.h:30:35: warning: multi-line string literals are deprecated
| vmysql.h:31:35: warning: multi-line string literals are deprecated
| vmysql.h:36:38: warning: multi-line string literals are deprecated
| vmysql.h:37:33: warning: multi-line string literals are deprecated
| vmysql.h:39:39: warning: multi-line string literals are deprecated
| vmysql.h:51:35: warning: multi-line string literals are deprecated
| In file included from vauth.c:32:
| vmysql.h:55: syntax error before "char"
| vmysql.h:60:35: warning: multi-line string literals are deprecated
| vmysql.h:71:24: warning: multi-line string literals are deprecated
| vmysql.h:79:24: warning: multi-line string literals are deprecated
| vmysql.h:84:42: warning: multi-line string literals are deprecated
| vmysql.h:91:27: warning: multi-line string literals are deprecated
| vmysql.h:59: stray '\' in program
| vmysql.h:118:2: #else without #if
| vmysql.h:130:2: #endif without #if
| vmysql.h:243:2: #endif without #if
| vauth.c: In function `vauth_open_update':
| vauth.c:108: `mysql_update' undeclared (first use in this function)
| vauth.c:108: (Each undeclared identifier is reported only once
| vauth.c:108: for each function it appears in.)
| vauth.c:112: parse error before "rizvi"
| vauth.c:122: parse error before "rizvi"
| vauth.c: At top level:
| vauth.c:133: parse error before numeric constant
| vauth.c:134: warning: type defaults to `int' in declaration of `snprintf'
| vauth.c:134: warning: data definition has no type or storage class
| vauth.c:143: warning: type defaults to `int' in declaration of
`res_update'
| vauth.c:143: conflicting types for `res_update'
| vauth.c:54: previous declaration of `res_update'
| vauth.c:143: `mysql_update' undeclared here (not in a function)
| vauth.c:143: warning: initialization makes integer from pointer without a
| cast
| vauth.c:143: initializer element is not constant
| vauth.c:143: warning: data definition has no type or storage class
| vauth.c:144: warning: type defaults to `int' in declaration of
| `mysql_free_result'
| vauth.c:144: warning: parameter names (without types) in function
| declaration
| vauth.c:144: conflicting types for `mysql_free_result'
| /usr/include/mysql/mysql.h:271: previous declaration of
`mysql_free_result'
| vauth.c:144: warning: data definition has no type or storage class
| vauth.c:147: parse error before "if"
| vauth.c: In function `vauth_open_read_getall':
| vauth.c:199: `MYSQL_READ_SERVER' undeclared (first use in this function)
| vauth.c:200: `MYSQL_READ_USER' undeclared (first use in this function)
| vauth.c:200: `MYSQL_READ_PASSWD' undeclared (first use in this function)
| vauth.c:200: `MYSQL_DATABASE' undeclared (first use in this function)
| vauth.c:201: `MYSQL_VPORT' undeclared (first use in this function)
| vauth.c:205: parse error before "rizvi"
| vauth.c: At top level:
| vauth.c:214: parse error before "return"
| vauth.c: In function `vauth_adddomain':
| vauth.c:228: `MYSQL_DEFAULT_TABLE' undeclared (first use in this function)
| vauth.c:232: `TABLE_LAYOUT' undeclared (first use in this function)
| vauth.c:234: `mysql_update' undeclared (first use in this function)
| 

[vchkpw] Wrong reply-to in SqWebMail for virt domains

2003-07-09 Thread gjohnson
Hi.

I have vpopmail, courier-imap and sqwebmail running on OpenBSD 3.3 with
apache NOT chrooted.

I have two domains: real.domain and virtual.domain
In SqWebMail, virtuser with virtual.domain logs on to SqWebMail thus
virtuser%virtual.domain & pass
But once logged on they see themselves as
"[EMAIL PROTECTED]"
which also appears as their reply-to address (until/unless they change it).
Naturally, many will not change it.

Real users see [EMAIL PROTECTED] -- so they are fine.
I would just like virtusers to see [EMAIL PROTECTED] both at the top
of the page and for their reply-to.  Is this possible?  If so, how do I
change the virt.domain setting?



[vchkpw] Mail to local users

2003-07-09 Thread Bård Tommy Nilsen



 
 
what about mail to 
the local users on the machine such as root ??
 
the mails newer gets 
the user ...
 
 
Bård 
Tommy


[vchkpw] vppopmail 5.3 stable?

2003-07-09 Thread Sverre Nilsen
I've been trying to get vpopmail to work with spamassassin and I have now
set it up right. But I have problems with the vpopmail forking issue
making hundres of copies of catched spam. I'm currently running vpopmail
5.2.1 and I understand this bug is fixed in 5.3.

However I'm having strong doubts about running development software as
this is a production server hosting somewhat 500 domains.

So my question is do you have any estimate on when 5.3 will become stable?
Or is there a patch to fix this in 5.2.1?

--
  .-.
  oo|  Sverre Nilsen | <[EMAIL PROTECTED]>
 /`'\  Nilsen Consulting | http://www.nilsenconsulting.no/
(\_;/) (+47) 970 85 860



[vchkpw] No incoming mail

2003-07-09 Thread Bård Tommy Nilsen



Hello
 
my mailserver is 
delivering mail to my virtualdomains as long as i sends them 
from
the 
mailserver.
 
When i try to send 
email from another server, the mail never gets there, and i doesnt either 
get
the mail in 
return...
 
What have i missed 
?
 
 
the virtual domain 
answer on ping from the other server
 
 
 
Regards
Bård 
Tommy


[vchkpw] SMTP is too slow

2003-07-09 Thread Nasib Salim
Dear all,

   I'm running Qmail with vpopmail and qmail-scanner. For the past 2 years 
there were no problem but recently the problem starts. 

  SMTP Server is too slow to respond. it takes more than a minute for it to 
response.  My DNS is working fine and there is no problem even resolving the 
mail server. I know the DNS is the source is this problem but seems its not.

 Please help!

Nasib A Salim
Mediapost (T) Ltd



Re: [vchkpw] SMTP is too slow

2003-07-09 Thread Ahmad Masood Shah
for SMTP slow responce problem can be in may things and dns is one of them..
I will suggest better to check ..
1> vmstat 2 5 (check swap mem etcc)
2> check your LAN (Network load)
3> if hard disk IDE check that can be loaded with bad sectors.
4> check inode vie df 0i


-- 

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: "Nasib Salim" <[EMAIL PROTECTED]>
To: "'vpopmail list'" <[EMAIL PROTECTED]>
Sent: Thursday, July 10, 2003 12:01 AM
Subject: [vchkpw] SMTP is too slow


| Dear all,
|
|I'm running Qmail with vpopmail and qmail-scanner. For the past 2 years
| there were no problem but recently the problem starts.
|
|   SMTP Server is too slow to respond. it takes more than a minute for it
to
| response.  My DNS is working fine and there is no problem even resolving
the
| mail server. I know the DNS is the source is this problem but seems its
not.
|
|  Please help!
|
| Nasib A Salim
| Mediapost (T) Ltd
|
|




Re: [vchkpw] SMTP is too slow

2003-07-09 Thread Sérgio Manuel Rosa
Hi Nasib,

a personal question because I'm having kinda same problem.
Do you have a DMZ?
Do you have internal dns and public dns?
I have a problem like yours but only from my internal net. Clients from 
the "outer world" dont have any problem, inside hosts have timeouts.

Regards,
SRosa
Nasib Salim wrote:

Dear all,

  I'm running Qmail with vpopmail and qmail-scanner. For the past 2 years 
there were no problem but recently the problem starts. 

 SMTP Server is too slow to respond. it takes more than a minute for it to 
response.  My DNS is working fine and there is no problem even resolving the 
mail server. I know the DNS is the source is this problem but seems its not.

Please help!

Nasib A Salim
Mediapost (T) Ltd


 







Re: [vchkpw] SMTP is too slow

2003-07-09 Thread Nasib Salim
Hi Sergio
 I dont have a DMZ and  I have only public DNS.
I have problems in both internal net and outside world.

Nasib 
On Wed 09 Jul 03 12:33, Sérgio Manuel Rosa wrote:
>   Hi Nasib,
>
> a personal question because I'm having kinda same problem.
> Do you have a DMZ?
> Do you have internal dns and public dns?
>
> I have a problem like yours but only from my internal net. Clients from
> the "outer world" dont have any problem, inside hosts have timeouts.
>
> Regards,
> SRosa
>
> Nasib Salim wrote:
> >Dear all,
> >
> >   I'm running Qmail with vpopmail and qmail-scanner. For the past 2 years
> >there were no problem but recently the problem starts.
> >
> >  SMTP Server is too slow to respond. it takes more than a minute for it
> > to response.  My DNS is working fine and there is no problem even
> > resolving the mail server. I know the DNS is the source is this problem
> > but seems its not.
> >
> > Please help!
> >
> >Nasib A Salim
> >Mediapost (T) Ltd



Re: [vchkpw] SMTP is too slow

2003-07-09 Thread Kit Halsted
I could be wrong here, but both of these sound like reverse-DNS
problems to me. Check that reverse-DNS (IP to name, rather than name
to IP) is correctly set up & see if that doesn't make the problem go
away. (Apologies if I'm wrong here, suffering from long-term
sleep-dep...)
HTH,
-Kit
At 3:35 PM + 7/9/03, Sérgio Manuel Rosa wrote:
Hi Nasib,

a personal question because I'm having kinda same problem.
Do you have a DMZ?
Do you have internal dns and public dns?
I have a problem like yours but only from my internal net. Clients
from the "outer world" dont have any problem, inside hosts have
timeouts.
Regards,
SRosa
Nasib Salim wrote:

Dear all,

  I'm running Qmail with vpopmail and qmail-scanner. For the past 2
years there were no problem but recently the problem starts.
 SMTP Server is too slow to respond. it takes more than a minute
for it to response.  My DNS is working fine and there is no problem
even resolving the mail server. I know the DNS is the source is
this problem but seems its not.
Please help!
--
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."  -Benjamin Franklin
"...qui desiderat pacem, praeparet bellum"
(...if you would have peace, be prepared for war)  -Flavius Vegetius Renatus


Re: [vchkpw] SMTP is too slow

2003-07-09 Thread Paul Fletcher
Are you using inetd or tcpserver?  And is there any NAT between the smtp
server and its dns resolver?

At 17:44 09/07/03 -0300, Nasib Salim wrote:
>Hi Sergio
> I dont have a DMZ and  I have only public DNS.
>I have problems in both internal net and outside world.
>
>Nasib 
>On Wed 09 Jul 03 12:33, Sérgio Manuel Rosa wrote:
>>   Hi Nasib,
>>
>> a personal question because I'm having kinda same problem.
>> Do you have a DMZ?
>> Do you have internal dns and public dns?
>>
>> I have a problem like yours but only from my internal net. Clients from
>> the "outer world" dont have any problem, inside hosts have timeouts.
>>
>> Regards,
>> SRosa
>>
>> Nasib Salim wrote:
>> >Dear all,
>> >
>> >   I'm running Qmail with vpopmail and qmail-scanner. For the past 2 years
>> >there were no problem but recently the problem starts.
>> >
>> >  SMTP Server is too slow to respond. it takes more than a minute for it
>> > to response.  My DNS is working fine and there is no problem even
>> > resolving the mail server. I know the DNS is the source is this problem
>> > but seems its not.
>> >
>> > Please help!
>> >
>> >Nasib A Salim
>> >Mediapost (T) Ltd
>
>
>
>This email has been scanned for all viruses by the MessageLabs Email
>Security System. For more information on a proactive email security
>service working around the clock, around the globe, visit
>http://www.messagelabs.com
>
>
>
>This email has been scanned for all viruses by the MessageLabs Email
>Security System. For more information on a proactive email security
>service working around the clock, around the globe, visit
>http://www.messagelabs.com
>
>
>


This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com




Re: [vchkpw] SMTP is too slow

2003-07-09 Thread Sérgio Manuel Rosa
Hi,
tcpserver (last release)
NAT only at the FW, routing to the inside net. Kinda like this
WWW---FW with PublicIP--NAT--SMTP---routing---Internal Network

Regards,
SRosa
Paul Fletcher wrote:

Are you using inetd or tcpserver?  And is there any NAT between the smtp
server and its dns resolver?
At 17:44 09/07/03 -0300, Nasib Salim wrote:
 

Hi Sergio
I dont have a DMZ and  I have only public DNS.
I have problems in both internal net and outside world.
Nasib 
On Wed 09 Jul 03 12:33, Sérgio Manuel Rosa wrote:
   

 Hi Nasib,

a personal question because I'm having kinda same problem.
Do you have a DMZ?
Do you have internal dns and public dns?
I have a problem like yours but only from my internal net. Clients from
the "outer world" dont have any problem, inside hosts have timeouts.
Regards,
SRosa
Nasib Salim wrote:
 

Dear all,

 I'm running Qmail with vpopmail and qmail-scanner. For the past 2 years
there were no problem but recently the problem starts.
SMTP Server is too slow to respond. it takes more than a minute for it
to response.  My DNS is working fine and there is no problem even
resolving the mail server. I know the DNS is the source is this problem
but seems its not.
Please help!

Nasib A Salim
Mediapost (T) Ltd
   


This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com


This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com

   


This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com

 







Re: [vchkpw] SMTP is too slow

2003-07-09 Thread Kiril Todorov
check if your fw block identd also.
-- 

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

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



Re: [vchkpw] No incoming mail

2003-07-09 Thread Kiril Todorov
On Wed, Jul 09, 2003 at 01:48:27PM +0200, Bеrd Tommy Nilsen wrote:
> Hello
>  
> my mailserver is delivering mail to my virtualdomains as long as i sends
> them from
> the mailserver.
any logs of that?
>  
> When i try to send email from another server, the mail never gets there, and
> i doesnt either get
> the mail in return...
and any logs of that?
>  
> What have i missed ?
the logs.
>  
>  
> the virtual domain answer on ping from the other server
:) 

-- 

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

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



Re: [vchkpw] Wrong reply-to in SqWebMail for virt domains

2003-07-09 Thread Kiril Todorov
That's controlled from the sqwebmail-config file, which is in the user's 
Maildir/.
Find attached a small patch written by Peter Penchev <[EMAIL PROTECTED]> which creates 
that file in usercreate time with the proper FROM: setting there.

I think the patch was designed for vpopmail-5.3.20, not sure if it will need adjusting 
for different versions.
Hope that helps!
-- 

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

/* waiting... dreaming... wishing... */
--- vchkpw.c.orig   Tue Apr 29 14:24:51 2003
+++ vchkpw.cTue Apr 29 14:24:51 2003
@@ -377,7 +377,7 @@
   if ( vpw->pw_dir == NULL || vpw->pw_dir[0]==0 ) {
 
 /* if making a new directory failed log the error and exit */
-if ( make_user_dir(vpw->pw_name, TheDomain, pw_uid, pw_gid)==NULL){
+if ( make_user_dir(vpw->pw_name, TheDomain, vpw->pw_name, pw_uid, pw_gid)==NULL){
   snprintf(LogLine, LOG_LINE_SIZE, "%s: dir auto create failed [EMAIL 
PROTECTED]:%s", 
 VchkpwLogName, TheUser, TheDomain, IpAddr);
   vlog(VLOG_ERROR_INTERNAL, TheUser, TheDomain, ThePass, 
--- vdelivermail.c.orig Sat Nov  2 22:34:39 2002
+++ vdelivermail.c  Sat Nov  2 22:35:20 2002
@@ -946,7 +946,7 @@
 
 /* If thier directory path is empty make them a new one */
 if ( vpw->pw_dir == NULL || vpw->pw_dir[0]==0 ) {
-if ( make_user_dir(vpw->pw_name, TheDomain, 
+if ( make_user_dir(vpw->pw_name, TheDomain, vpw->pw_name,
TheDomainUid, TheDomainGid)==NULL){
 printf("Auto creation of maildir failed. vpopmail (#5.9.8)\n");
 vexit(100);
--- vpopmail.c.orig Tue Apr 29 14:17:56 2003
+++ vpopmail.c  Tue Apr 29 14:18:01 2003
@@ -328,7 +328,7 @@
 }
   }
 
-  if ( (dir=make_user_dir(username, domain, uid, gid)) == NULL ) {
+  if ( (dir=make_user_dir(username, domain, gecos, uid, gid)) == NULL ) {
 if (verrori != 0 ) return(verrori);
 else return(VA_BAD_U_DIR);
   }
@@ -1453,16 +1453,45 @@
 return &pwent;
 }
 
+char *escape_spaces(const char *s)
+{
+  size_t i, len;
+  char *newstr;
+  
+  /* Count the spaces */
+  for (i = len = 0; s[i]; i++, len++)
+if (s[i] == ' ')
+  len += 2;
+  /* Allocate */
+  newstr = malloc(len + 1);
+  if (newstr == NULL)
+return (NULL);
+  /* Fill */
+  for (i = len = 0; s[i]; i++)
+if (s[i] == ' ') {
+  newstr[len++] = '+';
+  newstr[len++] = '2';
+  newstr[len++] = '0';
+} else {
+  newstr[len++] = s[i];
+}
+  newstr[len] = '\0';
+  return (newstr);
+}
+
 /*
  * figure out where to put the user and
  * make the directories if needed
  */
-char *make_user_dir(char *username, char *domain, uid_t uid, gid_t gid)
+char *make_user_dir(char *username, char *domain, char *gecos,
+   uid_t uid, gid_t gid)
 {
  char *tmpstr;
  char *tmpbuf;
  char *tmpdir;
  struct vqpasswd *mypw;
+ char *fulladdr, *escaped;
+ FILE *cfg;
 
   verrori = 0;
   tmpbuf = malloc(MAX_BUFF);
@@ -1522,6 +1551,35 @@
 return(NULL);
   }
 
+  if ((cfg = fopen("sqwebmail-config", "wt")) == NULL) {
+chdir(tmpbuf); free(tmpbuf); free(tmpdir);
+printf("make_user_dir: error 8\n");
+return(NULL);
+  }
+  if ((escaped = escape_spaces(username)) == NULL) {
+fclose(cfg);
+chdir(tmpbuf); free(tmpbuf); free(tmpdir);
+printf("make_user_dir: error 9\n");
+return(NULL);
+  }
+  if ((fulladdr = malloc(strlen(gecos) + strlen(username) + strlen(domain) + 10)) == 
NULL) {
+fclose(cfg);
+chdir(tmpbuf); free(tmpbuf); free(tmpdir);
+printf("make_user_dir: error 9\n");
+return(NULL);
+  }
+  sprintf(fulladdr, "\"%s <[EMAIL PROTECTED]>\"", gecos, username, domain);
+  if ((escaped = escape_spaces(fulladdr)) == NULL) {
+fclose(cfg);
+chdir(tmpbuf); free(tmpbuf); free(tmpdir);
+printf("make_user_dir: error 10\n");
+return(NULL);
+  }
+  free(fulladdr);
+  fprintf(cfg, "FROM=%s\n", escaped);
+  free(escaped);
+  fclose(cfg);
+  
   chdir("../..");
   r_chown(username, uid, gid);
 
--- vpopmail.h.orig Tue Apr 29 14:21:06 2003
+++ vpopmail.h  Tue Apr 29 14:21:19 2003
@@ -128,7 +128,7 @@
 int update_file(char *, char *);
 int count_rcpthosts();
 int compile_morercpthosts();
-char *make_user_dir(char *username, char *domain, uid_t uid, gid_t gid);
+char *make_user_dir(char *username, char *domain, char *gecos, uid_t uid, gid_t gid);
 int r_mkdir(char *, uid_t uid, gid_t gid);
 struct vqpasswd *vgetent(FILE *);
 int pw_comp(char *, char *, char *, int);
--- vqmaillocal.c.orig  Tue Apr 29 14:24:51 2003
+++ vqmaillocal.c   Tue Apr 29 14:24:51 2003
@@ -895,7 +895,7 @@
   gid_t pw_gid;
 
vget_assign(TheDomain,NULL,0,&pw_uid,&pw_gid);
-if ( make_user_dir(vpw->pw_name, TheDomain, pw_uid, pw_gid)==NULL){
+if ( make_user_dir(vpw->pw_name, TheDomain, vpw->pw_name, pw_uid, 
pw_gid)==NULL){
 printf("Auto creation of maildir failed. vpopmail (#5.9.8)\n");
 vexit(100);
 }


Re: [vchkpw] Mail to local users

2003-07-09 Thread Kiril Todorov
On Wed, Jul 09, 2003 at 12:12:29PM +0200, Bеrd Tommy Nilsen wrote:
>  
>  
> what about mail to the local users on the machine such as root ??
>  
> the mails newer gets the user ...
>  
>  
> Bеrd Tommy

that's explained in the FAQ, use dot qmail aliases for the system users to 
forward them to the real people that should read that mail.

-- 

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

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



Re: [vchkpw] SMTP is too slow

2003-07-09 Thread Paul Theodoropoulos
do your qmail logs provide any diagnostic info?

At 09:26 AM 7/9/2003, Sérgio Manuel Rosa wrote:
Hi,
tcpserver (last release)
NAT only at the FW, routing to the inside net. Kinda like this
WWW---FW with PublicIP--NAT--SMTP---routing---Internal Network

Regards,
SRosa
Paul Fletcher wrote:

Are you using inetd or tcpserver?  And is there any NAT between the smtp
server and its dns resolver?
At 17:44 09/07/03 -0300, Nasib Salim wrote:


Hi Sergio
I dont have a DMZ and  I have only public DNS.
I have problems in both internal net and outside world.
Nasib On Wed 09 Jul 03 12:33, Sérgio Manuel Rosa wrote:


 Hi Nasib,

a personal question because I'm having kinda same problem.
Do you have a DMZ?
Do you have internal dns and public dns?
I have a problem like yours but only from my internal net. Clients from
the "outer world" dont have any problem, inside hosts have timeouts.
Regards,
SRosa
Nasib Salim wrote:


Dear all,

 I'm running Qmail with vpopmail and qmail-scanner. For the past 2 years
there were no problem but recently the problem starts.
SMTP Server is too slow to respond. it takes more than a minute for it
to response.  My DNS is working fine and there is no problem even
resolving the mail server. I know the DNS is the source is this problem
but seems its not.
Please help!

Nasib A Salim
Mediapost (T) Ltd

This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com


This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com




This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com







Paul Theodoropoulos
http://www.anastrophe.com
http://folding.stanford.edu
The Nicest Misanthrope on the Net 





Re: [vchkpw] No incoming mail

2003-07-09 Thread Ajai Khattri
Bård Tommy Nilsen wrote:

my mailserver is delivering mail to my virtualdomains as long as i sends 
them from
the mailserver.
 
When i try to send email from another server, the mail never gets there, 
and i doesnt either get
the mail in return...
Did you try telnetting from another server to port 25 of your mail 
server and talking SMTP to it?

--
Aj.
Systems Administrator / Developer



Re: [vchkpw] SMTP is too slow

2003-07-09 Thread tonix (Antonio Nati)
Did you add "-H -l yourlocalname" to your tcpserver?

It avoids consulting DNS for changing IP to names. When it looks for not 
existent names, or when yout DNS server is working bad, you have huge delays.

If you have a private address as sender or receiver, no public DNS will be 
able to traslate it.

Ciao,

Tonino

At 09/07/03 09/07/03 +, Sérgio Manuel Rosa wrote:
Hi Nasib,

a personal question because I'm having kinda same problem.
Do you have a DMZ?
Do you have internal dns and public dns?
I have a problem like yours but only from my internal net. Clients from 
the "outer world" dont have any problem, inside hosts have timeouts.

Regards,
SRosa
Nasib Salim wrote:

Dear all,

  I'm running Qmail with vpopmail and qmail-scanner. For the past 2 
years there were no problem but recently the problem starts.
 SMTP Server is too slow to respond. it takes more than a minute for it 
to response.  My DNS is working fine and there is no problem even 
resolving the mail server. I know the DNS is the source is this problem 
but seems its not.

Please help!

Nasib A Salim
Mediapost (T) Ltd








[EMAIL PROTECTED]Interazioni di Antonio Nati
   http://www.interazioni.it  [EMAIL PROTECTED]




Re: [vchkpw] Mail to local users

2003-07-09 Thread Ajai Khattri
Bård Tommy Nilsen wrote:

what about mail to the local users on the machine such as root ??
 
the mails newer gets the user ...
Im assuming you're using vpopmail, yes?

If so, add your default domain using vadddomain, add all your default 
domain accounts using vadduser. You may want to create forwards for root 
and MAILER-DAEMON that forward to a real person.

man dot-qmail

--
Aj.
Systems Administrator / Developer



Re: [vchkpw] vpopmail with mysql support

2003-07-09 Thread Ajai Khattri
zafar rizvi wrote:

hi ppl
i am using qmail on linux with vpopmail(5.3.14) support with mysql. But
getting error like that when using with mysql support.
Any body has idea about that error.

vauth.c: In function `vget_lastauth':
vauth.c:1132: `mysql_update' undeclared (first use in this function)
vauth.c:1139: warning: assignment makes integer from pointer without a cast
vauth.c:1141: warning: passing arg 1 of `mysql_fetch_row' makes pointer from
integer without a cast
vauth.c: In function `vget_lastauthip':
vauth.c:1157: `mysql_update' undeclared (first use in this function)
vauth.c:1164: warning: assignment makes integer from pointer without a cast
vauth.c:1165: warning: passing arg 1 of `mysql_fetch_row' makes pointer from
integer without a cast
vauth.c: In function `vcreate_lastauth_table':
vauth.c:1178: `LASTAUTH_TABLE_LAYOUT' undeclared (first use in this
function)
vauth.c:1179: `mysql_update' undeclared (first use in this function)
vauth.c:1183: warning: assignment makes integer from pointer without a cast
vauth.c: In function `logmysql':
vauth.c:1352: `mysql_update' undeclared (first use in this function)
vauth.c:1359: warning: assignment makes integer from pointer without a cast
vauth.c: In function `vcreate_vlog_table':
vauth.c:1372: `mysql_update' undeclared (first use in this function)
vauth.c:1376: warning: assignment makes integer from pointer without a cast
make[2]: *** [vauth.o] Error 1
make[2]: Leaving directory `/usr/local/src/vpopmail-5.2.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/vpopmail-5.2.1'
make: *** [all-recursive-am] Error 2
**
Did you edit vmysql.h (as it says in README.mysql) ?

Also, is MySQL installed from RPM?

--
Aj.
Systems Administrator / Developer



Re: [vchkpw] Wrong reply-to in SqWebMail for virt domains

2003-07-09 Thread Doug Clements
gjohnson wrote:
Hi.

I have vpopmail, courier-imap and sqwebmail running on OpenBSD 3.3 with
apache NOT chrooted.
I have two domains: real.domain and virtual.domain
In SqWebMail, virtuser with virtual.domain logs on to SqWebMail thus
virtuser%virtual.domain & pass
But once logged on they see themselves as
"[EMAIL PROTECTED]"
which also appears as their reply-to address (until/unless they change it).
Naturally, many will not change it.
Real users see [EMAIL PROTECTED] -- so they are fine.
I would just like virtusers to see [EMAIL PROTECTED] both at the top
of the page and for their reply-to.  Is this possible?  If so, how do I
change the virt.domain setting?
Set the sqwebmail prefs for the user when you create the account. They 
include the Reply-To address.

--Doug




Re: [vchkpw] vdeluser and 'User does not exist'

2003-07-09 Thread vol
vpopmail recognizes and uses morercpthosts, I just
neglected to consider the fact that you might have more
than 50 domains :)
This certianly is an interesting issue.  I'd recommend
doing an strace on the vdeluser command.  If you'd like,
paste the results into a message to the list.  I'd like
to see what's causing the problem.
Thanks!

[EMAIL PROTECTED] wrote:
Well, the majority of the vpopmail API checks things
in the same order qmail does.  vmoduser may be one of
the few exceptions.
/var/qmail/control/rcpthosts
/var/qmail/users/cdb
/path/to/domain/vpasswd.cdb (or other authentication mechanism)
Be sure the domain and user exist in the first two
qmail files.  /var/qmail/users/cdb is compiled from
/var/qmail/users/assign.  Im willing to bet there is
an issue with the domain these users are on existing
in the right places in the qmail configurations.


Nope. These files are exactly as they should be. The domain in question
exists in /var/qmail/control/morercpthosts and
/var/qmail/control/morercpthosts.cdb is up to date.
Of course, vpasswd might totally not expect morercpthosts. Strangely
though, vadddomain adds new domains to this file, even though it's
actually larger than rcpthosts(?).
Mail delivery is fine and dandy though. Mail is getting through to a user
that I can't delete or change the password for, and vdominfo displays the
right information for the user.
So if this is because the api is acting strange for vpasswd, prehaps it
needs to recognize the possible extra file
/var/qmail/control/morercpthosts.






--
mailto:[EMAIL PROTECTED]
Matt Brookings - Chief Technical Officer
Inter7 Internet Technologies, Inc.
www.inter7.com - 847-492-0470
Prices at http://www.inter7.com/prices



Re: [vchkpw] vpopmail with mysql support

2003-07-09 Thread vol
Hi, Zafar.

Try the latest development release of vpopmail.
As you can see below, it's stating there is a
syntax error in the header file.  This could be
a result of your system, or the older version
of vpopmail.  If you get the latest development
release and this occurs, make sure you have the
latest MySQL-devel, and latest MySQL installed,
and that you're running the latest stable GNU
compiler.
Hope that helps!

zafar rizvi wrote:
hi
here is the all output of make command
*
cdbmake_add.o
make[2]: Leaving directory `/usr/local/src/vpopmail-5.2.1/cdb'
make[2]: Entering directory `/usr/local/src/vpopmail-5.2.1'
gcc -I. -I/usr/include/mysql  -g -O2 -Wall -c vpopmail.c
gcc -I. -I/usr/include/mysql  -g -O2 -Wall -c md5.c
gcc -I. -I/usr/include/mysql  -g -O2 -Wall -c bigdir.c
gcc -I. -I/usr/include/mysql  -g -O2 -Wall -c vauth.c
In file included from vauth.c:32:
vmysql.h:26:29: warning: multi-line string literals are deprecated
vmysql.h:27:35: warning: multi-line string literals are deprecated
vmysql.h:29:39: warning: multi-line string literals are deprecated
vmysql.h:30:35: warning: multi-line string literals are deprecated
vmysql.h:31:35: warning: multi-line string literals are deprecated
vmysql.h:36:38: warning: multi-line string literals are deprecated
vmysql.h:37:33: warning: multi-line string literals are deprecated
vmysql.h:39:39: warning: multi-line string literals are deprecated
vmysql.h:51:35: warning: multi-line string literals are deprecated
In file included from vauth.c:32:
vmysql.h:55: syntax error before "char"
vmysql.h:60:35: warning: multi-line string literals are deprecated
vmysql.h:71:24: warning: multi-line string literals are deprecated
vmysql.h:79:24: warning: multi-line string literals are deprecated
vmysql.h:84:42: warning: multi-line string literals are deprecated
vmysql.h:91:27: warning: multi-line string literals are deprecated
vmysql.h:59: stray '\' in program
vmysql.h:118:2: #else without #if
vmysql.h:130:2: #endif without #if
vmysql.h:243:2: #endif without #if
vauth.c: In function `vauth_open_update':
vauth.c:108: `mysql_update' undeclared (first use in this function)
vauth.c:108: (Each undeclared identifier is reported only once
vauth.c:108: for each function it appears in.)
vauth.c:112: parse error before "rizvi"
vauth.c:122: parse error before "rizvi"
vauth.c: At top level:
vauth.c:133: parse error before numeric constant
vauth.c:134: warning: type defaults to `int' in declaration of `snprintf'
vauth.c:134: warning: data definition has no type or storage class
vauth.c:143: warning: type defaults to `int' in declaration of `res_update'
vauth.c:143: conflicting types for `res_update'
vauth.c:54: previous declaration of `res_update'
vauth.c:143: `mysql_update' undeclared here (not in a function)
vauth.c:143: warning: initialization makes integer from pointer without a
cast
vauth.c:143: initializer element is not constant
vauth.c:143: warning: data definition has no type or storage class
vauth.c:144: warning: type defaults to `int' in declaration of
`mysql_free_result'
vauth.c:144: warning: parameter names (without types) in function
declaration
vauth.c:144: conflicting types for `mysql_free_result'
/usr/include/mysql/mysql.h:271: previous declaration of `mysql_free_result'
vauth.c:144: warning: data definition has no type or storage class
vauth.c:147: parse error before "if"
vauth.c: In function `vauth_open_read_getall':
vauth.c:199: `MYSQL_READ_SERVER' undeclared (first use in this function)
vauth.c:200: `MYSQL_READ_USER' undeclared (first use in this function)
vauth.c:200: `MYSQL_READ_PASSWD' undeclared (first use in this function)
vauth.c:200: `MYSQL_DATABASE' undeclared (first use in this function)
vauth.c:201: `MYSQL_VPORT' undeclared (first use in this function)
vauth.c:205: parse error before "rizvi"
vauth.c: At top level:
vauth.c:214: parse error before "return"
vauth.c: In function `vauth_adddomain':
vauth.c:228: `MYSQL_DEFAULT_TABLE' undeclared (first use in this function)
vauth.c:232: `TABLE_LAYOUT' undeclared (first use in this function)
vauth.c:234: `mysql_update' undeclared (first use in this function)
vauth.c:239: warning: assignment makes integer from pointer without a cast
vauth.c: In function `vauth_adduser':
vauth.c:269: `MYSQL_DEFAULT_TABLE' undeclared (first use in this function)
vauth.c:272: `MYSQL_LARGE_USERS_TABLE' undeclared (first use in this
function)
vauth.c:311: warning: int format, pointer arg (arg 7)
vauth.c:311: warning: format argument is not a pointer (arg 8)
vauth.c:311: warning: too many arguments for format
vauth.c:313: `mysql_update' undeclared (first use in this function)
vauth.c:317: warning: assignment makes integer from pointer without a cast
vauth.c: In function `vauth_getpw':
vauth.c:351: `MYSQL_DEFAULT_TABLE' undeclared (first use in this function)
vauth.c:355: `MYSQL_LARGE_USERS_TABLE' undeclared (first use in this
function)
vauth.c:365: `mysql_update' undeclared (first use in this

Re: [vchkpw] vppopmail 5.3 stable?

2003-07-09 Thread vol
Sverre, we use 5.3.21 officially over here, so I wouldnt
worry about using that version.  As far as when it will
be marked 'stable' officially, I cant say for certian.
Sverre Nilsen wrote:
I've been trying to get vpopmail to work with spamassassin and I have now
set it up right. But I have problems with the vpopmail forking issue
making hundres of copies of catched spam. I'm currently running vpopmail
5.2.1 and I understand this bug is fixed in 5.3.
However I'm having strong doubts about running development software as
this is a production server hosting somewhat 500 domains.
So my question is do you have any estimate on when 5.3 will become stable?
Or is there a patch to fix this in 5.2.1?
--
  .-.
  oo|  Sverre Nilsen | <[EMAIL PROTECTED]>
 /`'\  Nilsen Consulting | http://www.nilsenconsulting.no/
(\_;/) (+47) 970 85 860




--
mailto:[EMAIL PROTECTED]
Matt Brookings - Chief Technical Officer
Inter7 Internet Technologies, Inc.
www.inter7.com - 847-492-0470
Prices at http://www.inter7.com/prices



Re: [vchkpw] Mail to local users

2003-07-09 Thread vol
Another option would be to send mail destined for a host
listed in /var/qmail/control/locals.
Kiril Todorov wrote:
On Wed, Jul 09, 2003 at 12:12:29PM +0200, Bеrd Tommy Nilsen wrote:



what about mail to the local users on the machine such as root ??

the mails newer gets the user ...

Bеrd Tommy


that's explained in the FAQ, use dot qmail aliases for the system users to 
forward them to the real people that should read that mail.



--
mailto:[EMAIL PROTECTED]
Matt Brookings - Chief Technical Officer
Inter7 Internet Technologies, Inc.
www.inter7.com - 847-492-0470
Prices at http://www.inter7.com/prices



Re: [vchkpw] SMTP is too slow

2003-07-09 Thread Sérgio Manuel Rosa
Antonio,

My qmail-smtp/run goes like this:

#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
exec /usr/local/bin/tcpserver -c 50 -D -H -R -v -P -l 0 -x 
/home/vpopmail/vmail/etc/tcp.smtp.cdb \
-u $QMAILDUID -g $NOFILESGID 10.0.0.200 smtp 
/var/qmail/bin/qmail-smtpd 2>&1

Paul,
no error of any kind of info in logs.
List,
I allready changed the connection on the switch, I had a VLAN where 
connected the eth of the mail server to the internal network hub, to the 
eth connected directly to the hub. Did'nt solve, so it's not a hardware 
problem.

Paul Theodoropoulos wrote:

do your qmail logs provide any diagnostic info?

At 09:26 AM 7/9/2003, Sérgio Manuel Rosa wrote:

Hi,
tcpserver (last release)
NAT only at the FW, routing to the inside net. Kinda like this
WWW---FW with PublicIP--NAT--SMTP---routing---Internal Network

Regards,
SRosa
Paul Fletcher wrote:

Are you using inetd or tcpserver?  And is there any NAT between the 
smtp
server and its dns resolver?

At 17:44 09/07/03 -0300, Nasib Salim wrote:


Hi Sergio
I dont have a DMZ and  I have only public DNS.
I have problems in both internal net and outside world.
Nasib On Wed 09 Jul 03 12:33, Sérgio Manuel Rosa wrote:


 Hi Nasib,

a personal question because I'm having kinda same problem.
Do you have a DMZ?
Do you have internal dns and public dns?
I have a problem like yours but only from my internal net. Clients 
from
the "outer world" dont have any problem, inside hosts have timeouts.

Regards,
SRosa
Nasib Salim wrote:


Dear all,

 I'm running Qmail with vpopmail and qmail-scanner. For the past 
2 years
there were no problem but recently the problem starts.

SMTP Server is too slow to respond. it takes more than a minute 
for it
to response.  My DNS is working fine and there is no problem even
resolving the mail server. I know the DNS is the source is this 
problem
but seems its not.

Please help!

Nasib A Salim
Mediapost (T) Ltd
 

This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
 

 

This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
 




 

This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
 








Paul Theodoropoulos
http://www.anastrophe.com
http://folding.stanford.edu
The Nicest Misanthrope on the Net









Re: [vchkpw] vppopmail 5.3 stable?

2003-07-09 Thread Tom Collins
On Wednesday, July 9, 2003, at 09:22  AM, [EMAIL PROTECTED] wrote:
Sverre, we use 5.3.21 officially over here, so I wouldnt
worry about using that version.  As far as when it will
be marked 'stable' officially, I cant say for certian.
And when will 5.3.21 be available to the public?  Ken said he would 
release it last Friday, but it doesn't show up on 
.

Once vpopmail has been declared stable (or at least more stable than 
5.2.1), we'll be able to release qmailadmin as stable.

--
Tom Collins
[EMAIL PROTECTED]
Visit sniffter.com for info on the Sniffter hand-held Network Tester



[vchkpw] Problem adding domains as non-root

2003-07-09 Thread Juan Alonso
Hello List,

I have got a problem with Vpopmail 5.3.20 and adding domains as the 
vpopuser.

Ive got a half-working installation of qmail + vpopmail (with mysql auth 
and custom user&group). I can send & receive emails but I can only add 
domains as root. Whenever I try to add one as user "gea" (the user I 
configured vpopmail as) I get the following error:

	Error: Domain does not exist

I have investigated in the source code and I think the problem lies here:

The last thing vadddomain does before aborting is checking if the table 
vpopmail exists no the db. Next thing (as I see from the attached 
strace) which throws an error is unknown to me.

Thank you in advance for any help,

PS: I have attached an strace done with
"strace /var/gea/services/mail/bin/vadddomain mydomain5.com lalala"



Re: [vchkpw] Problem adding domains as non-root

2003-07-09 Thread Juan Alonso
Ok, I forgot the strace and the vpopmail configure line, excuse me. The 
problem got inside my brain and I don't act clearly now.

The configure line for vpopmail was:

./configure  --enable-roaming-users=y 
--enable-tcpserver-file=/etc/tcp.smtp --enable-md5-passwords=y 
--enable-auth-logging=y --enable-mysql-logging=y --enable-clear-passwd=y 
--enable-libdir=/usr/lib --enable-mysql=y --enable-valias=y 
--enable-vpopuser=gea --enable-vpopgroup=dev

Directory permissions

daredevil ~# ls -l /var/qmail/
total 40
drwxr-sr-x2 aliasqmail4096 Jul  9 15:01 alias/
drwxr-xr-x2 root qmail4096 Jul  9 17:46 bin/
drwxr-xr-x2 root qmail4096 Jul  9 17:58 boot/
drwxr-xr-x2 gea  qmail4096 Jul  9 18:53 control/
drwxr-xr-x2 root qmail4096 Jul  9 15:01 doc/
drwxr-xr-x   10 root qmail4096 Jul  9 15:01 man/
drwxr-x---   11 qmailq   qmail4096 Jul  9 15:01 queue/
-rwxr-xr-x1 root root  204 Jul  9 12:59 rc
drwxr-xr-x5 root root 4096 Jul  9 13:01 supervise/
drwxr-xr-x2 gea  qmail4096 Jul  9 18:53 users/
daredevil ~# su - gea
daredevil ~$ echo $HOME
/var/gea/services/mail
daredevil ~$ ls -l /var/gea/services/mail/
total 24
drwxr-xr-x2 gea  dev  4096 Jul  9 18:43 bin
drwxr-xr-x4 gea  dev  4096 Jul  9 16:32 doc
drwx--   19 gea  dev  4096 Jul  9 19:00 domains
drwxr-xr-x2 gea  dev  4096 Jul  9 16:32 etc
drwxr-xr-x2 gea  dev  4096 Jul  9 16:32 include
drwx--2 gea  dev  4096 Jul  9 16:32 lib


Also here are the last lines of /var/log/mysql.log

030709 19:00:00 159 Connect [EMAIL PROTECTED] on vpopmail
159 Query   select cur_users, level_cur, 
level_max, level_start0, level_start1, level_start2, level_end0, 
level_end1, level_end2, level_mod0, level_mod1, level_mod2, 
level_index0, level_index1, level_index2, the_dir from dir_control where 
domain = "dom_1002"
159 Query   replace into dir_control ( domain, 
cur_users, level_cur, level_max, level_start0, level_start1, 
level_start2, level_end0, level_end1, level_end2, level_mod0, 
level_mod1, level_mod2, level_index0, level_index1, level_index2, 
the_dir ) values ( "dom_1002", 23, 0, 3, 0, 0, 0, 61, 61, 61, 0, 2, 4, 
0, 0, 0, "")
159 Query   create table vpopmail ( pw_name 
char(32) not null, pw_domain char(64) not NULL, pw_passwd char(40), 
pw_uid int, pw_gid int, pw_gecos char(48), pw_dir char(160), pw_shell 
char(20), pw_clear_passwd char(16), primary key (pw_name, pw_domain )  )
159 Quit

All the directory structure for the new domain is created.

Regards,

Juan Alonso wrote:

Hello List,

I have got a problem with Vpopmail 5.3.20 and adding domains as the 
vpopuser.

Ive got a half-working installation of qmail + vpopmail (with mysql auth 
and custom user&group). I can send & receive emails but I can only add 
domains as root. Whenever I try to add one as user "gea" (the user I 
configured vpopmail as) I get the following error:

Error: Domain does not exist

I have investigated in the source code and I think the problem lies here:

The last thing vadddomain does before aborting is checking if the table 
vpopmail exists no the db. Next thing (as I see from the attached 
strace) which throws an error is unknown to me.

Thank you in advance for any help,

PS: I have attached an strace done with
"strace /var/gea/services/mail/bin/vadddomain mydomain5.com lalala"
execve("/var/gea/services/mail/bin/vadddomain", 
["/var/gea/services/mail/bin/vadddomain", "mydomain5.com", "lalala", "2"], [/* 14 vars 
*/]) = 0
uname({sys="Linux", node="daredevil", ...}) = 0
brk(0)  = 0x805ab68
open("/etc/ld.so.preload", O_RDONLY)= -1 ENOENT (No such file or directory)
open("/usr/local/postgres/lib/i686/mmx/cmov/libmysqlclient.so.12", O_RDONLY) = -1 
ENOENT (No such file or directory)
stat64("/usr/local/postgres/lib/i686/mmx/cmov", 0xb0d0) = -1 ENOENT (No such file 
or directory)
open("/usr/local/postgres/lib/i686/mmx/libmysqlclient.so.12", O_RDONLY) = -1 ENOENT 
(No such file or directory)
stat64("/usr/local/postgres/lib/i686/mmx", 0xb0d0) = -1 ENOENT (No such file or 
directory)
open("/usr/local/postgres/lib/i686/cmov/libmysqlclient.so.12", O_RDONLY) = -1 ENOENT 
(No such file or directory)
stat64("/usr/local/postgres/lib/i686/cmov", 0xb0d0) = -1 ENOENT (No such file or 
directory)
open("/usr/local/postgres/lib/i686/libmysqlclient.so.12", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/usr/local/postgres/lib/i686", 0xb0d0) = -1 ENOENT (No such file or 
directory)
open("/usr/local/postgres/lib/mmx/cmov/libmysqlclient.so.12", O_RDONLY) = -1 ENOENT 
(No such file or directory)
stat64("/usr/local/postgres/lib/mmx/cmov", 0xb0d0) = -1 ENOENT (No such file or 
directory)
open("/usr/local/postgres/lib

Re: [vchkpw] Problem adding domains as non-root

2003-07-09 Thread vol
You must add domains as root.   To add a domain,
vpopmail must access qmail's configuration files
and send signals to the qmail process.  Therefore,
you must be root in order to add domains.
Juan Alonso wrote:
Hello List,

I have got a problem with Vpopmail 5.3.20 and adding domains as the 
vpopuser.

Ive got a half-working installation of qmail + vpopmail (with mysql auth 
and custom user&group). I can send & receive emails but I can only add 
domains as root. Whenever I try to add one as user "gea" (the user I 
configured vpopmail as) I get the following error:

Error: Domain does not exist

I have investigated in the source code and I think the problem lies here:

The last thing vadddomain does before aborting is checking if the table 
vpopmail exists no the db. Next thing (as I see from the attached 
strace) which throws an error is unknown to me.

Thank you in advance for any help,

PS: I have attached an strace done with
"strace /var/gea/services/mail/bin/vadddomain mydomain5.com lalala"





--
mailto:[EMAIL PROTECTED]
Matt Brookings - Chief Technical Officer
Inter7 Internet Technologies, Inc.
www.inter7.com - 847-492-0470
Prices at http://www.inter7.com/prices



[vchkpw] Password Changing via PHP (w/o vpopmail extensions?)

2003-07-09 Thread Jeremy Oddo
Hey all--

I have recently installed a test system with Horde/IMP.  I'd like to use
the password change feature under Horde (sork/passwd).  The difficulty I'm
having is with the vpopmail+MySQL encryption.

Am I right in believing that the vpopmail+MySQL user passwords are
encrypted using MD5?  If not, what encryption method is vpopmail using and
can it be changed to a different method?

Here's the rub; if it *is* using MD5, then I'll have to recompile PHP to
include the mhash() function.  Currently, I'm using the PHP RHM from the
RH9 distro CD which includes all sorts of goodies.  If I have to recompile
PHP, I'll have to download a lot of source to add in all the functionality
that currently comes with the RPM version of PHP.  Big mess!

Anyone have any info/help/tips/warnings/fears/etc?

Thanks!
Jeremy





Re: [vchkpw] SMTP is too slow

2003-07-09 Thread Paul Fletcher
Well with thopse tcpserver flags so far as I can see there should be no DNS
lookups going on at all, so I don't think you can blame the DNS server...
Someone will correct me if I'm wrong.

I have had this problem when not using -H and/or not using -R on a very
busy server where there is NAT between the mail server and the DNS server;
if you have UDP packets being natted for DNS lookups and there are lots of
them it can eat up all the nat table entries, and then you can't get
connected until entries get aged out.

Is it slow to actually connect, or slow to respond once you are connected?

At 17:24 09/07/03 +, Sérgio Manuel Rosa wrote:
>Antonio,
>
>My qmail-smtp/run goes like this:
>
>#!/bin/sh
>QMAILDUID=`id -u qmaild`
>NOFILESGID=`id -g qmaild`
>exec /usr/local/bin/tcpserver -c 50 -D -H -R -v -P -l 0 -x 
>/home/vpopmail/vmail/etc/tcp.smtp.cdb \
> -u $QMAILDUID -g $NOFILESGID 10.0.0.200 smtp 
>/var/qmail/bin/qmail-smtpd 2>&1
>
>Paul,
>no error of any kind of info in logs.
>
>List,
>I allready changed the connection on the switch, I had a VLAN where 
>connected the eth of the mail server to the internal network hub, to the 
>eth connected directly to the hub. Did'nt solve, so it's not a hardware 
>problem.
>
>Paul Theodoropoulos wrote:
>
>>
>> do your qmail logs provide any diagnostic info?
>>
>> At 09:26 AM 7/9/2003, Sérgio Manuel Rosa wrote:
>>
>>> Hi,
>>> tcpserver (last release)
>>> NAT only at the FW, routing to the inside net. Kinda like this
>>>
>>> WWW---FW with PublicIP--NAT--SMTP---routing---Internal Network
>>>
>>> Regards,
>>> SRosa
>>>
>>> Paul Fletcher wrote:
>>>
 Are you using inetd or tcpserver?  And is there any NAT between the 
 smtp
 server and its dns resolver?

 At 17:44 09/07/03 -0300, Nasib Salim wrote:


> Hi Sergio
> I dont have a DMZ and  I have only public DNS.
> I have problems in both internal net and outside world.
>
> Nasib On Wed 09 Jul 03 12:33, Sérgio Manuel Rosa wrote:
>
>
>>  Hi Nasib,
>>
>> a personal question because I'm having kinda same problem.
>> Do you have a DMZ?
>> Do you have internal dns and public dns?
>>
>> I have a problem like yours but only from my internal net. Clients 
>> from
>> the "outer world" dont have any problem, inside hosts have timeouts.
>>
>> Regards,
>> SRosa
>>
>> Nasib Salim wrote:
>>
>>
>>> Dear all,
>>>
>>>  I'm running Qmail with vpopmail and qmail-scanner. For the past 
>>> 2 years
>>> there were no problem but recently the problem starts.
>>>
>>> SMTP Server is too slow to respond. it takes more than a minute 
>>> for it
>>> to response.  My DNS is working fine and there is no problem even
>>> resolving the mail server. I know the DNS is the source is this 
>>> problem
>>> but seems its not.
>>>
>>> Please help!
>>>
>>> Nasib A Salim
>>> Mediapost (T) Ltd
>>>
>
 
>
> This email has been scanned for all viruses by the MessageLabs Email
> Security System. For more information on a proactive email security
> service working around the clock, around the globe, visit
> http://www.messagelabs.com
>
 
>
>
>
 
>
> This email has been scanned for all viruses by the MessageLabs Email
> Security System. For more information on a proactive email security
> service working around the clock, around the globe, visit
> http://www.messagelabs.com
>
 
>
>
>
>

  

 This email has been scanned for all viruses by the MessageLabs Email
 Security System. For more information on a proactive email security
 service working around the clock, around the globe, visit
 http://www.messagelabs.com
  




>>>
>>>
>>>
>>>
>>
>> Paul Theodoropoulos
>> http://www.anastrophe.com
>> http://folding.stanford.edu
>> The Nicest Misanthrope on the Net
>>
>>
>>
>>
>
>
>
>
>
>
>This email has been scanned for all viruses by the MessageLabs Email
>Security System. For more information on a proactive email security
>service working around the clock, around the globe, visit
>http://www.messagelabs.com
>
>
>
>This email has been scanned for all viruses by the MessageLabs Email
>Security System. For more information on a proac

Re: [vchkpw] Password Changing via PHP (w/o vpopmail extensions?)

2003-07-09 Thread Dorneles Treméa
Hi Jeremy,

> Am I right in believing that the vpopmail+MySQL user passwords are
> encrypted using MD5?  If not, what encryption method is vpopmail using and
> can it be changed to a different method?

I noticed that vpopmail in current versions uses a different encryption
method, so I called it: 'crypt-md5'. It uses a 'salt' with 8 chars,
starting with prefix '$1$'.

> Anyone have any info/help/tips/warnings/fears/etc?

Take a look at this message I posted on the sork mailing list:

http://lists.horde.org/archives/sork/Week-of-Mon-20030324/000887.html

Regards,

-- 

Dorneles Treméa
Caxias do Sul - RS - Brasil
+55 54 9114 9312 - UIN: 2413568
X3ng Web Technology 

-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCS/IT d- s:->: a23 C+++ UBL$ P--- L++ E-- W+++
N++ o? K? w+ O M+ V-- PS+ PE- Y-- PGP++ t+ 5 X++ R+
tv+ b(++) DI+ D++ G+>+++ e++> h r+++ y+++**
--END GEEK CODE BLOCK--



pgp0.pgp
Description: PGP signature


Re: [vchkpw] SMTP is too slow

2003-07-09 Thread nasib
I'm using tcpserver and there is no NAT between the smtp server and its dns 
resolver.
  
 I also tried to run the dns in the same smtp server but it didnt help.

Interesting thing is that when I reboot the smtp server, its works fine for a 
few minutes and then it start over again.

  So  I failed to get glues whether it is dns or something else.

Nasib
Quoting Paul Fletcher <[EMAIL PROTECTED]>:

> Are you using inetd or tcpserver?  And is there any NAT between the smtp
> server and its dns resolver?
> 
> At 17:44 09/07/03 -0300, Nasib Salim wrote:
> >Hi Sergio
> > I dont have a DMZ and  I have only public DNS.
> >I have problems in both internal net and outside world.
> >
> >Nasib 
> >On Wed 09 Jul 03 12:33, Sérgio Manuel Rosa wrote:
> >>   Hi Nasib,
> >>
> >> a personal question because I'm having kinda same problem.
> >> Do you have a DMZ?
> >> Do you have internal dns and public dns?
> >>
> >> I have a problem like yours but only from my internal net. Clients from
> >> the "outer world" dont have any problem, inside hosts have timeouts.
> >>
> >> Regards,
> >> SRosa
> >>
> >> Nasib Salim wrote:
> >> >Dear all,
> >> >
> >> >   I'm running Qmail with vpopmail and qmail-scanner. For the past 2
> years
> >> >there were no problem but recently the problem starts.
> >> >
> >> >  SMTP Server is too slow to respond. it takes more than a minute for it
> >> > to response.  My DNS is working fine and there is no problem even
> >> > resolving the mail server. I know the DNS is the source is this problem
> >> > but seems its not.
> >> >
> >> > Please help!
> >> >
> >> >Nasib A Salim
> >> >Mediapost (T) Ltd
> >

> >
> >
> >This email has been scanned for all viruses by the MessageLabs Email
> >Security System. For more information on a proactive email security
> >service working around the clock, around the globe, visit
> >http://www.messagelabs.com
> >
> >
> >
> >This email has been scanned for all viruses by the MessageLabs Email
> >Security System. For more information on a proactive email security
> >service working around the clock, around the globe, visit
> >http://www.messagelabs.com
> >
> >
> >
> 
> 
> This email has been scanned for all viruses by the MessageLabs Email
> Security System. For more information on a proactive email security
> service working around the clock, around the globe, visit
> http://www.messagelabs.com
> 
> 

> 
> 
> 




-
This mail sent through IMP: http://horde.org/imp/



[vchkpw] Re: SMTP is too slow

2003-07-09 Thread Sérgio Manuel Rosa
When internal clients try to send mail sometimes they get timeout, I 
bellieve that in this case it's when client connect to server, other times 
if a mail got attachs it starts to send... at least it's what Outlook says, 
and it takes an eternity (a mail with 1Mg taking 3 hours to leave outbox 
:-/) to deliver the mail to the server. After the messages reaches the 
server it's dispatched in a question of seconds... 

I'm completly over this issue but can't find a reason for this to hapen. 

SRosa 

Paul Fletcher writes: 

Well with thopse tcpserver flags so far as I can see there should be no DNS
lookups going on at all, so I don't think you can blame the DNS server...
Someone will correct me if I'm wrong. 

I have had this problem when not using -H and/or not using -R on a very
busy server where there is NAT between the mail server and the DNS server;
if you have UDP packets being natted for DNS lookups and there are lots of
them it can eat up all the nat table entries, and then you can't get
connected until entries get aged out. 

Is it slow to actually connect, or slow to respond once you are connected? 

At 17:24 09/07/03 +, Sérgio Manuel Rosa wrote:
Antonio, 

My qmail-smtp/run goes like this: 

#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
exec /usr/local/bin/tcpserver -c 50 -D -H -R -v -P -l 0 -x 
/home/vpopmail/vmail/etc/tcp.smtp.cdb \
-u $QMAILDUID -g $NOFILESGID 10.0.0.200 smtp 
/var/qmail/bin/qmail-smtpd 2>&1 

Paul,
no error of any kind of info in logs. 

List,
I allready changed the connection on the switch, I had a VLAN where 
connected the eth of the mail server to the internal network hub, to the 
eth connected directly to the hub. Did'nt solve, so it's not a hardware 
problem. 

Paul Theodoropoulos wrote: 

do your qmail logs provide any diagnostic info? 

At 09:26 AM 7/9/2003, Sérgio Manuel Rosa wrote: 

Hi,
tcpserver (last release)
NAT only at the FW, routing to the inside net. Kinda like this 

WWW---FW with PublicIP--NAT--SMTP---routing---Internal Network 

Regards,
SRosa 

Paul Fletcher wrote: 

Are you using inetd or tcpserver?  And is there any NAT between the 
smtp
server and its dns resolver? 

At 17:44 09/07/03 -0300, Nasib Salim wrote: 


Hi Sergio
I dont have a DMZ and  I have only public DNS.
I have problems in both internal net and outside world. 

Nasib On Wed 09 Jul 03 12:33, Sérgio Manuel Rosa wrote: 


 Hi Nasib, 

a personal question because I'm having kinda same problem.
Do you have a DMZ?
Do you have internal dns and public dns? 

I have a problem like yours but only from my internal net. Clients 
from
the "outer world" dont have any problem, inside hosts have timeouts. 

Regards,
SRosa 

Nasib Salim wrote: 


Dear all, 

 I'm running Qmail with vpopmail and qmail-scanner. For the past 
2 years
there were no problem but recently the problem starts. 

SMTP Server is too slow to respond. it takes more than a minute 
for it
to response.  My DNS is working fine and there is no problem even
resolving the mail server. I know the DNS is the source is this 
problem
but seems its not. 

Please help! 

Nasib A Salim
Mediapost (T) Ltd 


 
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com 

 



 
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com 

 




  

This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
  








Paul Theodoropoulos
http://www.anastrophe.com
http://folding.stanford.edu
The Nicest Misanthrope on the Net 









This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
 


This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around th

[vchkpw] Re: SMTP is too slow

2003-07-09 Thread Sérgio Manuel Rosa
well a reboot I have'nt tested iet. I have a uptime of few months. 

[EMAIL PROTECTED] writes: 

I'm using tcpserver and there is no NAT between the smtp server and its dns 
resolver.
  
 I also tried to run the dns in the same smtp server but it didnt help. 

Interesting thing is that when I reboot the smtp server, its works fine for a 
few minutes and then it start over again. 

  So  I failed to get glues whether it is dns or something else. 

Nasib
Quoting Paul Fletcher <[EMAIL PROTECTED]>: 

Are you using inetd or tcpserver?  And is there any NAT between the smtp
server and its dns resolver? 

At 17:44 09/07/03 -0300, Nasib Salim wrote:
>Hi Sergio
> I dont have a DMZ and  I have only public DNS.
>I have problems in both internal net and outside world.
>
>Nasib 
>On Wed 09 Jul 03 12:33, Sérgio Manuel Rosa wrote:
>>   Hi Nasib,
>>
>> a personal question because I'm having kinda same problem.
>> Do you have a DMZ?
>> Do you have internal dns and public dns?
>>
>> I have a problem like yours but only from my internal net. Clients from
>> the "outer world" dont have any problem, inside hosts have timeouts.
>>
>> Regards,
>> SRosa
>>
>> Nasib Salim wrote:
>> >Dear all,
>> >
>> >   I'm running Qmail with vpopmail and qmail-scanner. For the past 2
years
>> >there were no problem but recently the problem starts.
>> >
>> >  SMTP Server is too slow to respond. it takes more than a minute for it
>> > to response.  My DNS is working fine and there is no problem even
>> > resolving the mail server. I know the DNS is the source is this problem
>> > but seems its not.
>> >
>> > Please help!
>> >
>> >Nasib A Salim
>> >Mediapost (T) Ltd
>

>
>
>This email has been scanned for all viruses by the MessageLabs Email
>Security System. For more information on a proactive email security
>service working around the clock, around the globe, visit
>http://www.messagelabs.com
>
>
>
>This email has been scanned for all viruses by the MessageLabs Email
>Security System. For more information on a proactive email security
>service working around the clock, around the globe, visit
>http://www.messagelabs.com
>
>
> 


This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
 


 


 

 

-
This mail sent through IMP: http://horde.org/imp/


_
Sérgio Rosa
Senior Partner
GoSecure
Quinta da Fonte
Edif. D. Pedro I
2770-071 Paço d'Arcos
Tel:+351 21 0001663/4
Fax:   +351 21 0001675
Telm: +351 91 6184275
email: [EMAIL PROTECTED]
Web: www.gosecure.pt 

WebOn - Internet Services, Lda
Rua Francisco Tomás da Costa, nº51 A
1600-092 Lisboa
Tlm: +351 91 618 42 75
Mail: [EMAIL PROTECTED] 





Re: [vchkpw] Wrong reply-to in SqWebMail for virt domains

2003-07-09 Thread gjohnson
Thanks.  I presume I can apply this patch as I did those for qmail:
put in the source directory, use the patch command, and compile, etc.

I will try that after I get a reponse on my next email.  The
content of another reponse confused me, and I need some clarification.


Kiril Todorov writes:

> That's controlled from the sqwebmail-config file, which is in the user's 
> Maildir/.
> Find attached a small patch written by Peter Penchev <[EMAIL PROTECTED]> which 
> creates that file in usercreate time with the proper FROM: setting there.
> 
> I think the patch was designed for vpopmail-5.3.20, not sure if it will need 
> adjusting for different versions.
> Hope that helps!
> -- 
> 
> Kiril Todorov   < -+- > +359 2 9712013
> Bulgaria Online < -+- > http://home.online.bg
> 
> /* waiting... dreaming... wishing... */






Re: [vchkpw] SMTP is too slow

2003-07-09 Thread nasib
Dear Tonino and all,

  I have added the -H -l mylocalname and its looks fine. Let me check for some 
hours and then I will come back.


Regards

Nasib A Salim
Mediapost (T) Ltd

Quoting "tonix (Antonio Nati)" <[EMAIL PROTECTED]>:

> 
> Did you add "-H -l yourlocalname" to your tcpserver?
> 
> It avoids consulting DNS for changing IP to names. When it looks for not 
> existent names, or when yout DNS server is working bad, you have huge
> delays.
> 
> If you have a private address as sender or receiver, no public DNS will be 
> able to traslate it.
> 
> Ciao,
> 
> Tonino
> 
> At 09/07/03 09/07/03 +, Sérgio Manuel Rosa wrote:
> >Hi Nasib,
> >
> >a personal question because I'm having kinda same problem.
> >Do you have a DMZ?
> >Do you have internal dns and public dns?
> >
> >I have a problem like yours but only from my internal net. Clients from 
> >the "outer world" dont have any problem, inside hosts have timeouts.
> >
> >Regards,
> >SRosa
> >
> >Nasib Salim wrote:
> >
> >>Dear all,
> >>
> >>   I'm running Qmail with vpopmail and qmail-scanner. For the past 2 
> >> years there were no problem but recently the problem starts.
> >>  SMTP Server is too slow to respond. it takes more than a minute for it 
> >> to response.  My DNS is working fine and there is no problem even 
> >> resolving the mail server. I know the DNS is the source is this problem 
> >> but seems its not.
> >>
> >>Please help!
> >>
> >>Nasib A Salim
> >>Mediapost (T) Ltd
> >>
> >>
> >>
> >>
> >
> >
> 
> 
> 
>  [EMAIL PROTECTED]Interazioni di Antonio Nati
> http://www.interazioni.it  [EMAIL PROTECTED]
> 
> 
> 

> 
> 




-
This mail sent through IMP: http://horde.org/imp/



Re: [vchkpw] Re: SMTP is too slow

2003-07-09 Thread Paul Theodoropoulos
other things to look for:

excessive collisions on the ethernet (unlikely)

Denial of Service attack in progress, look for lots of connections to the 
server that are doing "nothing"

what is the IP address/name of the MX in question?

what are your concurrencylocal and concurrencyremote settings in 
/var/qmail/control?

do you have any values set in timeoutremote and timeoutsmtpd?

just a few additional ideas off the top of my head

Paul Theodoropoulos
http://www.anastrophe.com
http://folding.stanford.edu
The Nicest Misanthrope on the Net 





Re: [vchkpw] Wrong reply-to in SqWebMail for virt domains

2003-07-09 Thread gjohnson
Doug Clements writes:

> gjohnson wrote:
> > Hi.
> > 
> > I have vpopmail, courier-imap and sqwebmail running on OpenBSD 3.3 with
> > apache NOT chrooted.
> > 
> > I have two domains: real.domain and virtual.domain
> > In SqWebMail, virtuser with virtual.domain logs on to SqWebMail thus
> > virtuser%virtual.domain & pass
> > But once logged on they see themselves as
> > "[EMAIL PROTECTED]"
> > which also appears as their reply-to address (until/unless they change it).
> > Naturally, many will not change it.
> > 
> > Real users see [EMAIL PROTECTED] -- so they are fine.
> > I would just like virtusers to see [EMAIL PROTECTED] both at the top
> > of the page and for their reply-to.  Is this possible?  If so, how do I
> > change the virt.domain setting?
> 
> Set the sqwebmail prefs for the user when you create the account. They 
> include the Reply-To address.
> 
> --Doug
> 
Thanks for your reply.  I am working with sqwebmail-3_5_1, vpopmail-5_2_1,
and vqadmin-2_3_2.
When I create an account thus --
su - vpopmail
vadduser [EMAIL PROTECTED] password
exit
 -- I see no option for sqwebmail prefs.  I can not change reply-to with
vqadmin either.  Neither do I see any reply-to or "name-at-the-top" option
in the actual SqWebMail webpage itself.  Only when I send a mail from
the account in SqWebMail can I (permanently) change the reply-to address
(by simply changing the reply-to on that email).

What SqWebMail prefs were you referring to?  Can they be applied
domain-wide, or do I have to go to each virtual user after set up and
change
individually?





Re: [vchkpw] Wrong reply-to in SqWebMail for virt domains

2003-07-09 Thread Doug Clements
gjohnson wrote:
Doug Clements writes:
Set the sqwebmail prefs for the user when you create the account. They 
include the Reply-To address.

--Doug
Thanks for your reply.  I am working with sqwebmail-3_5_1, vpopmail-5_2_1,
and vqadmin-2_3_2.
When I create an account thus --
su - vpopmail
vadduser [EMAIL PROTECTED] password
exit
 -- I see no option for sqwebmail prefs.  I can not change reply-to with
vqadmin either.  Neither do I see any reply-to or "name-at-the-top" option
in the actual SqWebMail webpage itself.  Only when I send a mail from
the account in SqWebMail can I (permanently) change the reply-to address
(by simply changing the reply-to on that email).
What SqWebMail prefs were you referring to?  Can they be applied
domain-wide, or do I have to go to each virtual user after set up and
change
individually?
Check a user account that you have logged into with sqwebmail. There 
should be a sqwebmail-prefs file there that is a plain text file. You 
can generate this file automatically with the correct preferences at the 
time you create the user. Make a script to fill this file in, and run it 
after you create the user.

I have an elaborate wrapper system that sets up various aspects of each 
user after they get added, including setting initial sqwebmail prefs, 
creating extra folders, setting up Maildrop recipes, and some other fun 
stuff. You might consider creating the same sort of wrapper around 
vadduser so this becomes automatic to you.

Cheers!

--Doug




Re: [vchkpw] Wrong reply-to in SqWebMail for virt domains

2003-07-09 Thread Doug Clements
gjohnson wrote:
Thanks.  I presume I can apply this patch as I did those for qmail:
put in the source directory, use the patch command, and compile, etc.
I will try that after I get a reponse on my next email.  The
content of another reponse confused me, and I need some clarification.
I assume you mean my mail =)

I prefer to create wrappers around vpopmail commands instead of patching 
the source like this. That makes it easier to upgrade when the time 
comes, and I know exactly what's going on with my modifications.

Either way will work, I was just suggesting my preferredway.

--Doug




Re: [vchkpw] Wrong reply-to in SqWebMail for virt domains

2003-07-09 Thread gjohnson
Doug Clements writes:

> gjohnson wrote:
> > Thanks.  I presume I can apply this patch as I did those for qmail:
> > put in the source directory, use the patch command, and compile, etc.
> > 
> > I will try that after I get a reponse on my next email.  The
> > content of another reponse confused me, and I need some clarification.
> > 
> 
> I assume you mean my mail =)
> 
> I prefer to create wrappers around vpopmail commands instead of patching 
> the source like this. That makes it easier to upgrade when the time 
> comes, and I know exactly what's going on with my modifications.
> 
> Either way will work, I was just suggesting my preferredway.
> 
> --Doug
> 

Yeah. A mildly humorous exchange.
So, I understand your approach, and it appears to work.
I am still puzzled by the bizarre "[EMAIL PROTECTED]" at the
top of the SqWebMail page.




Re: [vchkpw] Wrong reply-to in SqWebMail for virt domains

2003-07-09 Thread gjohnson
So, I found the sqwebmail-config file and can edit it by hand.
Unfortunately, the patch fails on half of the files that it is supposed to
patch, with lines like this,
"Patching file vchkpw.c using Plan A...
Hunk #1 failed at 377."

This issue now appears to me as a SqWebMail bug, and I will report it as
such.

Kiril Todorov writes:

> That's controlled from the sqwebmail-config file, which is in the user's 
> Maildir/.
> Find attached a small patch written by Peter Penchev <[EMAIL PROTECTED]> which 
> creates that file in usercreate time with the proper FROM: setting there.
> 
> I think the patch was designed for vpopmail-5.3.20, not sure if it will need 
> adjusting for different versions.
> Hope that helps!
> -- 
> 
> Kiril Todorov   < -+- > +359 2 9712013
> Bulgaria Online < -+- > http://home.online.bg
> 
> /* waiting... dreaming... wishing... */






[vchkpw] SqWebMail bug: bizarre virtual domain behavior

2003-07-09 Thread gjohnson
I have an OpenBSD 3.3 box running (apache NOT chrooted)
vpopmail-5_2_1, courier-imap-1_7_1, and sqwebmail-3_5_1
vpopmail was configured with
--enable-defaultquota=500S \
--enable-clear-passwd=n \
--enable-default-domain=real.domain

When I log in to SqWebMail using realuser%real.domain
everything looks good.  I see the top of the webpage
"[EMAIL PROTECTED]"
The reply-to address is <[EMAIL PROTECTED]>


BUG:
When I log in to SqWebMail using virtuser%virt.domain
I see at the top of the webpage
"[EMAIL PROTECTED]"

The reply-to address is also <[EMAIL PROTECTED]>
and must be manually changed on a user-by-user basis.

I can not change the bizarre "[EMAIL PROTECTED]"
at the top of the webpage.



[vchkpw] Over quota message to recipient

2003-07-09 Thread webmaster
Assuming that we can truncate the bounced message to a certain size, it
would 
be useful to notify the recipient as well as the sender about e-mail
account 
being over quota.

Any pointers on how to accomplish this ?

Thanks.

Lu




[vchkpw] MySQL Optimization.

2003-07-09 Thread Steve Fulton
Hi all,

Can anyone recommend some good MySQL optimizations that will not corrupt 
the vchkpw DB?  I'm referring to daily or weekly cleanups, FYI.  (Currently 
I'm using ISAM tables)

-- Steve




[vchkpw] SqWebMail bug: bizarre virtual domain behavior (fwd)

2003-07-09 Thread gjohnson
That did it!  Logging on as "[EMAIL PROTECTED]" gave 
[EMAIL PROTECTED] both at the top and as the reply-to.

I too use Squirrelmail along with vmailmgr and omail-admin.
Squirrelmail is a script (php) whereas SqWebMail is cgi.  So, SqWebMail
runs at least ~6 times faster -- even with less memory.

Specifically, on a 486-66 with 48MB of memory, Squirrelmail 1.2.11
(with no plug-ins) takes ~29 sec to load the page after log on.
With 32MB it takes ~50sec.  In contrast, with merely 16MB (!),
SqWebMail loads the first page in ~2-5sec.  An astonishing difference.


Tom Collins writes:

> On Wednesday, July 9, 2003, at 02:27  PM, gjohnson wrote:
> > BUG:
> > When I log in to SqWebMail using virtuser%virt.domain
> > I see at the top of the webpage
> > "[EMAIL PROTECTED]"
> 
> I use SquirrelMail instead of SqWebMail so forgive me if this doesn't 
> work.
> 
> What happens if you log in as [EMAIL PROTECTED]
> 
> I had to modify my SquirrelMail installation to convert % to @ on the 
> login, perhaps SqWebMail requires the same.
> 
> --
> Tom Collins
> [EMAIL PROTECTED]
> http://sniffter.com/ - info on the Sniffter hand-held Network Tester
> 






Re: [vchkpw] Re: SMTP is too slow

2003-07-09 Thread Ajai Khattri
Sérgio Manuel Rosa wrote:

When internal clients try to send mail sometimes they get timeout, I 
bellieve that in this case it's when client connect to server, other 
times if a mail got attachs it starts to send... at least it's what 
Outlook says, and it takes an eternity (a mail with 1Mg taking 3 hours 
to leave outbox :-/) to deliver the mail to the server. After the 
messages reaches the server it's dispatched in a question of seconds...
I'm completly over this issue but can't find a reason for this to hapen.
Another option: check your have plenty of disk space...

--
Aj.
Systems Administrator / Developer



[vchkpw] error: segmentation fault and unable to chdir vpopmail/users directory

2003-07-09 Thread lixiang



hi,all:
    i have installed 
vpopmail-5.2.1,qmail-1.0.3, qmail-ldap, openldap-2.0.27, qmailadmin-1.0.6 in my 
Redhat 7.3 box.
    sth seems strange:
 
    all the work was finished by root 
user.
    when i added the first domain xxx.com 
,succeed。 then i added the users through qmailadmin, qmailadmin reported: xxx 
could not be added. but actually, this user has been added to the 
system.
if i added  user through  
vadduser in command line, it reported: Error: Unable to chdir vpopmail/users 
directory, and the user actually was not be added.
    if i added another domain through 
vadddomain, it reported: segmentation  fault. but the domain  has been 
added.  then i deleted this domain through vdeldomain, succeed. and then i 
added this domain through  vadddomain again, it reported : Unable to chdir 
to vpopmail/users directory. and the domain still has been added. but if i want 
to  manager this domain through qmailadmin, i couldn't login. then i 
repeated the del and add this domain, it always repeat this fact.
 
    i am so confused about these facts, and i 
have read the README.ldap and INSTALL and FAQ, i also have read the  
archive in the vpopmail website. get no solution ,and the response from the 
archive is slow. so i seek for help in the mailinglist. another question, i find 
that there are many  combinations of vpopmail+mysql,  but the 
combination of vpopmail+ldap is few. has anyone succeed for this combination 
?
 
   thanks a lot .
 
 


Re: [vchkpw] SMTP is too slow

2003-07-09 Thread Nasib Salim
Dear List
 Thanks for the help, my smtp server is now back to normal.

Thanks

Nasib A Salim

On Wed 09 Jul 03 23:11, [EMAIL PROTECTED] wrote:
> Dear Tonino and all,
>
>   I have added the -H -l mylocalname and its looks fine. Let me check for
> some hours and then I will come back.
>
>
> Regards
>
> Nasib A Salim
> Mediapost (T) Ltd
>
> Quoting "tonix (Antonio Nati)" <[EMAIL PROTECTED]>:
> > Did you add "-H -l yourlocalname" to your tcpserver?
> >
> > It avoids consulting DNS for changing IP to names. When it looks for not
> > existent names, or when yout DNS server is working bad, you have huge
> > delays.
> >
> > If you have a private address as sender or receiver, no public DNS will
> > be able to traslate it.
> >
> > Ciao,
> >
> > Tonino
> >
> > At 09/07/03 09/07/03 +, Sérgio Manuel Rosa wrote:
> > >Hi Nasib,
> > >
> > >a personal question because I'm having kinda same problem.
> > >Do you have a DMZ?
> > >Do you have internal dns and public dns?
> > >
> > >I have a problem like yours but only from my internal net. Clients from
> > >the "outer world" dont have any problem, inside hosts have timeouts.
> > >
> > >Regards,
> > >SRosa
> > >
> > >Nasib Salim wrote:
> > >>Dear all,
> > >>
> > >>   I'm running Qmail with vpopmail and qmail-scanner. For the past 2
> > >> years there were no problem but recently the problem starts.
> > >>  SMTP Server is too slow to respond. it takes more than a minute for
> > >> it to response.  My DNS is working fine and there is no problem even
> > >> resolving the mail server. I know the DNS is the source is this
> > >> problem but seems its not.
> > >>
> > >>Please help!
> > >>
> > >>Nasib A Salim
> > >>Mediapost (T) Ltd
> >
> > 
> >  [EMAIL PROTECTED]Interazioni di Antonio Nati
> > http://www.interazioni.it  [EMAIL PROTECTED]
> > 
>
> -
> This mail sent through IMP: http://horde.org/imp/



Re: [vchkpw] Wrong reply-to in SqWebMail for virt domains

2003-07-09 Thread Kiril Todorov
That thingie can be controlled easier if you create the logindomainlist file in the 
sqwebmail directory,
just put the virt domains you want to be browsable trough sqwebmail there - one per 
line

not sure if it will fix your problem thou, first time I see such weird behaviour.
-- 

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

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



Re: [vchkpw] error: segmentation fault and unable to chdir vpopmail/users directory

2003-07-09 Thread Jens Jahr
Zitat von lixiang <[EMAIL PROTECTED]>:

Hi lixiang,

> i have installed vpopmail-5.2.1,qmail-1.0.3, qmail-ldap, openldap-2.0.27,
> qmailadmin-1.0.6 in my Redhat 7.3 box.

Please do not mix qmail-ldap and vpopmail-ldap. These are totally different 
programms that both try to do the same. !!

I 'll give you a short step by step way to use vpopmail-ldap:


1) Edit qmailUser.schema

--- snip
attributetype ( 1.3.6.1.4.1.8868.3.1.2
NAME 'qmailGID'
DESC 'qmail group id'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{100}
SINGLE-VALUE )

attributetype ( 1.3.6.1.4.1.8868.3.1.3
NAME 'qmailUID'
DESC 'qmail userid'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{100}
SINGLE-VALUE )

attributetype ( 1.3.6.1.4.1.8868.3.1.4
NAME 'qmaildomain'
DESC 'qmail Domain'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{100}
SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.8868.3.1.6
NAME 'mailQuota'
DESC 'qmail quota'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{100}
SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.8868.3.1.7
NAME 'mailMessageStore'
DESC 'qmail Store'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{100}
SINGLE-VALUE )

attributetype ( 1.3.6.1.4.1.8868.3.1.8
NAME 'clearPassword'
DESC 'qmail Clear Password for APOP'
EQUALITY octetStringMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.40{128}
SINGLE-VALUE )

objectclass ( 1.3.6.1.4.1.8868.3.1
NAME 'qmailUser'
DESC 'qmail local mail recipient'
SUP ( top $ person $ organizationalPerson )
MAY ( qmailGID $ qmailUID $ qmaildomain $
mailQuota $ mailMessageStore $ clearPassword $
uid $ name $ sn $ cn ) )

--- snap

2) Modify the definition of  "person" in core.schema to :

--- snip

 objectclass ( 2.5.6.6 NAME 'person'
 DESC 'RFC2256: a person'
 SUP top STRUCTURAL
 MAY ( sn $ cn $ userPassword $ telephoneNumber $ seeAlso $ description 
 $ mail $
 workphonenumber $ cellphonenumber $ postalAddress $
 title $ telexNumber $street $givenName $registeredAddress 
 $cellphone) )
 
--- snap
 



3) Edit vldap.h

vldap.h

--- snip

#define VLDAP_SERVER "localhost"
#define VLDAP_PORT LDAP_PORT
#define VLDAP_USER "cn=root,dc=xx,dc=net"
#define VLDAP_PASSWORD "xx"
#define MAX_BUFF 500

#define VLDAP_BASEDN "ou=people,dc=xxx,dc=net"

--- snap


4) Recompile vpopmail --with-ldap
Do not use both mysql and ldap !!!


5)
Setup slapd.conf 

slapd.conf
snip
include   /vmail/etc/openldap/schema/core.schema
include   /vmail/etc/openldap/schema/qmailUser.schema
..
access to attr=userPassword
   by  *  auth

database  bdb
suffix "dc=xxx,dc=cn"
rootdn "dc=admin,dc=,dc=net"
rootpwsecret
directory /var/openldap
index  objectclass   pres,eq
index  cn,sn,uid  eq,


6)
Start slapd

7)

Edit dn.ldif
snip
dn: dc=xxx,dc=net
objectclass: organization
o: ynst

dn:ou=people,dc=,dc=cn
objectclass: organizationalUnit
ou:people
snip

8) Add base DN
-
ldapadd -x -w admin -D 'cn=admin,dc=,dc=cn' -f  /tmp/dn.ldif
   adding new entry  "dc=,dc=cn"

   adding new entry "ou=people,dc=,dc=cn"
--

9) Test it 
ldapsearch -x -w admin -D 'cn=admin,dc=,dc=cn' -b 'dc=,dc=cn'

10)

Now you should be able to add domains and users using either qmailadmin oder 
commandline.


Note: LDAP support does work !!! And is stable !!! 
Some patches from me are still not included for any reason I do not know, so if 
you have any problems feel free to ask !!! I will do my best ;-)

On first glance this looks a little bit tricky, but when you go ahead living 
with LDAP all steps are getting more and more reasonable to you. After you have 
discovered the advantages of LDAP you do not want to miss it anymore, I 
promise ;-))

And if any error still occur please send the LDAP error message. I included 
this into vldap.c to have much more debugging informations.

Best regards Jens

-- 
Jens Jahr