Petr Svacina
2011-May-09 15:37 UTC
[Dovecot] Posfix and Dovecot (dovecot like LDA) and no space left on the disk
Hi, Please I have a question: If my server is out of space (disk full) and the postfix is LDA, the new messages a deffered or refused,so postfix send 450 to sender ... But When I use dovecot (1.2.16) like LDA, postfix accept message (even there is no space), forward to dovecot, dovecot REFUSE the message and message is lost ! How can I solve this ? I don't want tu use quota and the disk was full, because of the other problem .... thanks. Peter -- Tato zprava byla prohledana na vyskyt viru a nebezpecneho obsahu antivirovym systemem MailScanner a zda se byt cista.
Timo Sirainen
2011-May-09 16:41 UTC
[Dovecot] Posfix and Dovecot (dovecot like LDA) and no space left on the disk
On Mon, 2011-05-09 at 17:37 +0200, Petr Svacina wrote:> If my server is out of space (disk full) and the postfix is LDA, the > new messages a deffered or refused,so postfix send 450 to sender ... > But When I use dovecot (1.2.16) like LDA, postfix accept message (even > there is no space), forward to dovecot, dovecot REFUSE the message and > message is lost !Dovecot deliver should fail with tempfail, which Postfix should notice and forward to the original sender. If deliver doesn't return tempfail, it's a bug. I'd like to see Postfix logs of when this problem happens.
Stan Hoeppner
2011-May-09 18:46 UTC
[Dovecot] Posfix and Dovecot (dovecot like LDA) and no space left on the disk
On 5/9/2011 10:37 AM, Petr Svacina wrote:> Hi, > > Please I have a question: > > If my server is out of space (disk full) and the postfix is LDA, the new messages a deffered or refused,so postfix send 450 to sender ... > But When I use dovecot (1.2.16) like LDA, postfix accept message (even there is no space), forward to dovecot, dovecot REFUSE the message and message is lost ! > > How can I solve this ? I don't want tu use quota and the disk was full, because of the other problem ....This is more of a mail server admin 101 issue than a Dovecot issue. Putting your log, mail spool, and user mail directories on separate partitions, physical disks, or SAN LUNs will prevent such a problem from occurring 99% of the time, assuming you have planned and sized your storage appropriately for your environment. At minimum you should have your spool and user mail storage on different partitions. To avoid this issue the other 1% of the time, use monitoring or log summary tools to notify you of disk space usage so you know when you're close to running out of space. For instance, I receive the following as part of my daily logwatch summary on my personal domain MX: Filesystem Size Used Avail Use% Mounted on /dev/sda2 33G 4.2G 28G 14% / /dev/sda1 92M 8.4M 79M 10% /boot /dev/sda6 94G 1.2G 92G 2% /home /dev/sda7 94G 25G 70G 26% /samba Note that I have both system logs and the mail spool on / but user mail directories in /home. This setup is acceptable for a low volume server. For a high volume server the mail spool should be on a dedicated partition, as well as user mail dirs. If you already know all of this and an unforeseen issue caused your problem, accept my apologies for preaching to the choir. -- Stan
Stephan Bosch
2011-May-09 19:40 UTC
[Dovecot] Posfix and Dovecot (dovecot like LDA) and no space left on the disk
On 05/09/2011 05:37 PM, Petr Svacina wrote:> Hi, > > Please I have a question: > > If my server is out of space (disk full) and the postfix is LDA, the new messages a deffered or refused,so postfix send 450 to sender ... > But When I use dovecot (1.2.16) like LDA, postfix accept message (even there is no space), forward to dovecot, dovecot REFUSE the message and message is lost ! > > How can I solve this ? I don't want tu use quota and the disk was full, because of the other problem .... >Are you using any plugins, like Sieve? Regards, Stephan.
Petr Svacina
2011-May-10 12:44 UTC
[Dovecot] Posfix and Dovecot (dovecot like LDA) and no space left on the disk
Here is the logs: May 8 06:00:36 mailserver dovecot: deliver(sazima at vendys.net): msgid=<3DEF56667E754F24B163C9767422C9A9 at dlllk.local>: save failed to INBOX: Not enough disk space May 8 06:00:36 mailserver dovecot: deliver(sazima at vendys.net): msgid=<3DEF56667E754F24B163C9767422C9A9 at dlllk.local>: rejected: Not enough disk space May 8 06:00:36 mailserver postfix/pickup[27640]: D8B242F9E1: uid=150 from=<> May 8 06:00:36 mailserver postfix/pipe[27978]: 4B3A72F8C0: to=<sazima at vendys.net>, relay=dovecot, delay=11, delays=11/0.02/0/0.04, dsn=2.0.0, status=sent (delivered via dovecot service) May 8 06:00:36 mailserver postfix/qmgr[18807]: 4B3A72F8C0: removed Problem is, that: 1. spool HAVE ENOUGH space (so postfix has no problem keeps the message in the spool) 2. postfix forward message to dovecot 3. dovecot accept message, but can not deliver to /home/vmail, because there is no space :-) 4. so dovecot lost/delete/refuse message and tells postfix - everything is Ok ? 5. postfix cleans qmgr (bacause message has been forward to LDA succesfully I suppose :-) ) Thanks Peter> > On Mon, 2011-05-09 at 17:37 +0200, Petr Svacina wrote: > >> If my server is out of space (disk full) and the postfix is LDA, the >> new messages a deffered or refused,so postfix send 450 to sender ... >> But When I use dovecot (1.2.16) like LDA, postfix accept message (even >> there is no space), forward to dovecot, dovecot REFUSE the message and >> message is lost ! > > Dovecot deliver should fail with tempfail, which Postfix should notice > and forward to the original sender. If deliver doesn't return tempfail, > it's a bug. I'd like to see Postfix logs of when this problem happens. > >-- Tato zprava byla prohledana na vyskyt viru a nebezpecneho obsahu antivirovym systemem MailScanner a zda se byt cista.
Petr Svacina
2011-May-10 13:04 UTC
[Dovecot] Posfix and Dovecot (dovecot like LDA) and no space left on the disk
Hi, Yes know, I know, that ANY OUT of SPACE problem is SPECIALLY administrator's problem and please check my previous answer ... Out of space on the disk is my problem, but I want to know, why postfix receive message to it's spool (another partition - lot of space) and when postfix uses dovecot to deliver message to the inbox, where is NO space, why message is lost and removed from qmgr. thanks a lot :-) Peter> > On 5/9/2011 10:37 AM, Petr Svacina wrote: >> Hi, >> >> Please I have a question: >> >> If my server is out of space (disk full) and the postfix is LDA, the new messages a deffered or refused,so postfix send 450 to sender ... >> But When I use dovecot (1.2.16) like LDA, postfix accept message (even there is no space), forward to dovecot, dovecot REFUSE the message and message is lost ! >> >> How can I solve this ? I don't want tu use quota and the disk was full, because of the other problem .... > > This is more of a mail server admin 101 issue than a Dovecot issue. > Putting your log, mail spool, and user mail directories on separate > partitions, physical disks, or SAN LUNs will prevent such a problem from > occurring 99% of the time, assuming you have planned and sized your > storage appropriately for your environment. At minimum you should have > your spool and user mail storage on different partitions. To avoid this > issue the other 1% of the time, use monitoring or log summary tools to > notify you of disk space usage so you know when you're close to running > out of space. For instance, I receive the following as part of my daily > logwatch summary on my personal domain MX: > > Filesystem Size Used Avail Use% Mounted on > /dev/sda2 33G 4.2G 28G 14% / > /dev/sda1 92M 8.4M 79M 10% /boot > /dev/sda6 94G 1.2G 92G 2% /home > /dev/sda7 94G 25G 70G 26% /samba > > Note that I have both system logs and the mail spool on / but user mail > directories in /home. This setup is acceptable for a low volume server. > For a high volume server the mail spool should be on a dedicated > partition, as well as user mail dirs. > > If you already know all of this and an unforeseen issue caused your > problem, accept my apologies for preaching to the choir. > > -- > Stan >-- Tato zprava byla prohledana na vyskyt viru a nebezpecneho obsahu antivirovym systemem MailScanner a zda se byt cista.
Petr Svacina
2011-May-10 13:06 UTC
[Dovecot] Posfix and Dovecot (dovecot like LDA) and no space left on the disk
Hi, No. No any version of the sieve us used ....> On 05/09/2011 05:37 PM, Petr Svacina wrote: >> Hi, >> >> Please I have a question: >> >> If my server is out of space (disk full) and the postfix is LDA, the new messages a deffered or refused,so postfix send 450 to sender ... >> But When I use dovecot (1.2.16) like LDA, postfix accept message (even there is no space), forward to dovecot, dovecot REFUSE the message and message is lost ! >> >> How can I solve this ? I don't want tu use quota and the disk was full, because of the other problem .... >> > > Are you using any plugins, like Sieve? > > Regards, > > Stephan. >-- Tato zprava byla prohledana na vyskyt viru a nebezpecneho obsahu antivirovym systemem MailScanner a zda se byt cista.