Re: [vchkpw] pop3 not authenticate any users

2003-03-05 Thread Kiril Todorov
On Wed, Mar 05, 2003 at 01:14:23PM +0500, zafar rizvi wrote:
 hi
 In maillog i am getting that kind of error..
 is any body has some idea
 ..
 Mar  5 07:26:46testl vpopmail[4824]: vchkpw: setgid 89 failed errno 1
 [EMAIL PROTECTED]:127.0.0.1

check the gid of the vchkpw group, check the id of the vpopmail user,
make sure they match the ones in /var/qmail/users/assign, check if the
~vpopmail/domains/ directory is owned by vpopmail:vchkpw and if not - 
chwon it.

 
 i am seeing error is log when i try to authenticate any user.
 thanks
 zafar

Good luck :)

-- 

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

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



Re: [vchkpw] Quotas

2003-03-05 Thread tonix (Antonio Nati)


Referring to previous e-mail, I suggest to integrate the code in a
self-correcting way, like:
diff -u qmailadmin-1.0.10/util.c qmailadmin-1.0.10-pooled2/util.c
--- qmailadmin-1.0.10/util.cFri
Jan 24 23:25:31 2003
+++
qmailadmin-1.0.10-pooled2/util.cTue
Feb 18 18:37:55 2003
@@ -272,7 +272,10 @@
 if (quota == NULL) { return 1; }
 if (tmp = atol(quota)) { tmp *= 1048576; }
 else { return 1; }
- sprintf(returnval, %-2.2lf, tmp);
+ if (tmp  0) { return 0; }
+ sprintf(returnval, %-2.0lf, tmp);
 return 0;
}

This should make an automatic auto-correction when quota is less
than zero.
Tonino
At 04/03/03 04/03/03 +0100, tonix (Antonio Nati) wrote:
Hi Rick,
it's a small bug in the quota patch of last official
qmailadmin versions(I did not suppose Inter7 integrate patches without
trying them, but that happens sometimes).

diff -u qmailadmin-1.0.10/util.c qmailadmin-1.0.10-pooled2/util.c
--- qmailadmin-1.0.10/util.cFri
Jan 24 23:25:31 2003
+++
qmailadmin-1.0.10-pooled2/util.cTue
Feb 18 18:37:55 2003
@@ -272,7 +272,10 @@
 if (quota == NULL) { return 1; }
 if (tmp = atol(quota)) { tmp *= 1048576; }
 else { return 1; }
- sprintf(returnval, %-2.2lf, tmp);
+ sprintf(returnval, %-2.0lf, tmp);
 return 0;
}


This should solve it.
Tonino
At 03/03/03 03/03/03 -0600, Rick Romero
wrote:On Mon, 2003-03-03 at 09:52,
Rick Romero wrote:
 I wanted to mention that when using qmailadmin-1.12 and
vpopmail-5.3.18,
 if I set the quota from qmailadmin to 100MB, the quota is set
to
 100483292.00 (I'm just guessing on the bytes, but you get the
idea).
 
 For some reason, I belive the .00 makes vdelivermail bounce email
saying
 the user is over quota. Using vsetuserquota to set the actual
# of
 bytes works fine though.
Ok, so here's the code in vpopmail.c (right at the end):
char *format_maildirquota(const char *q) {
int i;
int per_user_limit;
static char tempquota[500];
 /* translate the quota to a number, or leave it
*/
 i = strlen(q) - 1;
 tempquota[0] = '\0'; /* make sure tempquota is 0
length */
 if(strstr(q, ,) == NULL  q[i] !=
'S') {
 per_user_limit = 
atol(q);
 for(i=0;q[i]!=0;++i) {
 if (
q[i] == 'k' || q[i] == 'K' ) {

per_user_limit = per_user_limit * 1024;

snprintf(tempquota, 500, %dS, per_user_limit);

break;
 
}
 if (
q[i] == 'm' || q[i] == 'M' ) {

per_user_limit = per_user_limit * 1048576;

sprintf(tempquota, %dS, per_user_limit);

break;
 
}
 }

Maybe this isn't the problem... but if per_user_int is initialized as
an
int, should atol be atoi? 
Though, supposedly atol() should stop 'converting' at the period
anyways.. Maybe it's crashing?


 Rick
 



[EMAIL PROTECTED]
Interazioni di Antonio Nati 

http://www.interazioni.it

[EMAIL PROTECTED]






[EMAIL PROTECTED]
Interazioni di Antonio Nati 

http://www.interazioni.it
[EMAIL PROTECTED]






Re: [vchkpw] pop3 not authenticate any users

2003-03-05 Thread Peter Palmreuther
Hi zafar,

On Wed, 5 Mar 2003 13:14:23 +0500 zafar rizvi [EMAIL PROTECTED]
wrote:

 In maillog i am getting that kind of error.. is any body has some idea
 ..
 Mar  5 07:26:46testl vpopmail[4824]: vchkpw: setgid 89 failed errno 1
 [EMAIL PROTECTED]:127.0.0.1

Yes. And the message is quite clear about the problem.

'vchkpw', the password checking program is not able to change it's GID
to 89 (man setgid *gee, who'd have thought man-pages are useful).

Either you compiled vpopmail with user vpopmail belonging to group with
ID 89 and changed the group id some times later or vchkpw is executed
with a UID not allowed to setgid(89).

First check if vpopmail still belongs to group id 89:

 # id -g vpopmail

if that outputs '89' check is qmail-popup is started as either user 'root'
or user 'vpopmail'.
-- 
Peter



[vchkpw] how can i unsubscribe ? i forgot the master's address

2003-03-05 Thread Vlad Galu



-
Vlad Galu
Network Administrator VipNET Bucuresti
tel: 021/4114262
email: [EMAIL PROTECTED]
web: http://www.vipnet.ro

-BEGIN GEEK CODE BLOCK-
Version: 3.12
GIT d- s+: a-- C++ UB 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--



Re: [vchkpw] Feature request: Usage of SSLREMOTEIP

2003-03-05 Thread Brian Kolaci

   Hi Anders,
   
 Does anyone know a workaround until either vpopmail reads SSLREMOTEIP
 or ucspi-ssl sets TCPREMOTEIP?

How about something like (untested):
(env TCPREMOTEIP=$SSLREMOTEIP /home/vpopmail/bin/vchkpw)
in your startup script instead of just /home/vpopmail/bin/vchkpw ?
   
   I tested it, but it doesn't work that way. I have now patched sslserver
   to set TCPREMOTEIP instead, according to Charles' idea, which works
   fine.

I recommend that you patch sslserver to set both environment variables, 
rather than just replacing it.

Brian





[vchkpw] OT: morercpthosts

2003-03-05 Thread Jesse Guardiani
Howdy list,

I know this is off topic and technically in the wrong list, but
I thought one of you might have run into this before:

My qmail-1.03 has the tarpitting patch and the oversized dns packet
patch installed. For some reason, it isn't reading morercpthosts.

Has anyone run into a problem with qmail seemingly not reading
morercpthost before?

The corresponding CDB is updated properly.

THanks,

-- 
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v)  423-559-5145 (f)
http://www.wingnet.net

We are actively looking for companies that do a lot of long
distance faxing and want to cut their long distance bill by
up to 50%.  Contact [EMAIL PROTECTED] for more info.





[vchkpw] vpopmail + fasftforward aliase question

2003-03-05 Thread Peter Mikeska
Hi, plz save my ass ;))
I have virt domain firm.com , all I want is if somebody send mail to
this domain , it will check aliases.cdb (ther vill be info like
[EMAIL PROTECTED]:[EMAIL PROTECTED]) if it find it will send it to him in .edu
if not just put mail to [EMAIL PROTECTED]

i cant somehow figureout which line put in .qmail-default ;)) so I
making something wrong as usual ;))
.qmail-default 
| /home/vpopmail/bin/vdelivermail ''| /var/qmail/bin/fastforward -d /etc/aliases.cdb
|/home/vpopmail/domains/firm.com/catchall

and in aliases
[EMAIL PROTECTED]:[EMAIL PROTECTED]

i tried also
[EMAIL PROTECTED]:[EMAIL PROTECTED]

but wont work .
uff . Thnx for any info ;)

cee ya

-- 
S pozdravom
 Peter  mailto:[EMAIL PROTECTED]




[vchkpw] vdelivermail and Delivered-To

2003-03-05 Thread Flavio Curti
hi

i'm using vpopmail 5.2.1, it was configured as following:
./configure  --prefix=/opt/vpopmail-5.2 --sysconfdir=/etc/vpopmail
--localstatedir=var/vpopmail --enable-mysql=y --enable-roaming-users=y
--enable-valias=y --enable-md5-passwords=n
--enable-default-domain=cyberlink.ch --enable-clear-passwd=n
--enable-relay-clear-minutes=180 --enable-logging=p
--enable-tcprules-prog=/opt/bin/tcprules --enable-libdir=/usr/lib
--enable-auth-logging=y

this makes --enable-many-domains=y (it's the default).

now i noticed that vdelivermail seems to corrupt the Delivered-To:
header lines when a domain is in a hashed dir:

[EMAIL PROTECTED]:/home/vpop/domains/9/testdomain.ch# cat .qmail-default 
| /home/vpop/bin/vdelivermail '' [EMAIL PROTECTED]
[EMAIL PROTECTED]:/home/vpop/domains/9/testdomain.ch# head -2
./test/Maildir/new/1046863343.4676.igel,S\=175814 
Return-Path: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]

so vpopmail looses the domain part of the email address and replaces it
with the hash number?!?

does anybody have an idea or a pointer ?

thank you  greetz

flavio 

--
http://no-way.org/~fcu/



Re: [vchkpw] spamassassin with per-user settings

2003-03-05 Thread Dave Weiner
Iain wrote:
 Hi,

 I have been working on getting spamassassin working with vpopmail and
 SQL based user preferences with a fair amount of success.

 I use the following in my .qmail-default for a particular domain:

 preline /usr/bin/maildrop /etc/spamassassin/mailfilter

 where the mailfilter is included at the bottom of this email. I have
 even backported the SAM module for IMP from CVS so that webmail users
 can adjust their spam settings.

 This all works well, creating a SPAM folder if it doesn't exist and
 moving any SPAM into that folder.

 The only problem is that the .qmail-default file will be overwritten
 by qmailadmin if the catchall settings are changed. I have seen a few
 people mention this on the list before but haven't seen an answer.
 Some people have suggested that procmail is the answer. Can anyone
 provide an example of how procmail can achieve similar results to the
 maildrop filter below?

No procmail, but if you instead call maildrop on a per-user basis from the
users .qmail file, you don't have to worry about the qmail-default being
rewritten :)


 ##
 mailfilter
 ##
 import EXT
 import HOST
 import HOME
 VHOME=`/home/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]
 VPOP=| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox

 if ($SIZE  262144)
 {
 xfilter /usr/bin/spamc -u [EMAIL PROTECTED]
 }

 if ((/^X-Spam-Flag:.*YES/))
 {
`test -d $VHOME/Maildir/.SPAM`
if( $RETURNCODE == 1 )
{
`maildirmake $VHOME/Maildir/.SPAM;chown -R vpopmail.vchkpw
 $VHOME/Maildir/.SPAM`
}
to $VHOME/Maildir/.SPAM/
 }

 to $VPOP

Ya know, it's fun watching this .mailfilter morph since I posted it to the
list.


Dave




Re: [vchkpw] OT: morercpthosts

2003-03-05 Thread Jesse Guardiani
On Wednesday 05 March 2003 09:33, Jesse Guardiani wrote:
 Howdy list,

 I know this is off topic and technically in the wrong list, but
 I thought one of you might have run into this before:

 My qmail-1.03 has the tarpitting patch and the oversized dns packet
 patch installed. For some reason, it isn't reading morercpthosts.

Hmmm... deleted the cdb and rebuilt it and now everything works. Weird.


 Has anyone run into a problem with qmail seemingly not reading
 morercpthost before?

 The corresponding CDB is updated properly.

 THanks,

-- 
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v)  423-559-5145 (f)
http://www.wingnet.net

We are actively looking for companies that do a lot of long
distance faxing and want to cut their long distance bill by
up to 50%.  Contact [EMAIL PROTECTED] for more info.





RES: [vchkpw] SMTP-Auth

2003-03-05 Thread Mauricio Bracale










    You can apply the qmail-smtpd-auth-0.31 patch in qmail´s
source and modify the run script, including the following lines:



    

   
/opt/qmail/bin/qmail-smtpd \

   
${LOCALNAME+$LOCALNAME} \

    /path/to/vpopmail/bin/vchkpw
/usr/bin/true

'



    To download
this patch, you can get it into qmail´s official home page.



    Mauricio
Bracale.



-Mensagem original-
De: Rob G
[mailto:[EMAIL PROTECTED] 
Enviada em: sábado, 1 de março de
2003 18:23
Para: [EMAIL PROTECTED]
Assunto: [vchkpw] SMTP-Auth



Does anyone have a patch
for Qmail/vpopmail that will allow SMTP-Authentication instead of Pop before
SMTP .. or if someone could show me how I would do this using the vpopmail
database that would be greatly appreciated.



Regards,

Rob G

[EMAIL PROTECTED]










Re: [vchkpw] vpopmail MySQL can't find limits for domain

2003-03-05 Thread Dorneles Treméa
Hello,

 ...
 manage Aliased to alias
 orphanag Aliased to alias
 warning Aliased to alias
 webmaste Aliased to alias
 
 Note users without last char. Also I don't know from
 where come these alias... :-)
 
 This continues a mystery to me... :-(

Aham! I found it... :-)

It's another Debian (qmail-src package) related issue:

file '/var/qmail/users/assign' has all this entries.

I just removed them, run '/var/qmail/bin/qmail-newu' to
update '/var/qmail/users/cdb' and solve the problem...

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


Re: [vchkpw] vdelivermail and Delivered-To

2003-03-05 Thread Claudio Nieder
Hi,

 Delivered-To: [EMAIL PROTECTED]

when I noticed, and looked up the mailing list archive for a solution I
found only messages saying, that it has to be this way. Not beeing
convinced myself I modified vdelivermail for me. This should be the
needed patch against vpopmail 5.2.1:

 --- vdelivermail.c.orig Mon Dec  2 15:11:01 2002
 +++ vdelivermail.c  Tue Dec 10 15:22:51 2002
 @@ -824,12 +825,27 @@
  return(message_size);
  }
  
 +#define PATHSIZE (500)
 +
  char *maildir_to_email(char *maildir)
  {
   static char email[256];
 + static char pwd[PATHSIZE];
 + static char maildir_abs[PATHSIZE];
   int i, j=0;
 + int rc;
   char *pnt, *last;
  
 +if (maildir[0]!='/') {
 +   getcwd(pwd,PATHSIZE);
 +   rc=chdir(maildir);
 +   if (rc==0) {
 + getcwd(maildir_abs,PATHSIZE);
 +  maildir=(maildir_abs[0]);
 + strncat(maildir,/,PATHSIZE);
 +  chdir(pwd);
 +   }
 +}
  memset(email, 0, sizeof(email));
  for(last=NULL, pnt=maildir; (pnt=strstr(pnt,/Maildir/))!=NULL; pnt+=9 ){
  last = pnt;
 @@ -843,20 +859,23 @@
  
  for( i=(pnt-maildir); (i  1  *(pnt-1) != '/'); --pnt, --i);
  
 +last=pnt; /* last points to first character of user name */
 +
  for( ; (*pnt  *pnt != '/'  j  255); ++pnt) {
  email[j++] = *pnt;
  }
  
  email[j++] = '@';
  
 -for (last=NULL, pnt=maildir; (pnt=strstr(pnt, / DOMAINS_DIR /)); 
pnt+=strlen(/ DOMAI
 NS_DIR /)) {
 -last = pnt;
 -}
 +pnt=last-2;
 +/* pnt points to last character of domain directory */
  
 -if(!last) return ;
 +for (i=(pnt-maildir); (i1  *(pnt-1)!='/'); --pnt, --i) ;
  
 -for( pnt = last + 9; (*pnt  *pnt != '/'  j  255); ++pnt, ++j ) {
 -  email[j] = *pnt;
 +/* pnt points to first character of domain name */
 +
 +for( ; (*pnt  *pnt != '/'  j  255); ++pnt ) {
 +  email[j++] = *pnt;
  }
  
  email[j] = 0;

DISCLAIMER: It's some time ago when I did the patching and I am no more
sure this is the right version of the patch. Please verify yourself if
it does what you expect, and no harm.

claudio
-- 
Claudio Nieder  .  mailto:[EMAIL PROTECTED]  .  http://www.inodes.ch
 iNodes AG  .  Friesenbergstrasse 3  .  CH-8055 Zürich  .  +41 43 960 0066





[vchkpw] vpopmail 5.3.19

2003-03-05 Thread Bill Shupp
Ken, All:

I've posted a new devel version, 5.3.19.  Please help test

ChangeLog:
http://shupp.org/patches/vpopmail-ChangeLog
Download:
http://shupp.org/patches/vpopmail-5.3.19.tar.gz
Regards,

Bill Shupp




Re: [vchkpw] vdelivermail and Delivered-To

2003-03-05 Thread Flavio Curti
hi

On Wed, Mar 05, 2003 at 07:32:01PM +0100, Claudio Nieder wrote:
 when I noticed, and looked up the mailing list archive for a solution I
 found only messages saying, that it has to be this way. Not beeing

   well, i'm no-way convinced by this as well. imho this breaks a lot of
stuff. (Serialmail for example, which relies on the Delivered-To: for
the redelivery of the mail).
imho according to envelopes(5):

   When a message is delivered by qmail to a single local
recipient, qmail-local records the recipient in Delivered-To
and the envelope sender in Return-Path.  It uses Delivered-To to
detect mail forwarding loops.

   so, [EMAIL PROTECTED] clearly is not the reciepient. (maildirsmtp will issue a 
RCPT TO: [EMAIL PROTECTED] in the SMTP conversation, which will lead to a 
Relaying Denied error)


 convinced myself I modified vdelivermail for me. This should be the
 needed patch against vpopmail 5.2.1:

   thank you for the patch, will this patch make it into the vpopmail
release?? 

thank you  greetz

flavio

--
http://no-way.org/~fcu/



[vchkpw] Vpopmail catch all....

2003-03-05 Thread Bill Sappington
I am running a few domains using vpopmail, and am having a bit of a 
difficulty.

I have read the FAQ and have chnaged an appropriate .qmail-default file to 
place a [EMAIL PROTECTED] name instead of the bounce phrase and things dont seem 
to be working.

When this is set, does it have to be a user IN that domain, or can it be a 
user completely outside the q-mail system, ie:  [EMAIL PROTECTED] ??

Thanks in advance.



[vchkpw] And since I am asking....

2003-03-05 Thread Bill Sappington
Does anyone have a init.d script that will HUP tcpserver as well ?



Re: [vchkpw] Vpopmail catch all....

2003-03-05 Thread Cory Wright
On Wed, Mar 05, 2003 at 03:18:48PM -0800, Bill Sappington wrote:
 When this is set, does it have to be a user IN that domain, or can it be a 
 user completely outside the q-mail system, ie:  [EMAIL PROTECTED] ??

You can forward to any address; it is not limited to the vpopmail domain.
Also, it must NOT point to an email address that will be caught by the
.qmail-default file, otherwise messages will loop.

Cory

--
Cory Wright
Stand Blue Technology
http://www.standblue.net/



Re: [vchkpw] And since I am asking....

2003-03-05 Thread Cory Wright
On Wed, Mar 05, 2003 at 03:32:30PM -0800, Bill Sappington wrote:
 Does anyone have a init.d script that will HUP tcpserver as well ?

Are you not running qmail-pop3d under daemontools?

Cory

--
Cory Wright
Stand Blue Technology
http://www.standblue.net/