Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

smtp 451 local error fix..

General questions about VestaCP
Post Reply
  • Print view
Advanced search
1 post • Page 1 of 1
murdocklawless
Posts: 17
Joined: Mon Feb 19, 2018 1:13 pm

Os: Ubuntu 15x
Web: nginx + php-fpm
smtp 451 local error fix..
  • Quote

Post by murdocklawless » Sat Jan 04, 2020 11:59 am

I was getting smtp 451 error while trying to send mails. I checked exim4 logs and I saw clamav is trying to reach the directory /run/clamav and report that couldn't find the folder or sometimes reach the folder but couldn't read file clamd.ctl because of the permissions. when I checked status of clamav-daemon I saw it stopped. it seems like coudn't create the directory /run/clamav. when clamav-daemon is starting /run/clamav directory is beeing recreating again but because of folder existing clamav-daemon returns with an error and saying can not create folder and disables itself.

I found clamav-daemon service conf file in /etc/systemd/system/clamav-daemon.service.d and edit the file extend.conf and add this fist line after the [Service] ;

ExecStartPre=-/bin/rm -rf /run/clamav

then edit the last line like this ;

ExecStartPre=/bin/chown clamav:clamav /run/clamav

by doing this, in the first line when clamav-daemon starts first it deletes the /run/clamav directory so we are getting rid off error which clamav-daemon is saying can not create folder. editing third line is for the permission error.

after you save the extend.conf stop the clamav and start again ;

service clamav-daemon stop

and then;

service clamav-daemon start

check the status of clamav after starting for the errors;

service clamav-daemon status

that is the way how I get rid off the smtp 451 error.
Top


Post Reply
  • Print view
1 post • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password