Postfix Illegal seek / queue file write mail server error and solution
Most mail servers are tight on resources. The Postfix system is designed to run within a finite memory budget. These limits are imposed on each and every user to avoid resource exhaustion. The idea is pretty simple, keep mail server running under conditions of stress, without making the problem worse.
However some time user sends large attachment and these are rejected by Postfix. The message_size_limit sets the maximal size of a postfix queue file, including envelope information (sender, recipient, etc.). The default is 10240000 bytes. You may see an error message in maillog file:
Sep 21 17:03:53 p5smtp22 postfix/postdrop[528]: warning: uid=2012: Illegal seek Sep 21 12:03:53 p5smtp22 postfix/sendmail[527]: fatal: reports(2012): queue file write error
Postfix version 2.3 or olders reports "illegal seek" instead of "file too large" error. There are two ways to fix this problem:
- First upgrade Postfix to latest stable version such as 2.5
- Set message_size_limit parameter
Set message_size_limit
Open /etc/postfix/main.cf config file:
# vi /etc/postfix/main.cf
Set message_size_limit to 20971520 bytes (20 megabytes):
message_size_limit = 20971520
Restart postfix mail server:
# /etc/init.d/postfix restart
Want to stay up to date with the latest Linux tips, news and announcements? Subscribe to our free e-mail newsletter or full RSS feed to get all updates.
You can Email this page to a friend.
You may also be interested in...
- Sending email or mail with attachment from command or shell prompt
- Search Linux / UNIX log files smartly for an alert or warning error
- Linux Illegal Codecs and adoption problem
- VSFTPD cap_set_proc and dead but subsys locked errors and solution
- Shell scripting: Write message to a syslog / log file
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: mail_servers, postfix_message_size_limit, postfix_send_large_email_attachments, resource_exhaustion ~ Last updated on: September 27, 2007



Recent Comments
Today ~ 2 Comments
Today ~ 37 Comments
Today ~ 1 Comment
Yesterday ~ 12 Comments
Yesterday ~ 2 Comments