Page 1 of 1

Cannot receive/forward mail after uninstalling ClamAV

Posted: Wed Feb 19, 2014 5:38 am
by sman591
Upon tying to send email to a forwarded address (setup with Vesta), Gmail is reporting the email is being delayed.

Technical details of temporary failure:
Google tried to deliver your message, but it was rejected by the server for the recipient domain mydomain.com by mail.mydomain.com. [123.456.789.012].

The error that the other server returned was:
451 Temporary local problem - please try later

I'm not using the DNS provided by Vesta (and therefore don't have it setup), but I have the same records hosted on CloudFlare pointing to the server. Any ideas?

Solved 2/21/14

Original problem: In /etc/exim4/exim4.conf.template, I changed "CLAMD = yes" to "CLAMD = no".

Resolution: Instead of changing "yes" to "no", comment out the entire "CLAMD = yes" (so it reads "#CLAMD = yes")

Re: Cannot receive/forward mail

Posted: Wed Feb 19, 2014 10:13 pm
by skid
Check the exim log for more details
File location on RHEL/Centos is /var/log/exim/main.log
File location on Debian/Ubuntu is /var/log/exim4/main.log

Re: Cannot receive/forward mail

Posted: Thu Feb 20, 2014 1:25 am
by sman591
Looking at the log (/var/log/exim4/mainlog), I see it noted:

Code: Select all

2014-02-19 00:38:32 1WFzrc-0008J0-C0 H=mail-qg0-f42.google.com [209.85.192.42] F=<[email protected]> temporarily rejected after DATA
I must've missed that when trying to figure out the error last night. However, the "DATA" part of this does ring a bell.

After some more Googling, I went to /etc/exim4/exim4.conf.template and commented out "acl_smtp_data", which then brought everything back to life... correlation between "acl_smtp_data and the "DATA" note in the log? I think so.

(further diagnosis)

After looking at that template file, I see that "acl_check_data" calls for "acl_check_data", which checks CLAMD and SPAMASSASSIN. I installed both of these in the beginning, but have since uninstalled CLAMD as I don't have enough free RAM. I'm thinking one of these two services HAS to be the cause of this error...

I set "CLAMD = no" at the top of the template since I uninstalled it, is that not enough? Is there any way to better debug this?

Re: Cannot receive/forward mail

Posted: Thu Feb 20, 2014 10:25 am
by skid
Comment the whole line and restart the exim4

Code: Select all

#CLAMD =  yes
Setting it to no doesn't disable it.

Re: Cannot receive/forward mail

Posted: Fri Feb 21, 2014 5:14 am
by sman591
Ah, that worked! Thanks.

Re: Cannot receive/forward mail after uninstalling ClamAV

Posted: Mon Oct 13, 2014 10:44 pm
by lolbrol
I had a similar problem. ClamAV stops often with working and I can't restart it. A very negative side effect is that I can't receive mails. I disabled the clamav scan it seems to work.

Re: Cannot receive/forward mail after uninstalling ClamAV

Posted: Mon Nov 17, 2014 7:04 pm
by Gordon55M
Same thing here; I have a system light on RAM as well and I stopped getting emails randomly. Using:

nano /etc/exim4/exim4.conf.template

#CLAMD = yes

Closed out and restarted Exim4 and I got my inbox working again.