Re: [vchkpw] tcprules

2003-04-01 Thread Claudio Nieder
Hi,

 200.x.x.x:deny,RPLINE=[EMAIL PROTECTED]

while this is possible, it serves no purpose, because of the deny tcpserver
will not accept the TCP-connection, and thus nobody will ever see the RPLINE
variable.

If your question is: Does tcpserver have the ability to reject connections
based on the recepient address, the answer is No, because tcpserver does
handle only the TCP connection and doesn't care about the transmitted
data. That's the job of qmail-smtpd.

 Or if i have make a patch for qmail environment variables like badrcptto, 
 badmailftom, etc...

badmailfrom is part of qmail 1.03 itself. For badrcptto funtionality you
need an additional patch.
claudio
-- 
Claudio Nieder  .  mailto:[EMAIL PROTECTED]  .  http://www.inodes.ch
 iNodes AG  .  Friesenbergstrasse 3  .  CH-8055 Zürich  .  +41 43 960 0066




Re: [vchkpw] Problem....

2003-03-06 Thread Claudio Nieder
Hi,

 I am running several domains and I have one domain that when you try to 
 send e-mail to the postmaster account, the only account defined, it get a 
 relay denied message.

Domain is missing from rcpthosts/morercpthosts.

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




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





Re: [vchkpw] disk quota per domain

2003-01-28 Thread Claudio Nieder
Hi,

 Please give the workable answer...

Use vaddoains -u option to assign to each domain a different user and
use your OS quota facility to assign each user the desired quota.

claudio
-- 
Claudio Nieder, Kanalweg 1, CH-8610 Uster, Tel +41 79 357 6743
yahoo messenger: claudionieder aim: claudionieder icq:42315212
mailto:[EMAIL PROTECTED]http://www.claudio.ch




Re: [vchkpw] Performance testing

2003-01-16 Thread Claudio Nieder
Hi,

 Please feed me with information !! How can I test the performance, of
 my qmail vpopmail tcpserver install ?

http://www.coker.com.au/postal/

claudio
-- 
Claudio Nieder, Kanalweg 1, CH-8610 Uster, Tel +41 79 357 6743
yahoo messenger: claudionieder aim: claudionieder icq:42315212
mailto:[EMAIL PROTECTED]http://www.claudio.ch






Re: [vchkpw] Messed Up File Permission Troubles - Deferral chdirerror

2003-01-12 Thread Claudio Nieder
Hi,

 drwxrwxrwx8 vpopmail vchkpw   4096 Dec 20 18:45 .

you surely need to remove write permission to group and others, thus I'd
perform a

   chmod -R go-w /var/vpopmail

this might already fix everything. 

Furthermore, you should remove every right for groups and others in
the domains directory, thus

  chmod -R go-rwx /var/vpopmail/omains

Then it looks like what I have on my mailserver.

claudio
-- 
Claudio Nieder, Kanalweg 1, CH-8610 Uster, Tel +41 79 357 6743
yahoo messenger: claudionieder aim: claudionieder icq:42315212
mailto:[EMAIL PROTECTED]http://www.claudio.ch





Re: [vchkpw] Unable_to_chdir_to_maildir

2003-01-12 Thread Claudio Nieder

 If I'm correct, this means the file permissions and ownwerships are ok, but vpopmail 
(or qmail I suppose) is looking for a Maildir for this domain somewhere else, but I 
can't tell where it's looking.

vuserinfo will tell you.

claudio
-- 
Claudio Nieder, Kanalweg 1, CH-8610 Uster, Tel +41 79 357 6743
yahoo messenger: claudionieder aim: claudionieder icq:42315212
mailto:[EMAIL PROTECTED]http://www.claudio.ch





Re: [vchkpw] could here any one tell me all hidden parameter ofvdelivermail ???

2003-01-09 Thread Claudio Nieder
Hi,

 $echo '$[EMAIL PROTECTED]'  /home/vpopmail/domain/vpc.jeje/vpc/.qmail

the address preceeded by a dollar sign is plain wrong.

 $echo '[EMAIL PROTECTED]'  /home/vpopmail/domain/vpc.jeje/vpc/.qmail

This is the correct way to do it. You say it does not work, but
unfortunatly you did not supply the output from qmail-send log, which
would help to find the problem. Please send the log output corresponding
to this setting of .qmail.

claudio
-- 
Claudio Nieder, Kanalweg 1, CH-8610 Uster, Tel +41 79 357 6743
yahoo messenger: claudionieder aim: claudionieder icq:42315212
mailto:[EMAIL PROTECTED]http://www.claudio.ch





Re: [vchkpw] Change password

2003-01-09 Thread Claudio Nieder
Hi,

 i set suid of the vpasswd command in vpopmail/bin direct.
 then i execute this command with script,it works.
 is it correct way.

Basic rule: If someone has to ask if her/his suid script is sure, it
probably isn't:-)

Also suid scripts, i.e. text files interpreted by a shell, perl or so
have some extra pitfalls regarding security, which a real program
does not have.

You have to make sure, that only persons in need to use the script can
actually use it, by setting the right permissions and performing
necessary tests regarding who calls the script otherwise anyone could
change anybody elses password.

All user input, arguments etc. should be accuratly verified, to make
sure no one can abuse of your program, using specially crafted input to
be able to do more, than you want to allow such a user to do.

claudio
-- 
Claudio Nieder, Kanalweg 1, CH-8610 Uster, Tel +41 79 357 6743
yahoo messenger: claudionieder aim: claudionieder icq:42315212
mailto:[EMAIL PROTECTED]http://www.claudio.ch





Re: [vchkpw] why I can not redirect the virtual domain mail?

2003-01-09 Thread Claudio Nieder
Hi,

 @40003e1d0cab24c68b0c delivery 412: success: 
sh:_mybox@INTERNET_REAL_BOX:_command_not_found/did_0+0+2//bin/cat:_/t
 mp/1042091169.1517.mail.vpc.jeje:_No_such_file_or_directory/
 @40003e1d0cab24c9c344 status: local 0/10 remote 0/20

The more I think about this problem, the more I get the impression,
that something far weirder is going on, in your system.

1. If you do not have that .qmail file at all, is mail properly written
   into the Maildir of the user?

2. Please execute qmail-showctl and if the resulting output is small, send
   it to the mailing list. If the resulting output is large, put it on
   some webserver and tell us the URL, so we can access it.

3. Please execute the command

od -c /home/vpopmail/domain/vpc.jeje/postmaster/.qmail

   and mail the result to this list.

claudio
-- 
Claudio Nieder, Kanalweg 1, CH-8610 Uster, Tel +41 79 357 6743
yahoo messenger: claudionieder aim: claudionieder icq:42315212
mailto:[EMAIL PROTECTED]http://www.claudio.ch




Re: [vchkpw] why I can not redirect the virtual domain mail?

2003-01-09 Thread Claudio Nieder
Hi,

  2. Please execute qmail-showctl and if the resulting output is small, send

 [output deleted]

What is there is correct, what bothers me, is what is missing, namely
that there are no virtualdomains entries.

 [root@mail bin]# od -c  /home/vpopmail/domains/vpc.jeje/postmaster/.qmail
 000  j   e   r   r   y   @   t   l   1   6   5   .   n   e   t
 020  \n

This is perfect, and I wonder why vpopmail should have trobles with the
'' in front of the address, but should work without. Looking at the
vpopmail 5.2.1 source I see no error.

claudio
-- 
Claudio Nieder, Kanalweg 1, CH-8610 Uster, Tel +41 79 357 6743
yahoo messenger: claudionieder aim: claudionieder icq:42315212
mailto:[EMAIL PROTECTED]http://www.claudio.ch




Re: [vchkpw] Installation

2003-01-09 Thread Claudio Nieder
Hi,

 #k/bin/checkpassword \
   /var/qmail/bin/qmail-pop3d Maildir 21

Some shells are known to consider in a construct

# some comment  \
next line

next line to be part of the comment!

thus try to remoce the \ at the end of the checkpassword line, or
remove that line alltogether.

claudio
-- 
Claudio Nieder, Kanalweg 1, CH-8610 Uster, Tel +41 79 357 6743
yahoo messenger: claudionieder aim: claudionieder icq:42315212
mailto:[EMAIL PROTECTED]http://www.claudio.ch





Re: [vchkpw] Weird issue i'm seeing when qmail+vpopmail is used.

2003-01-09 Thread Claudio Nieder
Hi,

  But the problem i'm seeing (and I've seen it before) for some unknown 
  reason sometimes (I say sometimes, cause it truly is 'sometimes') you'll 
  email [EMAIL PROTECTED] It will take anywhere from 15 mins to 4 hours for the 
  mail to show up.

Is it mail from local to local user? If not, do the Received-Headers
indicate, that's indeed your mailer which has this long to deliver the
mail?

What do you find, when you look at the qmail-send log for such a delayed
mail?
claudio
-- 
Claudio Nieder, Kanalweg 1, CH-8610 Uster, Tel +41 79 357 6743
yahoo messenger: claudionieder aim: claudionieder icq:42315212
mailto:[EMAIL PROTECTED]http://www.claudio.ch




Re: [vchkpw] run scripts not working that good

2003-01-07 Thread Claudio Nieder
Hi,

 exec env - PATH=/var/qmail/bin:/usr/local/bin tcpserver -H -R -x
 /etc/tcp.smtp.cdb -c20 -u1004 -g1201 0 smtp /var/qmail/bin/qmail-smtpd 21
  /dev/null 

This should be 

exec ...  -H -R -x \
/etc/tcp ...  21 \
 /dev/null

 exec env - PATH=/var/qmail/bin:/usr/local/bin tcpserver -H -R 0 110
 /var/qmail/bin/qmail-popup mail.server.nu /home/vpopmail/bin/vchkpw
 /var/qmail/bin/qmail-pop3d Maildir 

same here, the \ at the end of the first two lines is missing.

claudio
-- 
Claudio Nieder, Kanalweg 1, CH-8610 Uster, Tel +41 79 357 6743
yahoo messenger: claudionieder aim: claudionieder icq:42315212
mailto:[EMAIL PROTECTED]http://www.claudio.ch





Re: [vchkpw] what is the usage of .qmail in~vpopmail/domain/VIRTUAL_DOMAIN_NAME/USER/.qmail ??

2003-01-05 Thread Claudio Nieder
Hi,

 I set up such a file with content of  [EMAIL PROTECTED]

This is the right way to do it. So something else must be broken in your
installation. Can you supply us with more details? E.g. what
does the qmail-send logfile say?

claudio
-- 
Claudio Nieder, Kanalweg 1, CH-8610 Uster, Tel +41 79 357 6743
yahoo messenger: claudionieder aim: claudionieder icq:42315212
mailto:[EMAIL PROTECTED]http://www.claudio.ch