Bug#280213: exim4: Thinks it's always out of spool space

John Goerzen John Goerzen <jgoerzen@complete.org>, 280213@bugs.debian.org
Sun, 07 Nov 2004 22:55:20 -0600


Package: exim4
Version: 4.34-6
Severity: grave
Justification: renders package unusable

exim4 is giving 452 errors to all clients.  From its log:

2004-11-07 22:30:33 spool directory space check failed: space=0
inodes=4096

Yet:

erwin:/etc/exim4# df -h /var/spool/exim4
Filesystem            Size  Used Avail Use% Mounted on
/dev/hdc5             1.2G  905M  240M  80% /var
erwin:/etc/exim4# df -i /var/spool/exim4
Filesystem            Inodes   IUsed   IFree IUse% Mounted on
/dev/hdc5                  0       0       0    -  /var

This is a reiser FS.

This makes Exim completely unusable on this system, since it absolutely
refuses to store any new mail.

Enabling debugging showed:

22:42:43 19164 SMTP<< MAIL FROM:<jgoerzen@complete.org> SIZE=1667
22:42:43 19164 ---0 Rst 0x1200e1618    **      smtp_in.c  785 32832
22:42:43 19164 ---0 Get 0x1200e1618    24        parse.c  625
22:42:43 19164 spool directory /var/spool/exim4 space = 0 blocks; inodes
= 4096; check_space = 0K (0 blocks); inodes = 0; msg_size = 6667 (1
blocks)
22:42:43 19164 LOG: MAIN
22:42:43 19164   spool directory space check failed: space=0 inodes=4096
22:42:43 19164 SMTP>> 452 Space shortage, please try later

So you can see there is an issue.

This may be of interest, from Python:

s.statvfs('/var/spool/exim4')
>>> x.f_bavail
343762L
>>> x.f_bfree
343762L
>>> x.f_blocks
509885L
>>> x.f_bsize
4096
>>> x.f_favail
2760788L
>>> x.f_ffree
2760788L
>>> x.f_files
2770848L
>>> x.f_flag
0
>>> x.f_frsize
4096

So, you can see statvfs() is not at fault here.

-- Package-specific info:
Exim version 4.34 #1 built 11-Sep-2004 11:31:20
Copyright (c) University of Cambridge 2004
Berkeley DB: Sleepycat Software: Berkeley DB 3.2.9: (June  3, 2004)
Support for: iconv() IPv6 GnuTLS
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dsearch nis nis0 passwd
Authenticators: cram_md5 plaintext
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore autoreply lmtp pipe smtp
Fixed never_users: 0
Configuration file is /var/lib/exim4/config.autogenerated

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: alpha
Kernel: Linux 2.6.4-rc2
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages exim4 depends on:
ii  exim4-base                    4.34-6     EXperimental Internal Mailer -- a 
ii  exim4-daemon-light            4.34-6     Lightweight version of the Exim (v

-- no debconf information