Here's my setup:

-Linux
-Vpopmail 5.4.9
-Netqmail

User maildirs are mounted over nfs. The existing servers (one SMTP,
two POP/Sqwebmail) all work fine. They run an older version of
Vpopmail (5.2.1). User information is in MySQL.

I'm adding a second SMTP server. This server runs Vpopmail 5.4.9 and
Netqmail. Mail deliveries work, but they're slow- almost a minute and
a half to deliver an incoming message. This delay only happens on the
new server. There are _no_ errors or informative messages in the logs-
I see the message come in, and then a minute or so later I see it
delivered.

Running lsof on the nfs mount, it looks like vdelivermail is walking
the entire user directory tree on the nfs server. After sending a test
mail to [EMAIL PROTECTED], an lsof shows:

[EMAIL PROTECTED] queue]# lsof /nfs/mail
COMMAND     PID     USER   FD   TYPE DEVICE   SIZE    NODE NAME
qmail-loc 25104 vpopmail  cwd    DIR   0,10 106496  540673
/nfs/mail/domains/ding.net (nfs-i:/u01/nfs/mail)
vdeliverm 25105 vpopmail  cwd    DIR   0,10   4096 3162130
/nfs/mail/domains/ding.net/test (nfs-i:/u01/nfs/mail)
vdeliverm 25105 vpopmail    5r   DIR   0,10 106496  540673
/nfs/mail/domains/ding.net (nfs-i:/u01/nfs/mail)
vdeliverm 25105 vpopmail    6r   DIR   0,10   4096 1131219
/nfs/mail/domains/ding.net/arbowers/Maildir (nfs-i:/u01/nfs/mail)

Note the looking around in arbowers' directory. Running lsof again, I see:

[EMAIL PROTECTED] queue]# lsof /nfs/mail
COMMAND     PID     USER   FD   TYPE DEVICE   SIZE    NODE NAME
qmail-loc 25104 vpopmail  cwd    DIR   0,10 106496  540673
/nfs/mail/domains/ding.net (nfs-i:/u01/nfs/mail)
vdeliverm 25105 vpopmail  cwd    DIR   0,10   4096 3162130
/nfs/mail/domains/ding.net/test (nfs-i:/u01/nfs/mail)
vdeliverm 25105 vpopmail    5r   DIR   0,10 106496  540673
/nfs/mail/domains/ding.net (nfs-i:/u01/nfs/mail)
vdeliverm 25105 vpopmail    6r   DIR   0,10   4096 7340188
/nfs/mail/domains/ding.net/bfjelstd/Maildir (nfs-i:/u01/nfs/mail)
vdeliverm 25105 vpopmail    7r   DIR   0,10   4096 6177644
/nfs/mail/domains/ding.net/bfjelstd/Maildir/.Drafts/cur
(nfs-i:/u01/nfs/mail)

It's really digging around inside bfjelstd's directory- looking in the
Sqwebmail drafts folder!

For the life of me, I can't figure out what's going on here. There are
no incoming mails to this server from the outside- it's in a testing
mode behind a firewall, so there's no reason for it to be accessing
other user directories. It really looks like it's walking the
directory tree- if I keep running lsof over and over and over again,
it'll progress through the alphabet.

I'd be incredibly grateful for any pointers here.

Thanks!

JC

Reply via email to