Solved

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

Posted on 2010-09-22
4
1,858 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
  • 2
  • 2
4 Comments
 
LVL 17

Accepted Solution

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

0
 

Author Comment

by:advz
Comment Utility
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
Comment Utility
Im not sure why your other servers are working with a > 50mb log. I would guess different configurations?
0
 

Author Comment

by:advz
Comment Utility
I will find it out.

Thanks and regards
Joerg
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Import PST to Exchange using Power Shell new-mailboximportrequest command, you can simply import the PST file into Exchange mailbox or archived. To know How to import PST into Exchange  2013 read the complete article.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…

762 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now