Solved

postfix & dovecot (temporary failure. Command output: Failed to write to log file)

Posted on 2010-09-22
4
1,926 Views
Last Modified: 2013-12-06
Dear all,

I have a problem with our mail gateway. Since last night the postfix queue will not be flushed after the email is delivered to the dovecot mailbox. The emails are arriving but will not be deleted from the queue. The problem is that this emails are delivered each time the queue is sending.

With postqueue -p command I see this error message:
(temporary failure. Command output: Failed to write to log file)

In the maillog i see this error:
relay=local, delay=0.66, delays=0.14/0/0/0.51, dsn=4.3.0, status=deferred (temporary failure. Command output: Failed to write to log file)

if I check the log file for dovecot "grep "This is Dovecot's" /var/log/*" I get this informations:
/var/log/maillog:Sep 22 08:30:55 mail dovecot: This is Dovecot's info log
/var/log/maillog:Sep 22 08:30:55 mail dovecot: This is Dovecot's warning log
/var/log/maillog:Sep 22 08:30:55 mail dovecot: This is Dovecot's error log
/var/log/maillog:Sep 22 08:30:55 mail dovecot: Fatal: This is Dovecot's fatal log

So for me just the maillog is the log file in use. But I can't see there a problem.

Many thanks in advanced.
Joerg
0
Comment
Question by:advz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 17

Accepted Solution

by:
owensleftfoot earned 500 total points
ID: 33732267
Have a look at http://wiki.dovecot.org/LDA#logging especially the part about Postfix's
mailbox_size_limit.

0
 

Author Comment

by:advz
ID: 33732405
Dear owensleftfoot,

many thanks for the fast and specially correct answer.
I set the mailbox size higher and now it works again.

But I don't understand the combination! This is the statement from the Dovecot page:
Note that Postfix's mailbox_size_limit setting applies to all files that are written to. So if you have a limit of 50 MB, deliver can't write to log files larger than 50 MB and you'll start getting temporary failures

Does it mean, if the maillog is bigger as 50MB I get this kind of failures?
I have several mail gateways or servers with a bigger size of 50MB of the maillog.
Do you have maybe a link with a description as well.

Again many thanks and kind regards
Joerg
0
 
LVL 17

Expert Comment

by:owensleftfoot
ID: 33734926
Im not sure why your other servers are working with a > 50mb log. I would guess different configurations?
0
 

Author Comment

by:advz
ID: 33734962
I will find it out.

Thanks and regards
Joerg
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Upgraded from Debian 7 to 8.7 and got black screen 20 99
Linux MD5 Hash 7 66
SSH in linux 9 69
SMTP Port 25, 465, 587 or 2525 – how to choose the right SMTP Port? 5 61
Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question