[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Postifx SMTP server errors

Posted on 2008-02-08
8
Medium Priority
?
263 Views
Last Modified: 2013-12-09
I have a Debian server with Spam Assassin 3.1.7 and Postfix v. 2.3.8 .. I started getting Postfix SMTP server error - Insufficient system storage this past couple days. I have 70M of availble space. Mail is flowing but if I get this error, I have delete e-mails with huge attachments for mail to flow again. Since I'm a newbie at this, what files can I safely delete? Any temp files? Cached? Any advise is appreciated.
0
Comment
Question by:davidndallas
  • 4
  • 4
8 Comments
 
LVL 6

Expert Comment

by:Syngin9
ID: 20851374
Hello,

Your server may be set up so that at least your /var drive is in its own partition maybe?  This is normally where spooled and system account email is kept and that partition being full might be the reason things are locking up.

Type the following to see a list of partitions and how much free space is on each:

df -h

Any number of things could be causing your disk to fill up.  Running du can help you to localize where the directory that is the primary culprit.  

Run the following when in /var or /home and watch the output:

du -h

0
 
LVL 6

Expert Comment

by:Syngin9
ID: 20851395
One thing I forgot to ask, is this just an SMTP gateway or does it house user mail boxes?  If its housing user mailboxes, what is it using to support them? (ie. are they system accounts, virtual accounts (like with Vpopmail) etc.)
0
 

Author Comment

by:davidndallas
ID: 20851598
Thanks for the quick reply .. I ran du -h on the /var drive and saw:
9.4 G ./lib
9.3 G ./lib/amavis
8.3 G ./lib/amavis/virusmails
Can I delete the contents on the virusmails?

Thiis box is a gateway .. no user mailboxes.
0
Will You Be GDPR Compliant by 5/28/2018?

GDPR? That's a regulation for the European Union. But, if you collect data from customers or employees within the EU, then you need to know about GDPR and make sure your organization is compliant by May 2018. Check out our preparation checklist to make sure you're on track today!

 
LVL 6

Accepted Solution

by:
Syngin9 earned 1000 total points
ID: 20851787
I haven't used Amavis before but its serves an identical purpose to Qmail-Scanner which I use all the time on my Debian Mail servers (ie. adds the ability to tie multiple mail scanners into the MTA queue) and I actually have a cron job that empties out my quarantine folder once a week.

To be on the safe side though, have a look for the following line in /etc/amavis/amavisd.conf:

$QUARANTINEDIR = '/var/lib/amavis/virusmails';

It should exist and, if it does, you should safely be able to empty out the contents of that directory (don't remove the directory itself though)  If for some reason, the directory has too many files in it to remove with the rm command, you may have to actually remove the directory to get rid of them all.  Just remember to make a note of the ownership and permissions on the directory so you can recreate it afterwards.
0
 

Author Comment

by:davidndallas
ID: 20852543
I used the rm command and get an Argument list too long error, is there any other command besides deleting and recreating the folder? Just curious.
0
 
LVL 6

Expert Comment

by:Syngin9
ID: 20852594
Yes I received that too if I waited to long to empty it out.

It should be safe to remove the virusmails directory as long as you recreate it with the exact same permissions and ownership.

You might want to shut down Postfix while you do this.
0
 

Author Comment

by:davidndallas
ID: 20852654
Ok .. I used the following command and it works like a charm.

find . -name 'virus-*' | xargs rm

All the files started with either "virus" or "spam".

Thank you for your help.
0
 

Author Closing Comment

by:davidndallas
ID: 31429208
Thank you again.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Among the most obnoxious of Exchange errors is error 1216 – Attached Database Mismatch error of the Jet Database Engine. When faced with this error, users may have to suffer from mailbox inaccessibility and in worst situations, permanent data loss.
There’s hardly a doubt that Business Communication is indispensable for both enterprises and small businesses, and if there is an email system outage owing to Exchange server failure, it definitely results in loss of productivity.
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
Suggested Courses
Course of the Month10 days, 22 hours left to enroll

612 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