On Mon, May 12, 2014 at 11:24:09PM -0300, Hugo Osvaldo Barrera wrote: > On 2014-05-10 11:43, Julius wrote: > > Hello opensmtpd-misc! > > > > If there is less than 5% of disk space left, OpenSMTP rejects messages. That > > is a compile-time/in-source constant. The restriction is simple to remove > > from smtpd/queue_fs.c but I want to know what the big idea behind this is. > > Mail is very precious, even the output from cronjobs, which will be directly > > lost in such a situation. > > > > > > More Info: > > > > I'm running opensmtpd on my NAS where the var-partition is close to full. > > All mail is relayed, so I find the restriction especially annoying. Also, at > > 5%, I still have 200GB of space left. I could store 100 000 000 of the > > average mail that machine handles. > > > > Mai 10 11:15:58 micpi1 smtpd[559]: smtp-in: New session 5fc97cda452fbcee > > from host 0@localhost [local] Mai 10 11:15:59 micpi1 smtpd[551]: warn: not > > enough disk space: 4% left Mai 10 11:15:59 micpi1 smtpd[551]: warn: > > temporarily rejecting messages Mai 10 11:15:59 micpi1 smtpd[559]: smtp-in: > > Failed command on session 5fc97cda452fbcee: "MAIL FROM:<b > > Mai 10 11:15:59 micpi1 smtpd[559]: smtp-in: Closing session 5fc97cda452fbcee > > > > Julius > > > > -- > > You received this mail because you are subscribed to [email protected] > > To unsubscribe, send a mail to: [email protected] > > > > Indeed, 5% seems a bit arbitrary. It can be 50MiB, or 50GiB. > Maybe something like min(5%, 200MiB) would be a bit more flexible. > (200MiB is completely arbitrary; something else can be chosen). > > Also, maybe email incoming from the "mail" command (that's what cron > uses, right?), can have a *slightly* lower limit, so as not to reject > it's messages as quickly. I'll never notice I'm under 5% if I don't > get cron's daily output. >
I agree with you guys. Eric and I have been against this limit but there's been requests that a limit of some sort be introduced to prevent /var filling from OpenSMTPD. I had an idea that is more sensible than an arbitrary limit, I'll have a chat with a few people and will provide a diff. -- Gilles Chehade https://www.poolp.org @poolpOrg -- You received this mail because you are subscribed to [email protected] To unsubscribe, send a mail to: [email protected]
