"SMTP Error: data not accepted" after PHP upgrade
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
"SMTP Error: data not accepted" after PHP upgrade
My mail server worked fine before I performe a server updating today.
Today I executed following command on my CentOS 7 server:
Then after about 20 minutes, I got some update, the ones I can remember are:
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.
Today I executed following command on my CentOS 7 server:
Code: Select all
# yum update -y
Then, when I login to my Joomla backend, I got following error message:PHP: 5.5.33 to 5.5.34
MariaDB: 5.5.44 to 5.5.47
Nginx: 1.9.13 to 1.9.15
I tried to send out test email with my Acymailing newsletter extension in Joomla, but failed. Got the same error message.SMTP Error: data not accepted
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.
Re: "SMTP Error: data not accepted" after PHP upgrade
Did you replace exim config file while update?
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: "SMTP Error: data not accepted" after PHP upgrade
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.
Re: "SMTP Error: data not accepted" after PHP upgrade
Check your exim config in /etc/exim/
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: "SMTP Error: data not accepted" after PHP upgrade
I checked that file, a lot of lines, I don't know how to find out what is wrong.
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: "SMTP Error: data not accepted" after PHP upgrade
I checked the log file: /var/run/exim/main.log and got following recent records:
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.
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.
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.
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: "SMTP Error: data not accepted" after PHP upgrade
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:
I ran that command and got following result:
Then I enter the folder /etc/sysconfig/ and tried to run freshclam, However, when I run this command, I got error :
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:
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!
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
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
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
I was not sure what I should change to, so I just tested my idea:
Code: Select all
# chown clam:clam clamav
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!