[vchkpw] vpopmail and nfs

2005-01-18 Thread Grant Supp



I am running a 
cluster of 3 servers running CentOS 3.3 (2.4.21-20.0.1.ELsmp). One server 
provides MySQL, the other NFS and the last Qmail/Vpopmail. The Qmail server has 
/home/vpopmail, /var/qmail/control and /var/qmail/users mounted via NFS. The 
Qmail server is running the Qmail Toaster packages from www.qmailtoaster.com. Everything worked 
perfectly until we lost a power distribution unit at our datacenter. All 3 
servers got shut down hard. Now, when I try to add a new domain, I get the 
following error:

[EMAIL PROTECTED] users]# 
/home/vpopmail/bin/vadddomain -q 1073741824 -b Domain.com "password"File 
busy try again later!Failed while attempting to update_file() the assign 
fileError. Failed to add domain to assign fileError: Could not update 
file

I thought the 
problem was related to permissions, although so far I haven't been able to 
determine the problem. Any help would be greatly 
appreciated.

/var/qmail/users
[EMAIL PROTECTED] users]# 
ls -ltotal 16-rw-rw-rw- 1 vpopmail 
vchkpw 89 Jan 18 12:30 
assign-rw-rw-rw- 1 vpopmail 
vchkpw 0 Jan 18 12:32 
assign.9550-rw-rw-rw- 1 vpopmail 
vchkpw 0 Jan 18 12:32 
assign.9663-rw-rw-rw- 1 vpopmail 
vchkpw 0 Jan 18 12:32 
assign.9984-rw-rw-rw- 1 vpopmail 
vchkpw 0 Jan 18 12:46 
assign.lock-rw-rw-rw- 1 vpopmail 
vchkpw 69 Jan 18 12:30 
assign.rpmsave-rw-rw-rw- 1 vpopmail 
vchkpw 2181 Jan 18 12:30 
cdb-rw-rw-rw- 1 vpopmail 
vchkpw 2161 Jan 18 12:30 
cdb.rpmsave

/var/qmail/control[EMAIL PROTECTED] control]# ls 
-ltotal 152-rw-r--r-- 1 vpopmail 
vchkpw 17 Jan 18 12:30 
badmailfrom-rw-r--r-- 1 vpopmail 
vchkpw 24 Jan 18 12:30 
badmailto-rw-r--r-- 1 vpopmail 
vchkpw 57 Jan 18 12:30 
blacklists-rw-r--r-- 1 vpopmail 
vchkpw 2259 Jan 18 12:30 
clientcert.pem-rw-r--r-- 1 vpopmail 
vchkpw 4 Jan 18 12:30 
concurrencyincoming-rw-r--r-- 1 vpopmail 
vchkpw 3 Jan 18 12:30 
concurrencyremote-rw-r--r-- 1 vpopmail 
vchkpw 9 Jan 18 12:30 
databytes-rw-r--r-- 1 vpopmail 
vchkpw 11 Jan 18 12:30 
defaultdelivery-rw-r--r-- 1 vpopmail 
vchkpw 17 Jan 18 12:30 
defaultdomain-rw-r--r-- 1 vpopmail 
vchkpw 17 Jan 18 12:30 
defaultdomain.rpmsave-rw-r--r-- 1 vpopmail 
vchkpw 17 Jan 18 12:30 
defaulthost-rw-r--r-- 1 vpopmail 
vchkpw 17 Jan 18 12:30 
defaulthost.rpmsave-rw-r--r-- 1 vpopmail 
vchkpw 245 Jan 18 12:30 
dh1024.pem-rw-r--r-- 1 vpopmail 
vchkpw 156 Jan 18 12:30 
dh512.pem-rw-r--r-- 1 vpopmail 
vchkpw 34 Jan 18 12:30 
locals-rw-r--r-- 1 vpopmail 
vchkpw 0 Jan 18 12:31 
locals.lock-rw-r--r-- 1 vpopmail 
vchkpw 34 Jan 18 12:30 
locals.rpmsave-rw-r--r-- 1 vpopmail 
vchkpw 24 Jan 18 12:30 
me-rw-r--r-- 1 vpopmail 
vchkpw 24 Jan 18 12:30 
me.rpmsave-rw-r--r-- 1 vpopmail 
vchkpw 2 Jan 18 12:30 
mfcheck-rw-r--r-- 1 vpopmail 
vchkpw 6238 Jan 18 12:30 
mysql.sql-rw-r--r-- 1 vpopmail 
vchkpw 17 Jan 18 12:30 
plusdomain-rw-r--r-- 1 vpopmail 
vchkpw 17 Jan 18 12:30 
plusdomain.rpmsave-rw-r--r-- 1 vpopmail 
vchkpw 24 Jan 18 12:30 
rcpthosts-rw-r--r-- 1 vpopmail 
vchkpw 1 Jan 18 12:30 
rcpthosts.lock-rw-r--r-- 1 vpopmail 
vchkpw 24 Jan 18 12:30 
rcpthosts.rpmsave-rw-r--r-- 1 vpopmail 
vchkpw 497 Jan 18 12:30 
rsa512.pem-rw-r--r-- 1 vpopmail 
vchkpw 2259 Jan 18 12:30 
servercert.pem-rw-r--r-- 1 vpopmail 
vchkpw 1689 Jan 18 12:30 
servercert.pem.rpmnew-rw-r--r-- 1 vpopmail 
vchkpw 2263 Jan 18 12:30 
servercert.pem.rpmsave-rw-r--r-- 1 vpopmail 
vchkpw 432 Jan 18 12:30 
signatures-rw-r--r-- 1 vpopmail 
vchkpw 46 Jan 18 12:30 
smtpgreeting-rw-r--r-- 1 vpopmail 
vchkpw 0 Jan 18 12:31 
smtproutes-rw-r--r-- 1 vpopmail 
vchkpw 95 Jan 18 12:30 
sql-rw-r--r-- 1 vpopmail 
vchkpw 96 Jan 18 12:30 
sql.bak-rw-r--r-- 1 vpopmail 
vchkpw 95 Jan 18 12:30 
sql.rpmsave-rw-r--r-- 1 vpopmail 
vchkpw 3 Jan 18 12:30 
tarpitcount-rw-r--r-- 1 vpopmail 
vchkpw 2 Jan 18 12:30 
tarpitdelay-rw-r--r-- 1 vpopmail 
vchkpw 20 Jan 18 12:30 
virtualdomains-rw-r--r-- 1 vpopmail 
vchkpw 0 Jan 18 12:31 
virtualdomains.lock



Re: [vchkpw] vpopmail and nfs

2005-01-18 Thread Tom Collins
On Jan 18, 2005, at 10:55 AM, Grant Supp wrote:
[EMAIL PROTECTED] users]# /home/vpopmail/bin/vadddomain -q 1073741824 -b 
Domain.com password
File busy try again later!
Failed while attempting to update_file() the assign file
Error. Failed to add domain to assign file
Error: Could not update file
 
I thought the problem was related to permissions, although so far I 
haven't been able to determine the problem. Any help would be greatly 
appreciated.
 
/var/qmail/users
[EMAIL PROTECTED] users]# ls -l
total 16
-rw-rw-rw-    1 vpopmail vchkpw 89 Jan 18 12:30 assign
-rw-rw-rw-    1 vpopmail vchkpw  0 Jan 18 12:32 assign.9550
-rw-rw-rw-    1 vpopmail vchkpw  0 Jan 18 12:32 assign.9663
-rw-rw-rw-    1 vpopmail vchkpw  0 Jan 18 12:32 assign.9984
-rw-rw-rw-    1 vpopmail vchkpw  0 Jan 18 12:46 assign.lock
-rw-rw-rw-    1 vpopmail vchkpw 69 Jan 18 12:30 assign.rpmsave
-rw-rw-rw-    1 vpopmail vchkpw   2181 Jan 18 12:30 cdb
-rw-rw-rw-    1 vpopmail vchkpw   2161 Jan 18 12:30 cdb.rpmsave 
That assign file looks pretty small.  I assume you're not hosting many 
domains on that server...

I'd think that deleting assign.9* and assign.lock would take care of 
your problem.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


[vchkpw] vpopmail 5.4.9 slow

2005-01-18 Thread Juliano Simões
After upgrading our vpopmail installation from 5.3.30 to 5.4.9
we noticed that SMTP mail delivery became very slow and
qmail-smtpd processes now eat *lots* of CPU load to run.

Besides the upgrade, the most significant change is that we
have moved our aliases from file to MySQL (valias support).
Vpopmail configure parameters are:

env LIBS=-lz \
./configure \
--enable-roaming-users=y \
--enable-relay-clear-minutes=120 \
[EMAIL PROTECTED] \
--enable-auth-module=mysql \
--enable-many-domains=y \
--enable-clear-passwd=n \
--enable-tcpserver-file=/var/vpopmail/etc/tcp.smtp  \
--enable-auth-logging=n \
--enable-valias

I wonder if anyone has dealt with server load problems after
upgrading to 5.4.9? Can this be related to the use of valias?

Regards,

Juliano Simões
Gerente de Tecnologia
Axios Tecnologia e Serviços
http://www.axios.com.br
[EMAIL PROTECTED]
+55 41 2141-1800



RE: [vchkpw] chkuser 2.0 and vpopmail w/mysql

2005-01-18 Thread Brian Lanier
Ok... Maybe I don't understand qmail as much as I thought or I can't find
the info in the man pages. My understanding is if the domain is listed in
virtualdomains, then qmail-send treats this delivery as local and will not
read smtproutes. This is where I am not clear and would love to be
corrected. I don't want delivery to happen on my public facing mail server,
but I would like to run chkuser there to prevent bad mail from even coming
into my mail system.

I guess I understand everything you have said except for the relation
between smtproutes, virtualdomains and how qmail process this flow. If
anyone can clear this up or slap me upside the head with an obvious answer
that I am missing, that would be great. Thanks 

--
Brian Lanier
Network Engineer
Quexion, LLC
858.573.2323 x2

4858 Mercury St., Suite 200, San Diego, CA 92111
EnterpriseMail - complete business email from Quexion
No more spam. No more viruses.
www.quexion.com

-Original Message-
From: tonix (Antonio Nati) [mailto:[EMAIL PROTECTED]
Sent: Friday, January 14, 2005 1:17 AM
To: vchkpw@inter7.com
Subject: Re: [vchkpw] chkuser 2.0 and vpopmail w/mysql


I feel these two statements are not in opposition.

chkuser checks recipients only for domains who are in virtualdomains.

When a domain is already inside virtualdomains, for a new user you may
simply add a new line with MySQL vpopmail database, and the user will be
added automatically as it is used the first time (the first incoming
message).

In this way, using a replica MySQL on a front-end qmail system, it will use
chkuser for all domains that are listed in virtualdomains and have all
users within MySQL. So it looks simply like you have to add your domains to
virtualdomains, and put them also in smtproutes.

Tonino

At 21.00 12/01/2005, you wrote:
Quick question that I can't seem to sort out myself. I see people are
doing
the same thing based on the archives but I can't seem to find a definitive
answer.

Using a smart host relay to do initial mail checking running qmail. All my
virtual domains are setup up correctly but not listed in the
virtualdomains
file. Instead we are using the smtproutes file to pass on to the rest of
our
mail system. This all works great. Vpopmail 5.4.7 is setup using MySQL
with
a replicated read only host on the smart relay. I noticed in the archives
that people have used the chkuser patch to qmail in this situation with
great success. My question is this: In the FAQ at
http://www.interazioni.it/opensource/chkuser/documentation/faq/general.htm
l
it states that chkuser will do the checking only if the domain exists in
rcpthosts(or morercpthosts) AND virtualdomains. The archives seem to
suggest
that if you are using MySQL, you don't need the entries in virtualdomains.
Am I misreading this? What would be the correct setup in this case
assuming
checking on all domains? Any clarification would be great. Thanks

Brian Lanier





RE: [vchkpw] vpopmail and nfs

2005-01-18 Thread Grant Supp
 /var/qmail/users
 [EMAIL PROTECTED] users]# ls -l
 total 16
 -rw-rw-rw-    1 vpopmail vchkpw 89 Jan 18 12:30 assign
 -rw-rw-rw-    1 vpopmail vchkpw  0 Jan 18 12:32 assign.9550
 -rw-rw-rw-    1 vpopmail vchkpw  0 Jan 18 12:32 assign.9663
 -rw-rw-rw-    1 vpopmail vchkpw  0 Jan 18 12:32 assign.9984
 -rw-rw-rw-    1 vpopmail vchkpw  0 Jan 18 12:46 assign.lock
 -rw-rw-rw-    1 vpopmail vchkpw 69 Jan 18 12:30 assign.rpmsave
 -rw-rw-rw-    1 vpopmail vchkpw   2181 Jan 18 12:30 cdb
 -rw-rw-rw-    1 vpopmail vchkpw   2161 Jan 18 12:30 cdb.rpmsave

That assign file looks pretty small.  I assume you're not hosting many domains 
on that server...

I'd think that deleting assign.9* and assign.lock would take care of your 
problem.

--
Tom Collins  -  [EMAIL PROTECTED]

Thanks for the reply Tom. You are correct, there is only 1 or 2 domains on the 
server. The server is not in production. I have tried deleting assign.lock and 
assign.9* as suggested but I'm still having the same error.

[EMAIL PROTECTED] users]# /home/vpopmail/bin/vadddomain -q 1073741824 -b 
domain.com password
File busy try again later!
Failed while attempting to update_file() the assign file
Error. Failed to add domain to assign file
Error: Could not update file
[EMAIL PROTECTED] users]# ls -l
total 16
-rw-rw-rw-1 vpopmail vchkpw 89 Jan 18 12:30 assign
-rw---1 nfsnobody nfsnobody0 Jan 18  2005 assign.lock
-rw-rw-rw-1 vpopmail vchkpw 69 Jan 18 12:30 assign.rpmsave
-rw-rw-rw-1 vpopmail vchkpw   2181 Jan 18 12:30 cdb
-rw-rw-rw-1 vpopmail vchkpw   2161 Jan 18 12:30 cdb.rpmsave


Re: [vchkpw] vpopmail 5.4.9 slow

2005-01-18 Thread Eduardo Ribeiro da Silva
Are you using smtp-auth ? 

The only way using vchkpw to make qmail spawn a qmail-smtpd process against 
MySQL databases is the modified script to make qmail-smtpd spawn it first 
using vchkpw.


btw: I speak portuguese too.

Regards
Eduardo Ribeiro da Silva
[EMAIL PROTECTED]
Consultant


Em Ter 18 Jan 2005 18:02, Juliano Simões escreveu:
 After upgrading our vpopmail installation from 5.3.30 to 5.4.9
 we noticed that SMTP mail delivery became very slow and
 qmail-smtpd processes now eat *lots* of CPU load to run.
 
 Besides the upgrade, the most significant change is that we
 have moved our aliases from file to MySQL (valias support).
 Vpopmail configure parameters are:
 
 env LIBS=-lz \
 ./configure \
 --enable-roaming-users=y \
 --enable-relay-clear-minutes=120 \
 [EMAIL PROTECTED] \
 --enable-auth-module=mysql \
 --enable-many-domains=y \
 --enable-clear-passwd=n \
 --enable-tcpserver-file=/var/vpopmail/etc/tcp.smtp  \
 --enable-auth-logging=n \
 --enable-valias
 
 I wonder if anyone has dealt with server load problems after
 upgrading to 5.4.9? Can this be related to the use of valias?
 
 Regards,
 
 Juliano Simões
 Gerente de Tecnologia
 Axios Tecnologia e Serviços
 http://www.axios.com.br
 [EMAIL PROTECTED]
 +55 41 2141-1800
 
 
 


Re: [vchkpw] chkuser 2.0 and vpopmail w/mysql

2005-01-18 Thread Jeremy Kitchen
On Tuesday 18 January 2005 03:23 pm, Brian Lanier wrote:
 Ok... Maybe I don't understand qmail as much as I thought or I can't find
 the info in the man pages. My understanding is if the domain is listed in
 virtualdomains, then qmail-send treats this delivery as local and will not
 read smtproutes.

that is correct.  In fact, qmail-send doesn't care about smtproutes at all.. 
qmail-remote does.. and qmail-remote is only called when a delivery is to be 
made to a remote host.. qmail-send determines that by checking if the domain 
is in locals or virtualdomains.

 This is where I am not clear and would love to be 
 corrected. I don't want delivery to happen on my public facing mail server,
 but I would like to run chkuser there to prevent bad mail from even coming
 into my mail system.

that's a little trickier, and requires a certain type of setup.

 I guess I understand everything you have said except for the relation
 between smtproutes, virtualdomains and how qmail process this flow. If
 anyone can clear this up or slap me upside the head with an obvious answer
 that I am missing, that would be great. Thanks

you might want to look at the PIC.* files in /var/qmail/doc for how qmail 
processes incoming emails.

-Jeremy

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
  [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 815.776.9465 int'l
  kitchen @ #qmail #gentoo on EFnet IRC ++ scriptkitchen.com/qmail
 GnuPG Key ID: 481BF7E2 ++ jabber:[EMAIL PROTECTED]


pgpbuj5MMkizO.pgp
Description: PGP signature


Re: [vchkpw] vpopmail and nfs

2005-01-18 Thread Tom Collins
On Jan 18, 2005, at 2:04 PM, Grant Supp wrote:
[EMAIL PROTECTED] users]# /home/vpopmail/bin/vadddomain -q 1073741824 -b 
domain.com password
File busy try again later!
Failed while attempting to update_file() the assign file
Error. Failed to add domain to assign file
Error: Could not update file
[EMAIL PROTECTED] users]# ls -l
total 16
-rw-rw-rw-1 vpopmail vchkpw 89 Jan 18 12:30 assign
-rw---1 nfsnobody nfsnobody0 Jan 18  2005 assign.lock
-rw-rw-rw-1 vpopmail vchkpw 69 Jan 18 12:30 assign.rpmsave
-rw-rw-rw-1 vpopmail vchkpw   2181 Jan 18 12:30 cdb
-rw-rw-rw-1 vpopmail vchkpw   2161 Jan 18 12:30 cdb.rpmsave
Try renaming the assign and cdb files, make a copy of the renamed 
assign file as 'assign' and set the correct ownership/permissions on 
it, and then try adding the domain.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


[vchkpw] multiple issues.....cannot get in!!

2005-01-18 Thread Bob Ababurko

I am running vpopmail with vchkpw and I am having an few isssues that I 
believe are connected.  I have many virtual domains, but on at lease one 
account in one domain, I cannot log into my mail and see the error,

Sending of the password did not succeed.  unable to scan $HOME/Maildir.
(using mozilla thunderbird)
OR
-ERR unable to scan $HOME/Maildir, telneting to box
The weird thing is that other account on the same domain do not have 
this problem.

As I said, another thing is going on that I believe to be connectedI 
cannot log into my qmailadmin.  Qmail admin gives me a Internal server 
error on the web page and: Premature end of script headers: 
/cgi-bin/qmailadmin in the error log.

I do believe that I may have contributed to the by changing the shell 
for the vpopmail account to /nologin as I was in paranoid mode after one 
of my other boxes got hacked.  I cannopt tell if this was the cause, but 
as soon as I made the correlation, I changed the shell back to the one 
that I believe that was originally there(/bin/csh) and still the same. 
So, i belive it could possibly a vpopmail ownership thing but everything 
looks rightAs far as I believe things should be looking, that is.

If anyone can point some light in my direction, that would be very 
appreciated.

thanks,
Bob