Hi

I'd like to report an issue I observed today for any comments people
may have.

Obviously this system is going to be upgraded to a recent version
(of OS and postfix), but I wanted to raise the issue for comment
here in case this is unexpected behaviour. I can't find reference
to it in the list archives.

platform: Debian Linux (lenny), linux kernel  2.6.26-2-amd64
postfix: 2.5.5-1.1+lenny
postconf -n:
config_directory = /etc/postfix
html_directory = /usr/share/doc/postfix/html
mailbox_size_limit = 5120000000   #5-ish Gb
message_size_limit = 51200000     #50Mb
mydestination = <let me know if this is needed>
myhostname = <let me know if this is needed>
mynetworks = <ip of host>, 127.0.0.0/8, [::ffff:127.0.0.0]/104, [::1]/128
myorigin = atnf.csiro.au
readme_directory = /usr/share/doc/postfix
relayhost = [mailhost.atnf.csiro.au]
sample_directory = /usr/share/doc/postfix-doc/examples
transport_maps = hash:/etc/postfix/maps/transport

What we saw in syslog was complaints from local(8)

Aug  8 14:22:17 ursa postfix/local[24324]: A88FA35028: 
to=<hapl...@mailserver.atnf.csiro.au>, relay=local, delay=0.71, 
delays=0.59/0/0/0.13, dsn=5.2.2, status=bounced (cannot update mailbox 
/var/mail/hapless for user hapless. error writing message: File too large)

A new message appeared for each new message delivery attempt.

But the mailbox file size was 787Mb, well under the limit of 5Gb.
This was measured with 'ls', 'du' and 'wc'.
Bounce messages stating the user's mailbox was full were received by
people trying to send messages to the user.
Despite these messages, it seems mail continued to be added to the file,
until about 14 hours later, when I intervened.

The filesystem was far from full. It's ext3, on an LVM logical volume.
There are no quotas set on the filesystem.

lsattr on the file showed no attributes set.
I tried checking for other users of the file, but invoked lsof incorrectly.

Things we tried:
 * reload postfix
 * restart postfix
 * set virtual_mailbox_limit = 5120000000 (was not set before)
   and reload postfix
 * rename mailbox and let postfix create a new one.
   This last attempt worked.

I checked the ulimits for the user and 'postfix', both were the same.

core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 137216
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) unlimited
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

It seems like local(8) was getting the file size wrong.
Not clear to me how that is possible.

Kind regards
Vince

Reply via email to