vpopmail and smtpd run script

2000-09-01 Thread Pierrot Driguez

Hi all,

1- in the /var/qmail/supervise/qmail-smtpd/run script as follow :

exec /usr/local/bin/softlimit -m 200 /usr/local/bin/tcpserver 
-v -R -x /etc/tcp.smtp.cdb -u525 -g525 0 smtp /var/qmail/bin/qmail-smtpd 2>&1

Do we have to set the UID and GID for qmaild & nofiles
or vpopmail & vchkpw ?

2- Ken, in one of your install docs I read you said that when adding
a domain with vadddomain xxx.yy 
the /var/qmail/control/locals file was modified.
I see nothing has been changed in that.
Is that normal ?

Thanks for all

Pierre



Re: how to assign directory?

2000-09-01 Thread Michael Boman

truename wrote:
> 
> hi! all:
> 
> i have a big network, i help save my messages to NFS ,
> can i /home/vpopmail/bin/vadduser users , i may assign user to
> NFS directory?
> ./vadduser -d {user directory} username password .

No, that doesn't work. What you can do is mount your NFS in ~vpopmail
(alt. ~vpopmail/domains) or create a symlink to somewhere on the NFS
mount point.
 
> sqwebmail+vpopmail+NFS can work ?

Yes, works fine. Had some problem with NFS and sqwebmail thought. If you
run Linux visit nfs.sourceforge.net to update your nfs code in your
kernel, or choose a OS with better NFS support (BSD, Solaris etc).

Look into vpopmail + MySQL alt. vpopmail + LDAP. It will scale better
then vpopmail+cdb, but there are some tradeoffs (as usual).
 
> thanks!

No problem.

Best regards
 Michael Boman

-- 
Pager : out of order  | On the contrary of what you may think,
Mobile: (+65) 98 55 17 34 | your hacker is fully aware of your
company's
eMail : [EMAIL PROTECTED] | dress code. He is fully aware of the
fact
ICQ   : 5566009   | that it doesn't help him to do his job.



Re: ERR ... Help needed ........ pls....

2000-09-01 Thread Michael Boman

> Jerome Macaranas wrote:
> 
> 
> Im using Red Hat Linux.
> Vpopmail
> Qmail
> Mysql
> checkpassword
> 
> I typed  this to test my Vpopmail
> 
> telnet localhost 110
>  then.
> 
> user [EMAIL PROTECTED]
>  -> ok..
>  pass test
>  -> --ERR authorization failed
>  Connection closed by foreign host.
> 
> I already tried to use..
> 
> user test%test.com
> 
> doesnt work.
> 
> 
>  What have I done wrong?
> 
> Thanks in advance...

How is your start-up script for the pop3-server looking like? My guess
would be that you still using checkpasswd as auth. program.

Best regards
 Michael Boman

-- 
Pager : out of order  | On the contrary of what you may think,
Mobile: (+65) 98 55 17 34 | your hacker is fully aware of your
company's
eMail : [EMAIL PROTECTED] | dress code. He is fully aware of the
fact
ICQ   : 5566009   | that it doesn't help him to do his job.



Re: ERR ... Help needed ........ pls....

2000-09-01 Thread Daniel Augusto Fernandes

Michael Boman wrote:
> 
> > Jerome Macaranas wrote:
> .
> .
> .
> > telnet localhost 110
> >  then.
> >
> > user [EMAIL PROTECTED]
> >  -> ok..
> >  pass test
> >  -> --ERR authorization failed
> >  Connection closed by foreign host.
> >
> > I already tried to use..
> >
> > user test%test.com
> >
> > doesnt work.
> >
> >
> >  What have I done wrong?
> >
> > Thanks in advance...
> 
> How is your start-up script for the pop3-server looking like? My guess
> would be that you still using checkpasswd as auth. program.
> 
> Best regards
>  Michael Boman


Send some lines of your mail log too...
:o)
"What does your log say?" (tm)

:o))



Daniel Augusto Fernandes (DAF tm)   [EMAIL PROTECTED]
GCSNethttp://www.gcsnet.com.br/

 Se você não encontra
 o sentido das coisas
 é porque este não
 se encontra, se cria.
   Antoine Saint-Exupéry



vpasswd file got corruptted. urgent!

2000-09-01 Thread fgw

My vpasswd got corruptted.Why and how to do?
I hove 5M users in single domains
I used qmail1.03+vpopmail4.9+cdb+sqwebmail


---
163µç×ÓÓʾ֣¬¸øÄú¸üÍêÃÀEmail·þÎñ£¡
http://www.163.net





RE: vpasswd file got corruptted. urgent!

2000-09-01 Thread Tim Hunter

I assume you are speaking about a single domain vpasswd file?

Best case - Restore from backup
Worst Case - Recreate from scratch

Unless you can find a util to go from cbd -> flat text.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 01, 2000 11:37 AM
To: [EMAIL PROTECTED]
Subject: vpasswd file got corruptted. urgent!


My vpasswd got corruptted.Why and how to do? I hove 5M users in single
domains I used qmail1.03+vpopmail4.9+cdb+sqwebmail
---
163µç×ÓÓʾ֣¬¸øÄú¸üÍêÃÀEmail·þÎñ£¡
http://www.163.net






problem!

2000-09-01 Thread J.M. Roth



Hi guys!
Look at this setup:
[root@cents /home/vpopmail/domains/acel.lu]# 
llmtotal 21kdrwx--   5 vpopmail 
vchkpw   1.0k Sep  1 17:32 
.drwx--  43 vpopmail vchkpw   
2.0k Sep  1 16:07 ..-rw---   1 vpopmail 
vchkpw 34 Sep  1 16:08 
.dir-control-rw---   1 vpopmail 
vchkpw 19 Sep  1 16:09 
.qmail-burman-rw---   1 vpopmail 
vchkpw    174 Sep  1 16:16 
.qmail-contact-rw---   1 vpopmail 
vchkpw 21 Sep  1 16:10 
.qmail-dura-rw---   1 vpopmail 
vchkpw 23 Sep  1 16:09 
.qmail-fries-rw---   1 vpopmail 
vchkpw 21 Sep  1 16:09 
.qmail-hirtz-rw---   1 vpopmail 
vchkpw 15 Sep  1 16:09 
.qmail-koenig-rw---   1 vpopmail 
vchkpw 26 Sep  1 16:10 
.qmail-kurtisi-rw---   1 vpopmail 
vchkpw 15 Sep  1 16:10 
.qmail-malane-rw---   1 vpopmail 
vchkpw 30 Sep  1 16:10 
.qmail-polfer-rw---   1 vpopmail 
vchkpw 17 Sep  1 16:10 
.qmail-reuter-rw---   1 vpopmail 
vchkpw  0 Sep  1 16:07 
.vpasswd.lockdrwx--   3 vpopmail 
vchkpw   1.0k Sep  1 16:08 
blockdrwx--   3 vpopmail 
vchkpw   1.0k Sep  1 16:08 
kerschendrwx--   3 vpopmail 
vchkpw   1.0k Sep  1 16:07 
postmaster-rw---   1 vpopmail 
vchkpw    249 Sep  1 16:08 
vpasswd-rw---   1 vpopmail 
vchkpw   2.3k Sep  1 16:08 
vpasswd.cdb
 
[root@cents /home/vpopmail/domains/acel.lu]# cd 
block[root@cents /home/vpopmail/domains/acel.lu/block]# llmtotal 
3.0kdrwx--   3 vpopmail 
vchkpw   1.0k Sep  1 16:08 
.drwx--   5 vpopmail 
vchkpw   1.0k Sep  1 17:32 
..drwx--   5 vpopmail 
vchkpw   1.0k Sep  1 16:08 
Maildir
 
[root@cents /home/vpopmail/domains/acel.lu/block]# 
cd Maildir/[root@cents /home/vpopmail/domains/acel.lu/block/Maildir]# 
llmtotal 6.0kdrwx--   5 vpopmail 
vchkpw   1.0k Sep  1 16:08 
.drwx--   3 vpopmail 
vchkpw   1.0k Sep  1 16:08 
..drwx--   2 vpopmail 
vchkpw   1.0k Sep  1 16:08 
curdrwx--   2 vpopmail 
vchkpw   1.0k Sep  1 16:08 
new-rw---   1 vpopmail 
vchkpw 15 Sep  1 16:08 
sqwebmail-passdrwx--   2 vpopmail 
vchkpw   1.0k Sep  1 16:08 
tmp
 
[root@cents 
/home/vpopmail/domains/acel.lu/block/Maildir]# 
 
 
/var/qmail/users/assign contains the 
line
+acel.lu-:acel.lu:538:515:/home/vpopmail/domains/acel.lu:-::
/var/qmail/control/virtualdomains contains 
this:
acel.lu:acel.lu
Now, when I send mail to [EMAIL PROTECTED] the following appears in the 
log:
967822786.320142 info msg 46208: bytes 1449 from 
<[EMAIL PROTECTED]> qp 10718 uid 
502967822786.321317 starting delivery 15073: msg 46208 to local [EMAIL PROTECTED]967822786.321348 
status: local 1/10 remote 0/20967822786.326289 delivery 15073: failure: 
Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/967822786.326542 status: local 
0/10 remote 0/20967822786.330691 bounce msg 46208 qp 10720
Never had these problems before!
 
 
 
 
Another question: can I mix several forwards and local deliveries in 1 
dot-qmail file?
f.e. .qmail-default
| vdelivermail blabla
&someguy@somewhere
&someotherguy@somewhere

| vdelivermail blabla2
 
etc.
 
Thanks for your help!
 
Regards,J.M.Roth
 


Re: vpasswd file got corruptted. urgent!

2000-09-01 Thread Ben Beuchler

On Fri, Sep 01, 2000 at 11:37:06AM -0400, Tim Hunter wrote:

> I assume you are speaking about a single domain vpasswd file?
> 
> Best case - Restore from backup
> Worst Case - Recreate from scratch
> 
> Unless you can find a util to go from cbd -> flat text.

http://cr.yp.to/cdb.html

Looks like cdbdump might be helpful.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



RE: vpasswd file got corruptted. urgent!

2000-09-01 Thread Bill Shupp

Quoting Tim Hunter <[EMAIL PROTECTED]>:

> I assume you are speaking about a single domain vpasswd file?
> 
> Best case - Restore from backup
> Worst Case - Recreate from scratch
> 
> Unless you can find a util to go from cbd -> flat text.

won't vuserinfo do this?  You'd have to write a script to get the usernames from
the directory, but it might be a start...

Also, I saw recently a post about file locking problems that may cause vpasswd
corruption.  Was this referring to the vpasswd file or vpasswd.cdb?  And if it'd
the vpasswd.cdb file, what the best way to fix that?  Maybe delete it and add a
user to recreate it?

Thanks,

Bill

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 01, 2000 11:37 AM
> To: [EMAIL PROTECTED]
> Subject: vpasswd file got corruptted. urgent!
>
> 
> My vpasswd got corruptted.Why and how to do? I hove 5M users in single
> domains I used qmail1.03+vpopmail4.9+cdb+sqwebmail
> ---
> 163µç×ÓÓʾ֣¬¸øÄú¸üÍêÃÀEmail·þÎñ£¡
> http://www.163.net




Re: vpasswd file got corruptted. urgent!

2000-09-01 Thread Ben Beuchler

On Fri, Sep 01, 2000 at 10:56:22AM -0500, Bill Shupp wrote:

> Also, I saw recently a post about file locking problems that may cause vpasswd
> corruption.  Was this referring to the vpasswd file or vpasswd.cdb?  And if it'd
> the vpasswd.cdb file, what the best way to fix that?  Maybe delete it and add a
> user to recreate it?

Recent releases include vmkpasswd to rebuild the cdb file.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground   www.bitstream.net



Re: qmail-lspawn looks for local user?

2000-09-01 Thread Daniel Augusto Fernandes

Daniel Augusto Fernandes wrote:
> 
> Dave Sill wrote:
> >
> > [EMAIL PROTECTED] wrote:
> >
> > >And if the if it's a virtual domain account? It could not be able to set
> > >to the user ID, does it look if the  recipient mail user actually
> > >exists?
> >
> > Again, the PIC's answer this question. Specifically
> > /var/qmail/doc/PIC.local2virt. And, again, yes, qmail-lspawn verifies
> > the virtual domain account.
> >
> 
> Ok... Sorry that!
> It's just because I'm not at my office right now!
> 
> As soon as I get there I'll look at the PIC's...
> 

I've looked the PIC.local2virt.
Question: When a virtual domain is assigned to an user like that:
+epostal.com.br-:epostal.com.br:3367:503:/home/vpopmail/domains/epostal.com.br:-::

What happens?

Does it setuid and chdir to that user home, look for .qmail-user?
What if it finds .qmail-default (as in my case)?

I have the folowing .qmail:
| preline maildrop -d "$EXT@$HOST"

How could qmail-lspawn know where I have my virtual users info? Like
/home/vpopmail/domains/*/vpasswd.


I'm a little lost yet...
:o(


Daniel Augusto Fernandes (DAF tm)   [EMAIL PROTECTED]
GCSNethttp://www.gcsnet.com.br/

 Se você não encontra
 o sentido das coisas
 é porque este não
 se encontra, se cria.
   Antoine Saint-Exupéry



cdb corrupt

2000-09-01 Thread Daniel Augusto Fernandes

My vpasswd.cdb got corrupt!

Is there any way to convert userdb back to vpasswd? vchkpw2userdb make
userdb from vpasswd.

Thanks,


Daniel Augusto Fernandes (DAF tm)   [EMAIL PROTECTED]
GCSNethttp://www.gcsnet.com.br/

 Se você não encontra
 o sentido das coisas
 é porque este não
 se encontra, se cria.
   Antoine Saint-Exupéry



Re: cdb corrupt

2000-09-01 Thread Daniel Augusto Fernandes

Daniel Augusto Fernandes wrote:
> 
> My vpasswd.cdb got corrupt!
> 
> Is there any way to convert userdb back to vpasswd? vchkpw2userdb make
> userdb from vpasswd.
> 

I got it from backup!


Daniel Augusto Fernandes (DAF tm)   [EMAIL PROTECTED]
GCSNethttp://www.gcsnet.com.br/

 Se você não encontra
 o sentido das coisas
 é porque este não
 se encontra, se cria.
   Antoine Saint-Exupéry



Re: Annoucement: vpopmail bug tracking system

2000-09-01 Thread Daniel Augusto Fernandes

Ken Jones wrote:
> 
> Hello,
> 
> vpopmail now has a bug tracking system in place.
> It just got set up, so I don't know if it will
> break. It's using the JitterBug package from
> the Samba folks.
> 
> Here is the url
> 
> http://orbital.inter7.com/cgi-bin/vchkpw

I could not enter this page since yesterday
:o(


Daniel Augusto Fernandes (DAF tm)   [EMAIL PROTECTED]
GCSNethttp://www.gcsnet.com.br/

 Se você não encontra
 o sentido das coisas
 é porque este não
 se encontra, se cria.
   Antoine Saint-Exupéry



[Fwd: qmail-lspawn looks for local user?]

2000-09-01 Thread postmaster


Anyone here help me?

How does qmail+vpopmail looks for localusers?


Daniel Augusto Fernandes (DAF tm)   [EMAIL PROTECTED]
GCSNethttp://www.gcsnet.com.br/

 Se você não encontra
 o sentido das coisas
 é porque este não
 se encontra, se cria.
   Antoine Saint-Exupéry



I don't know if it will help but I'm sending my strace -f on qmail-send
and qmail-lspawn!



Daniel Augusto Fernandes (DAF tm)   [EMAIL PROTECTED]
GCSNethttp://www.gcsnet.com.br/

 Se você não encontra
 o sentido das coisas
 é porque este não
 se encontra, se cria.
   Antoine Saint-Exupéry

Daniel Augusto Fernandes wrote:
> 
> Daniel Augusto Fernandes wrote:
> >
> > Dave Sill wrote:
> > >
> > > [EMAIL PROTECTED] wrote:
> > >
> > > >And if the if it's a virtual domain account? It could not be able to set
> > > >to the user ID, does it look if the  recipient mail user actually
> > > >exists?
> > >
> > > Again, the PIC's answer this question. Specifically
> > > /var/qmail/doc/PIC.local2virt. And, again, yes, qmail-lspawn verifies
> > > the virtual domain account.
> > >
> >
> > Ok... Sorry that!
> > It's just because I'm not at my office right now!
> >
> > As soon as I get there I'll look at the PIC's...
> >
> 
> I've looked the PIC.local2virt.
> Question: When a virtual domain is assigned to an user like that:
> +epostal.com.br-:epostal.com.br:3367:503:/home/vpopmail/domains/epostal.com.br:-::
> 
> What happens?
> 
> Does it setuid and chdir to that user home, look for .qmail-user?
> What if it finds .qmail-default (as in my case)?
> 
> I have the folowing .qmail:
> | preline maildrop -d "$EXT@$HOST"
> 
> How could qmail-lspawn know where I have my virtual users info? Like
> /home/vpopmail/domains/*/vpasswd.
> 
> I'm a little lost yet...
> :o(

open("lock/trigger", O_RDONLY|O_NONBLOCK) = 8
open("todo", O_RDONLY)  = 9
open("todo/731459", O_RDONLY|O_NONBLOCK) = 10
open("info/13/731459", O_WRONLY|O_CREAT|O_EXCL, 0644) = 11
open("local/13/731459", O_WRONLY|O_CREAT|O_EXCL, 0644) = 12
open("local/13/731459", O_RDONLY|O_NONBLOCK) = 10
open("info/13/731459", O_RDONLY|O_NONBLOCK) = 11
open("lock/trigger", O_RDONLY|O_NONBLOCK) = 8
open("todo", O_RDONLY)  = 9
[pid  4897] chdir("/var/qmail") = 0
[pid  4897] chdir("/home/vpopmail/domains/epostal.com.br") = 0
[pid  4897] execve("bin/qmail-local", ["bin/qmail-local", "--", "epostal.com.br", 
"/home/vpopmail/domains/epostal.c"..., "epostal.com.br-ksjfd", "-", "ksjfd", 
"epostal.com.br", "[EMAIL PROTECTED]", "| preline maildrop -d \"$EXT@$HO"...], [/* 1 
var */]) = 0
[pid  4898] execve("/bin/sh", ["/bin/sh", "-c", " maildrop -d \"$EXT@$HOST\""], [/* 19 
vars */]) = 0
open("13/731459", O_RDONLY|O_NONBLOCK)  = 2
[pid  4897] open("users/cdb", O_RDONLY|O_NONBLOCK) = 5
[pid  4897] open("/etc/ld.so.cache", O_RDONLY) = 3
[pid  4897] open("/lib/libc.so.5", O_RDONLY) = 3
[pid  4897] open(".qmail-ksjfd", O_RDONLY|O_NONBLOCK) = -1 ENOENT (No such file or 
directory)
[pid  4897] open(".qmail-default", O_RDONLY|O_NONBLOCK) = 3
[pid  4898] open("/etc/ld.so.cache", O_RDONLY) = 3
[pid  4898] open("/lib/libtermcap.so.2", O_RDONLY) = 3
[pid  4898] open("/lib/libc.so.5", O_RDONLY) = 3
[pid  4898] open("/etc/passwd", O_RDONLY) = 3
[pid  4898] open("..", O_RDONLY)= 3
[pid  4898] open("../..", O_RDONLY) = 3
[pid  4898] open("../../..", O_RDONLY)  = 3
[pid  4898] open("../../../..", O_RDONLY) = 3
[pid  4898] open("/etc/ld.so.cache", O_RDONLY) = 3
[pid  4898] open("/lib/libgdbm.so.1", O_RDONLY) = 3
[pid  4898] open("/usr/lib/libstdc++.so.27", O_RDONLY) = 3
[pid  4898] open("/lib/libm.so.5", O_RDONLY) = 3
[pid  4898] open("/lib/libc.so.5", O_RDONLY) = 3
[pid  4898] open("/etc/userdb.dat", O_RDONLY) = 3
[pid  4898] open("/etc/passwd", O_RDONLY) = 4
[pid  4898] open("/usr/lib/zoneinfo/localtime", O_RDONLY) = 5
[pid  4898] execve("/usr/local/bin/maildrop", ["maildrop", "-d", 
"[EMAIL PROTECTED]"], [/* 25 vars */]) = 0



open("lock/trigger", O_RDONLY|O_NONBLOCK) = 8
open("todo", O_RDONLY)  = 9
open("todo/731461", O_RDONLY|O_NONBLOCK) = 10
open("info/15/731461", O_WRONLY|O_CREAT|O_EXCL, 0644) = 11
open("local/15/731461", O_WRONLY|O_CREAT|O_EXCL, 0644) = 12
open("local/15/731461", O_RDONLY|O_NONBLOCK) = 10
open("info/15/731461", O_RDONLY|O_NONBLOCK) = 11
open("lock/trigger", O_RDONLY|O_NONBLOCK) = 8
open("todo", O_RDONLY)  = 9
[pid  4902] chdir("/var/qmail") = 0
[pid