[Re:] Postfix thinks there isn't enough disk space in a jail

2004-09-09 Thread Ralf Härle
Out: 220 xx ESMTP
In:  EHLO yy
Out: 250-xx
Out: 250-PIPELINING
Out: 250-SIZE 102400
Out: 250-VRFY
Out: 250-ETRN
Out: 250 8BITMIME
In:  MAIL FROM:a at b.com 
http://lists.freebsd.org/mailman/listinfo/freebsd-questions SIZE=13414
Out: 452 Insufficient system storage
In:  QUIT
Out: 221 Bye

Okay, so the disk is filling up.
This happens, if there's less than 2*message_size_limit free space on /var/mail.
Check /var/log/mail
box# df -hl
FilesystemSize   Used  Avail Capacity  Mounted on
/dev/ar0s1a  1008M45M   882M 5%/
/dev/ar0s1d27G23G   1.9G92%/jails
/dev/ar0s1h  1008M20M   908M 2%/home
/dev/ar0s1g  1008M  10.0K   927M 0%/tmp
/dev/ar0s1f   3.9G   1.2G   2.4G34%/usr
/dev/ar0s1e   2.0G   148M   1.7G 8%/var
procfs4.0K   4.0K 0B   100%/proc
procfs4.0K   4.0K 0B   100%/jails/xxx/proc

Okay, we are at 92%. We should clean some things up, but we do still have
1.9GB of free space. (And we often linger around this anyway.)

Postfix is set to accept mail as long as there is 25MB of free space:

main.cf:queue_minfree = 2500
That doesn't matter. Check your main.cf. What message_size_limit have you defined?
I guess, your /var is getting temporarly quit full due to some cronjobs e.g. 
backup-scripts which need a lot of temp-space to zip big directories like /home.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Postfix thinks there isn't enough disk space in a jail

2004-08-27 Thread Charles Ulrich

Andy Smith said:
 Hmm, I run postfix in two jails (both hosted on -STABLE), and have
 never had this problem unless I've really been out of disk..

Interesting. Maybe it's been fixed as of late and we didn't notice. I'll take
another look at it when I get the time but I can say with 100% certainty that
this issue prevented a jailed Postfix from accepting any incoming messages at
all and was a showstopper for many people. Just Google for postfix jail and
you should find information on it.

-- 
Charles Ulrich
System Administrator
Ideal Solution - http://www.idealso.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Postfix thinks there isn't enough disk space in a jail

2004-08-26 Thread Charles Ulrich

adp said:
 This problem seems to be affecting Postfix in a FreeBSD jail, and I haven't
 seen this problem outside of a jail, so I'm trying questions@ first.

 I am running postfix-2.0.18,1 (from ports) in a FreeBSD 4.10 system in a
 jail. Everything was fine until recently I moved NFS services over to this
 same server. (This may be a red herring.) Now, every few mails I get an
 email to Postmaster like this:

In normal operation, Postfix makes a system call to check to see if it can
create a file of a certain size. Inside a jail, this call will not succeed as
per the very design of jails. Thus, you must use the following one-line patch
to make postfix work. You can use the `patch` command, but it's probably just
easiest to insert the line manually. Remember that a 'make clean' from within
the port directory will wipe this change out, patch or no.

--- ./src/util/file_limit.c.origTue Aug 22 14:44:44 2000
+++ ./src/util/file_limit.c Mon Apr  8 12:43:55 2002
   @@ -85,6 +85,7 @@
 #else
 struct rlimit rlim;
+limit = RLIM_INFINITY;
 rlim.rlim_cur = rlim.rlim_max = limit;
 if (setrlimit(RLIMIT_FSIZE, rlim)  0)
msg_fatal(setrlimit: %m);

This patch probably hasn't made it into the port because it completely
bypasses a moderately important check. As long as you keep a close eye on disk
space, you should be okay.

-- 
Charles Ulrich
System Administrator
Ideal Solution - http://www.idealso.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Postfix thinks there isn't enough disk space in a jail

2004-08-26 Thread Andy Smith
On Thu, Aug 26, 2004 at 01:53:15PM -0400, Charles Ulrich wrote:
 In normal operation, Postfix makes a system call to check to see if it can
 create a file of a certain size. Inside a jail, this call will not succeed as
 per the very design of jails. Thus, you must use the following one-line patch
 to make postfix work.

Hmm, I run postfix in two jails (both hosted on -STABLE), and have
never had this problem unless I've really been out of disk..


pgpV00er9KhzB.pgp
Description: PGP signature