[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

qmail-local and maildirs

Hi there,

I'm evaluating qmail-sql for my company and I really like the setup and
layout of the database. But I run into trouble with one of my tests:

The database contains only an 'alias' user for the virtual_host

  login   | uid | gid |     virtual_host     | use_dotqmail
 alias    |   8 |  12 | bluemars.de          | f

The 'home' directory is '/var/spool/mail/bluemars.de' for this user.

Everything works as expected when only a .qmail-default file in the home
directory of the alias user exists (a simple forwarding to a real e-mail
account outside the system used for testing).

Even with some users in the same domain added, everythings fine (well, I
suppose not, but it works), the schema is "use the login-id as a
directory name":

 cb       |   8 |  12 | bluemars.de          | f

would have his 'home' directory set to:


Well, I first noticed problems when adding about 20 more users and
generating a lot of maildirectories in their homes:

test:/var/spool/mail/bluemars.de$ find . -type d | wc -l

When I'm trying to deliver a mail locally to the domain 'bluemars.de', I
get the following error in the maillog (no matter if a real or
non-existant login-id is used):

Sep 23 12:05:58 newody qmail: 1032775558.276197 starting delivery 34:
msg 2736249 to local foo@xxxxxxxxxxx
Sep 23 12:06:39 newody qmail: 1032775599.153531 delivery 34: deferral:

An 'lsof' command shows that qmail-local is running wild and tries to
recursively open every single maildir starting with the 'home' of the
alias user:

qmail-loc 21111     root   73r   DIR        8,1    4096    2015234
qmail-loc 21111     root   74r   DIR        8,1    4096    2031618
qmail-loc 21111     root   75r   DIR        8,1    4096    2080770
qmail-loc 21111     root   76r   DIR        8,1    4096    2179074

The OS-limit of open files is hit and the process terminated.

I'm really lost right now and don't now how and where to fix this.
Any thoughts?

BLUE MARS - Gesellschaft für digitale Kommunikation mbH                         
Christian Bauer               mailto:christian.bauer@xxxxxxxxxxx 
Technology Department         http://www.bluemars.de 
Ebersheimstrasse 5            Tel: +49 (0)69 469973-00 
60320 Frankfurt/M.            Fax: +49 (0)69 469973-99