amavis-user March 2012 archive
Main Archive Page > Month Archives  > amavis-user archives
amavis-user: Can't create file /var/virusmails

Can't create file /var/virusmails

From: Justin T. Stear <jtstear_at_nospam>
Date: Thu Mar 08 2012 - 21:31:49 GMT
To: <>

Hello all,

My maill queue keeps growing and it won't stop. When I check mailq all
my messages say

 (host[] said: 451 4.5.0 Error in processing,
id=09103-03, quar+notif FAILED: temporarily unable to quarantine: 451
4.5.0 Local delivery(1) to /var/virusemails failed: Can't create file
/var/virusemails: Permission denied at (eval 85) line 191., id=09103-03
at /usr/sbin/amavisd line 12586. (in reply to end of DATA command))


This was working just fine yesterday and the 6 months prior to this

I do have have a /var/virusmails directory and I also have

chown -R amavis:amavis /var/virusmails as well as chmod -R 0750


#Here is line 12584-12589 of /usr/sbin/amavisd

    } elsif ($n_smtp_resp =~ /^4/) {


      die "temporarily unable to quarantine: $n_smtp_resp";

    } else { # abort if quarantining not successful


      die "Can't quarantine: $n_smtp_resp";


Sorry if this is a really simple problem, I'm just not very experienced
with Linux.

Thank you,
Justin Stear


***Privacy Statement*** This message and/or attached documents may contain
privileged/confidential information and is intended for use by the intended
recipient only. If you are not the intended recipient indicated in this message
(or responsible for delivery of the message to such person), you may not
transmit, copy, disclose, store, or utilize this communication in any manner.
If you received this message in error, please notify the sender immediately
and permanently delete this message from your computer. If you or your employer
does not consent to internet e-mail messages of this kind, please notify the
sender immediately. The views, opinions, conclusions, and other information
expressed in this message are not given or endorsed by Maurer-Stutz, Inc. unless
it’s related to official business.