Article ID: 118530, created on Nov 9, 2013, last review on May 11, 2014

  • Applies to:
  • Plesk Automation

Symptoms

  1. When you send an email the error message is being received:

    <user1@example.com>: Message can't be delivered
    
  2. According to /usr/local/psa/var/log/maillog:

    postfix-local[17441]: handlers_stderr: Mail handler call failed. Error occured during execv(/usr/local/psa/handlers/hooks/spam):#012No such file or directory
    postfix-local[17442]: Error during 'spam' handler
    postfix-local[17441]: Unable to rename '/usr/local/psa/handlers/spool/messageCoD6o5' file: No such file or directory
    postfix-local[17441]: Unable to open message file: No such file or directory
    postfix/pipe[17440]: 0183B6279B: to=<user1@example.com>, relay=plesk_virtual, delay=0.52, delays=0.42/0.01/0/0.09, dsn=5.7.1, status=bounced (Message can't be delivered )
    

Cause

The issue is caused by missing /usr/local/psa/handlers/hooks/spam file on the Postfix mail server.

Resolution

  1. Download the psa-spamassassin package corresponding to your system:

  2. Extract psa-spamassassin package:

    ~#  rpm2cpio psa-spamassassin-11.1.15-cos5.build111121130.19.x86_64.rpm | cpio -idmv
    
  3. Copy spam handler from extracted package to your system:

    ~#  cp ./usr/local/psa/handlers/hooks/spam /usr/local/psa/handlers/hooks/
    

Search Words

spam No such file or directory

Message can't be delivered

e0aff7830fa22f92062ee4db78133079 caea8340e2d186a540518d08602aa065

Email subscription for changes to this article
Save as PDF