amavis issues

Hi,

I've noticed that Amavis can create too many files in /var/lib/amavis/tmp and /var/lib/amavis/virusmails ....

If this is the case you'll see messages like :

Apr 8 13:24:05 youserver /usr/sbin/amavisd-new[5539]: (05539-01) TROUBLE in process_request: Can't create directory /var/lib/amavis/tmp/amavis-20080408T132405-05539: Too many links at /usr/sbin/amavisd-new line 4032, line 4.

This indicates (no surprise) that you've got a directory with too many entries in it (or you've run out of inodes (unlikely)).

The solution is easy enough...

find /var/lib/amavis/tmp -type f -name '*spamassassin*' -print | xargs rm -Rf
find /var/lib/amavis/virusmails -type f '*.gz' | xargs rm -Rf

(Or change your config files to not store the quarantined files)

(I have a feeling the tmp/.spamassassin* files are erronous, and should be cleaned up by SpamAssassin)

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
We don't take kindly to automated nonsensible adverts around here.