[vchkpw] vpopmail with mysql support
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 ** Waiting for a reply Tx Zafar
Re: [vchkpw] vpopmail with mysql support
I think problem can be in mysql lib files better to check it via ldconfig or make sure password and username is okk for mysql database. Error message which you have attatched with mail is too low. Better to show us output above these lines... -- 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: [EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 11:23 AM Subject: [vchkpw] vpopmail with mysql support | 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 | ** | | Waiting for a reply | Tx | Zafar | | |
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) 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 (first use
Re: [vchkpw] vpopmail with mysql support
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) | vauth.c:239: warning:
[vchkpw] Wrong reply-to in SqWebMail for virt domains
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
what about mail to the local users on the machine such as root ?? the mails newer gets the user ... Bård Tommy
[vchkpw] No incoming mail
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
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
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
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
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
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
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
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
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
On Wed, Jul 09, 2003 at 01:48:27PM +0200, Brd 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
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
On Wed, Jul 09, 2003 at 12:12:29PM +0200, Brd Tommy Nilsen wrote: what about mail to the local users on the machine such as root ?? the mails newer gets the user ... Brd 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
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
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
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
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
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
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'
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
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 function)
Re: [vchkpw] vppopmail 5.3 stable?
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
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, Brd Tommy Nilsen wrote: what about mail to the local users on the machine such as root ?? the mails newer gets the user ... Brd 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
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 21 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?
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 http://www.inter7.com/develop.html. 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
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 usergroup). 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
[vchkpw] Password Changing via PHP (w/o vpopmail extensions?)
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] Password Changing via PHP (w/o vpopmail extensions?)
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 http://www.x3ng.com.br -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
[vchkpw] Re: SMTP is too slow
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 21 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 the
[vchkpw] Re: SMTP is too slow
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] SMTP is too slow
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
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
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
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
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
[vchkpw] SqWebMail bug: bizarre virtual domain behavior
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
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.
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] error: segmentation fault and unable to chdir vpopmail/users directory
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 finishedby 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
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
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... */