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 Mail Server
  • Search

"SMTP Error: data not accepted" after PHP upgrade

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1
baijianpeng
Posts: 301
Joined: Tue Dec 22, 2015 2:06 pm

"SMTP Error: data not accepted" after PHP upgrade
  • Quote

Post by baijianpeng » Mon Apr 25, 2016 12:32 pm

My mail server worked fine before I performe a server updating today.

Today I executed following command on my CentOS 7 server:

Code: Select all

# yum update -y
Then after about 20 minutes, I got some update, the ones I can remember are:
PHP: 5.5.33 to 5.5.34
MariaDB: 5.5.44 to 5.5.47
Nginx: 1.9.13 to 1.9.15
Then, when I login to my Joomla backend, I got following error message:
SMTP Error: data not accepted
I tried to send out test email with my Acymailing newsletter extension in Joomla, but failed. Got the same error message.

What is wrong? I just performed a server update, why the SMTP mail server was broken?

Could you please help me to fix this?

Thank you.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: "SMTP Error: data not accepted" after PHP upgrade
  • Quote

Post by skurudo » Mon Apr 25, 2016 1:53 pm

Did you replace exim config file while update?
Top

baijianpeng
Posts: 301
Joined: Tue Dec 22, 2015 2:06 pm

Re: "SMTP Error: data not accepted" after PHP upgrade
  • Quote

Post by baijianpeng » Mon Apr 25, 2016 1:56 pm

That was an "automatic update", I did not change anything manually except input the command "yum update -y" and hit Enter. Then I waited until it was finished and returned to Bash prompt. Then I just logout my server and close the terminal window.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: "SMTP Error: data not accepted" after PHP upgrade
  • Quote

Post by skurudo » Mon Apr 25, 2016 1:59 pm

Check your exim config in /etc/exim/
Top

baijianpeng
Posts: 301
Joined: Tue Dec 22, 2015 2:06 pm

Re: "SMTP Error: data not accepted" after PHP upgrade
  • Quote

Post by baijianpeng » Mon Apr 25, 2016 10:23 pm

I checked that file, a lot of lines, I don't know how to find out what is wrong.
Top

baijianpeng
Posts: 301
Joined: Tue Dec 22, 2015 2:06 pm

Re: "SMTP Error: data not accepted" after PHP upgrade
  • Quote

Post by baijianpeng » Mon Apr 25, 2016 10:51 pm

I checked the log file: /var/run/exim/main.log and got following recent records:

Code: Select all

[root@localhost exim]# tail main.log
2016-04-26 06:41:49 1aumS1-0002C4-EM Message is frozen
2016-04-26 06:41:49 1auUt5-0003td-Rv Message is frozen
2016-04-26 06:41:49 1auMSV-0006ST-Gw Message is frozen
2016-04-26 06:41:49 1aulkF-0002Mi-Nx Message is frozen
2016-04-26 06:41:49 End queue run: pid=876
2016-04-26 06:44:50 1aupFJ-0000jk-Vz malware acl condition: clamd: unable to connect to UNIX socket (/var/run/clamav/clamd.sock): No such file or directory
2016-04-26 06:44:50 1aupFJ-0000jk-Vz H=localhost (www.joomlagate.com) [127.0.0.1] F=<[email protected]> A=dovecot_login:[email protected] temporarily rejected after DATA
2016-04-26 06:45:33 WARNING: purging the environment.
 Suggested action: use keep_environment and add_environment.
I am sure I had already created the folder /var/run/clamav and granted it proper ownership (clam:mail).

However, after I restart clamd , and check that folder again, it is empty.

Something must be wrong, but I don't know how to fix it.

Hope someone here will help me to solve this.

Thank you.
Top

baijianpeng
Posts: 301
Joined: Tue Dec 22, 2015 2:06 pm

Re: "SMTP Error: data not accepted" after PHP upgrade
  • Quote

Post by baijianpeng » Mon Apr 25, 2016 11:42 pm

Ok, I am so lucky to solved this issue myself. Though I know very few about CentOS or ClamAV.

When I check the log file, I noticed that my clamav virus database has not been updated for a long time. So I want to update it. But I don't know how to manually update it. After Googled a little, I found a post about how to get the config file list:

Code: Select all

rpm -ql --configfiles clamav-update
I ran that command and got following result:

Code: Select all

[root@localhost clamav]# rpm -ql --configfiles clamav-update
/etc/cron.d/clamav-update
/etc/freshclam.conf
/etc/logrotate.d/clamav-update
/etc/sysconfig/freshclam
Then I enter the folder /etc/sysconfig/ and tried to run freshclam, However, when I run this command, I got error :

Code: Select all

[root@localhost sysconfig]# freshclam
ERROR: Can't create temporary directory /var/lib/clamav/clamav-dcb1e9e143661f9cbc31eb1ee3b78c51.tmp
Hint: The database directory must be writable for UID 1001 or GID 1001
Well, I guess maybe the folder permission is not correct. So I checked the ownership of the folder /var/lib/clamav, that is "clamupdate:clamupdate".

I was not sure what I should change to, so I just tested my idea:

Code: Select all

# chown clam:clam clamav
After this ownership change, I ran again the "freshclam" command. This time the ClamAV update process started! Wow!

When the virus database updating finished, I checked my Joomla backend, there is no more "SMTP error" message. I tried to send out test email with AcyMailing, it also succedded.

Great!
Top


Post Reply
  • Print view

7 posts • Page 1 of 1

Return to “Mail Server”



  • 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