RE: help -- vchkpw: setgid() failed !?!

2001-03-08 Thread Val Luck

Hello Ken,

Thanks for your earlier message, and sorry for not responding any quicker.

Anyway, I have checked and I am running the tcpserver/qmail-pop3d as root ;
here are the tcpserver processes running: (reformatted for readability)

[root@ranma log]# ps -ef --cols 145 | grep tcp

root  1372 1  0 00:16 pts/100:00:00
tcpserver -H -R -lranma -c30 0
   pop-3 /var/qmail/bin/qmail-popup ranma
/home/vpopmail/bin/vchkpw /

qmaild1373 1  0 00:16 pts/100:00:00 tcpserver -H -R -lranma
   -x /etc/tcp.smtp.cdb -c30 -u505 -g509 0 smtp /var/qmail

and here is the startup rc line that deals with pop:

env - PATH="/var/qmail/bin:/usr/local/bin" \
tcpserver -H -R -l$HOSTNAME -c30 0 pop-3 /var/qmail/bin/qmail-popup
\
$HOSTNAME \
/home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir &
echo -n "pop "

And that nasty error - I still get the message in the /var/log/syslog :

   Mar  8 00:31:15 ranma vpopmail[1450]: vchkpw: setgid() failed

Does anything look obvious?

Val

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ken Jones
> Sent: Friday, February 23, 2001 4:55 AM
> To: Val Luck
> Subject: Re: help -- vchkpw: setgid() failed !?!
>
>
>
> make sure you are running your tcpserver/qmail-pop3d as root
>
> ken Jones
>
>
> Hello fellow qmail/vpopmail friends:
>
> I am trying to get an install of qmail up and running and I am stumbling
> at the last hurdle.
>
> I am installing qmail + vpopmail +qmail-scanner, and everything seems to
> be installed ok, but I
> noticed that qmail-scanner wants to use /usr/bin/suidperl.  Now I've
> downloaded, compiled and
> installed perl, and I can't get perl to make me a suidperl; it seems to
> think that I can't support
> it ...?
>
> Anyhow, I can run tests injecting mails into the system, and the
> messages show up under
> ~vpopmail/users/val/ where they should be.  However, when I try and pop
> them down, I get back from
> the pop server
>
> [root@ranma ]# telnet 0 110
> Trying 0.0.0.0...
> Connected to 0.
> Escape character is '^]'.
> +OK <13956.982890598@ranma>
> user val
> +OK
> pass password
> -ERR authorization failed
> Connection closed by foreign host.
>
> and in the syslog I get
>
>
>   Feb 22 16:14:15 ranma vpopmail[3440]: vchkpw:No user found
> [EMAIL PROTECTED]:10.10.69.9
>
>   Feb 22 16:16:43 ranma vpopmail[3606]: vchkpw: setgid() failed
>
>
> So, I am guessing that something is unhappy along with way with
> /usr/bin/suidperl missing.
>
> It is interesting to note that the error seems to be coming from vckpw,
> and not from qmail-scanner
> like I'd except.
>
> I did some DEJA and GOOGLE (the same now) searches on vckpw and that
> error, and I browsed my
> emails from this group the past month or so, and didn't find anything
> that seemed to help.
>
> Any ideas?  Hints?
>
> Thanks so much in advance!!
>
> Val




help -- vchkpw: setgid() failed !?!

2001-02-23 Thread Val Luck



 
Hello fellow qmail/vpopmail 
friends:
 
I am trying to get an 
install of qmail up and running and I am stumbling at the last 
hurdle.
 
I am installing qmail + 
vpopmail +qmail-scanner, and everything seems to be installed ok, but I noticed 
that qmail-scanner wants to use /usr/bin/suidperl.  Now I've downloaded, 
compiled and installed perl, and I can't get perl to make me a suidperl; it 
seems to think that I can't support it ...?
 
Anyhow, I can run tests 
injecting mails into the system, and the messages show up under 
~vpopmail/users/val/ where they should be.  However, when I try and pop 
them down, I get back from the pop server 
 
    
[root@ranma ]# telnet 0 110    Trying 
0.0.0.0...    Connected to 0.    Escape 
character is '^]'.    +OK 
<13956.982890598@ranma>    user 
val    +OK 
pass password
    
-ERR authorization failed    Connection closed by foreign 
host.
 
and in the syslog I 
get
 

  Feb 22 16:14:15 ranma vpopmail[3440]: 
  vchkpw:No user found [EMAIL PROTECTED]:10.10.69.9
   
  Feb 22 16:16:43 ranma vpopmail[3606]: vchkpw: 
  setgid() failed
 
So, I am guessing that 
something is unhappy along with way with /usr/bin/suidperl missing.  

 
It is interesting to note 
that the error seems to be coming from vckpw, and not from qmail-scanner like 
I'd except.
 
I did some DEJA and GOOGLE 
(the same now) searches on vckpw and that error, and I browsed my emails from 
this group the past month or so, and didn't find anything that seemed to 
help.
 
Any ideas?  
Hints?  
 
Thanks so much in 
advance!!
 
Val
 


weird pop error

2000-08-01 Thread Val Luck


Hello,

My pop server is returning a really weird error when there is a bad
password entered.

If I try to pop my email with the correct login/password, everything
works.

If I try to pop email from a non-existant account, it correctly says "no
such account"

BUT, if I try to pop email down from a existant account with an incorrect
password, it dies with the weird error:

   Connected to 127.0.0.1.
   Escape character is '^]'.
   +OK <[EMAIL PROTECTED]>
   user billgates
   +OK 
   pass toomuchmoney
   -ERR aack, child crashed
   Connection closed by foreign host.

I do have a test account of billgates, and when I use the correct
password, I can pop my email just fine.  But, what is this "child
crashed" ..?  It is dying logging the error, or ...?  AND, do I need to be
concerned?  If it is a bad password, then, what do I care if it
crashes?  Unless it is eating memory somehow ...

It had this error when I had pop starting out of inetd, and now I run a
service like this below and it still has that child crashed error ...

   env - PATH="/var/qmail/bin:/usr/local/bin" \
tcpserver -H -R -l$HOSTNAME -c30 0 pop-3
   /var/qmail/bin/qmail-popup \
$HOSTNAME \
/home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir &
   echo -n "pop "

Anyway, thanks for taking a minute to look at it!

--Val
[EMAIL PROTECTED]




readable logs?

2000-08-01 Thread Val Luck


Hello,

I am using accustamp & cyclog, and the log files it leaves in
/var/log/qmail have the weird accustamp time on it: 

   965152081.734000 status: local 0/10 remote 0/20
   965152081.734005 end msg 540881

I know that the number is the number of seconds since 1969 TAI (whatever
that is) but for casual log browsing, it is useless.  I would much prefer
dates in normal readable format, such as 

   Jul 31 10:18:57 io vpopmail[8028]: vchkpw: No user found test@:127.0.0.1

so I can eyeball it and know when the last message sent was, or if a
certain user wants to know if their email was delivered, etc, I can start
looking at a certain time.  

Should I use another "accustamp" type program, or can accustamp be
configured to use normal dates, or should I go back to syslog?  (is it
cyclog that is doing it?)

Anyway, any help would be most appreciated.  Thanks!!

Val
[EMAIL PROTECTED]




how to set default domain

2000-07-31 Thread Val Luck


Hello,

I have a question, which I hope is simple enough.

If my domain is MYDOMAIN.NET and my machinename that qmail is running on
is QMAIL, then when I set vpopmail up, I have a

   ~vpopmail/users/

directory.  I then go and add the MYDOMAIN.NET with the vadddomain
command, and now I also have

   ~vpopmail/domains/mydomain.net

as a directory.  On the advice of another qmail/vpopmail user, I set up a
link from the users directory to the mydomain.net directory, so the local
mail and the domain mail is the same

 # cd ~vpopmail
 # mv users users.bak
 # ln -s domains/mydomain.net users

However, since I am still setting up and configuring this machine
(qmail.mydomain.net), the MX record for my domain still points to another
server running sendmail, so to get email here, I have to address the email
to [EMAIL PROTECTED], which of course doesn't exist.  So, I
then created another link from that domain back to the main domain
  
  # cd ~vpopmail/domains
  # ln -s mydomain.net qmail.mydomain.net

And all seems well.

My quesion(s) are this:

1) Is this linking ok to do?  Am I causing some unknown problem that I
will regret later?

2) If not, how can I define the "default" domain to be
"qmail.mydomain.net" so if it gets email for a user there,
"[EMAIL PROTECTED]" it knows to stick it in the
"users" directory and not the domains/qmail.mydomain.net

Can I do this, and, do I want to?

Any advice or experience would be most appreciated!  Thanks!

--Val
[EMAIL PROTECTED]






how to start up? "rc" or tcpserver?

2000-07-27 Thread Val Luck


I used to start up qmail with rc file 

  /var/qmail/rc

and then later I changed over to tcpserver that starts it up in init.d
directory
 
   $ cat smtpd-qmail-start 

   /usr/local/bin/tcpserver -x /etc/tcp.smtp.cdb -u 502 -g 501 0 smtp
   /var/qmail/bin/qmail-smtpd &

(that is all one line)

Do I still run /var/qmail/rc in addition to the /var/qmail/rc?  It doesn't
seem to work with running just the tcpserver line ...

help...thanks!

val
[EMAIL PROTECTED]






domains re: vpopmail & QmailAdmin

2000-07-26 Thread Val Luck


My biggest question is, I started adding users without a domain at the
end, for "local" users.  When I run "vadduser user" it adds the user
account to ~vpopmail/users.   Now, I am also running the html admin tool
QmailAdmin , and when I log into it, I have to enter the domain and the
domain password.  In QmailAdmin, when I add a user, it puts it under the
domain subdirectory, ~vpopmail/domains/ourname.net/.  My
problems/questions are:

1) when I go to send smtp mail to it, it seems to want to only deliver to
"local" users, saying that the other users don't exist.  This could be
that I am setting up qmail for the first time, and we haven't gone live,
so I haven't changed the MX records over, so in order to get mail, I have
to specify "[EMAIL PROTECTED]", where in the future when
I change the MX records over to "qmailmachine" email can be specified
"[EMAIL PROTECTED]".  

I also can't seem to get QmailAdmin to view/edit the users from the
"local" domain... it wants a domain put in there, which then makes it look
at the "ourdomain.net" directory.  I saw that a possibility is to symlink
~vpopmail/users to the primary email-domain -- is this a good workaround?

Thanks for any insights... I am looking forward to using this excellent
sendmail replacement!

Val
[EMAIL PROTECTED]




virus scanning with vpopmail & qmail?

2000-07-25 Thread Val Luck


Hello,

Is it possible to use qmail/vpopmail with a 3rd party virus scanning
solution?  I had used Sendmail and Trendmicro's product quite happily
before, but now that I need virtual users & domains, I am happy with qmail
and vpopmail.  

Has anyone gotten virus software, Trendmicro's Interscan for Linux, or any
other virus software to integrate with qmail/vpopmail on Linux?

Thanks!

Val
[EMAIL PROTECTED]