You are on page 1of 7

Subject: qmail receive issue untill virus scan was turned off

Posted by zx9_r on Fri, 29 Feb 2008 15:48:25 GMT


View Forum Message <> Reply to Message
The other day I checked the enable virus scan under server mail settings. Last night the
server stopped accepting e-mail for the local domain and refused connections from clients to
send mail.

I tired restarting qmail and it did not help. I unchecked enable virus scan and was able to send
and the outstanding emails were received from the backup mail server. It seems back to
normal now.

Here is the message in the /var/log/lxadmin/smtp when a user attempted to send e-mail. I'm
not sure if its even is related to enable virus scan mail setting but it did fix the issue.

CHKUSER relaying rcpt: from <user@domain.com:user@domain.com:> remote <[local LAN


IP]:unknown:external IP> rcpt <user@externaldomain.COM> : client allowed to relay
connect(): No such file or directory
qmail-smtpd: qq soft reject (mail server temporarily rejected message (#4.3.0)):
MAILFROM:<user@domain.com> RCPTTO:user@externaldomain.com

Thanks

Subject: Re: qmail receive issue untill virus scan was turned off
Posted by Lxhelp on Fri, 29 Feb 2008 15:51:04 GMT
View Forum Message <> Reply to Message
Clamd is not running. We will add a watchdog for clamd too.

service clamav restart

Thanks.

On Fri, Feb 29, 2008 at 03:48:29PM -0000, Sam wrote:


>
>
> The other day I checked the enable virus scan under server mail settings. Last night the
server stopped accepting e-mail for the local domain and refused connections from clients to
send mail.
>

Page 1 of 7 ---- Generated from LxCenter Forum by FUDforum 3.0.1


Subject: Re: qmail receive issue untill virus scan was turned off
Posted by zx9_r on Fri, 29 Feb 2008 15:55:52 GMT
View Forum Message <> Reply to Message
Thanks. Looks like the clamav is not in the init scripts

service clamav restart


clamav: unrecognized service
[root@ns0 ~]# ls -l /etc/init.d/clam*
-rw-r--r-- 1 root root 1540 Feb 27 23:23 /etc/init.d/clamav
[root@ns0 ~]# rpm -qa |grep clamav
clamav-toaster-0.92.1-1.3.17

Subject: Re: qmail receive issue untill virus scan was turned off
Posted by Lxhelp on Fri, 29 Feb 2008 15:58:44 GMT
View Forum Message <> Reply to Message

chmod 755 /etc/init.d/clamav


serivce clamav restart

Thanks.

On Fri, Feb 29, 2008 at 03:55:52PM -0000, Sam wrote:


>
>
> Thanks. Looks like the clamav is not in the init scripts
>
> service clamav restart
> clamav: unrecognized service
> [mailto:root@ns0 ~]# ls -l /etc/init.d/clam*
> -rw-r--r-- 1 root root 1540 Feb 27 23:23 /etc/init.d/clamav
> [mailto:root@ns0 ~]# rpm -qa |grep clamav
> clamav-toaster-0.92.1-1.3.17

Subject: Re: qmail receive issue untill virus scan was turned off
Posted by Lxhelp on Fri, 29 Feb 2008 15:59:15 GMT
View Forum Message <> Reply to Message

Page 2 of 7 ---- Generated from LxCenter Forum by FUDforum 3.0.1


Please update lxadmin to the latest version, and if you enable now, it should just work.

Thanks.

On Fri, Feb 29, 2008 at 09:42:29PM +0530, Lxhelp wrote:


>
> chmod 755 /etc/init.d/clamav
> serivce clamav restart
>

Subject: Re: qmail receive issue untill virus scan was turned off
Posted by zx9_r on Fri, 29 Feb 2008 16:01:01 GMT
View Forum Message <> Reply to Message
lxadmin shows I have the latest version

Update for 5.0.4762


Current Version: 5.0.4762
Latest Version: 5.0.4762

Subject: Re: qmail receive issue untill virus scan was turned off
Posted by Lxhelp on Fri, 29 Feb 2008 16:05:35 GMT
View Forum Message <> Reply to Message
If you enable now, it should set the permissions properly.

also, please post this:

chkconfig clamav --list

Thanks.

On Fri, Feb 29, 2008 at 04:01:01PM -0000, Sam wrote:


>
>
> lxadmin shows I have the latest version
>

Page 3 of 7 ---- Generated from LxCenter Forum by FUDforum 3.0.1


> Update for 5.0.4762
> Current Version: 5.0.4762
> Latest Version: 5.0.4762

Subject: Re: qmail receive issue untill virus scan was turned off
Posted by zx9_r on Fri, 29 Feb 2008 16:09:25 GMT
View Forum Message <> Reply to Message
still cant update since it says I have the latest version. Init script not there

[root@ns0 ~]# ls -l /etc/init.d/cla*


-rw-r--r-- 1 root root 1540 Feb 27 23:23 /etc/init.d/clamav
[root@ns0 ~]# service clamav restart
clamav: unrecognized service

[root@ns0 ~]# chkconfig clamav --list


clamav 0:off 1:off 2:on 3:on 4:on 5:on 6:off

Subject: Re: qmail receive issue untill virus scan was turned off
Posted by Lxhelp on Fri, 29 Feb 2008 16:13:44 GMT
View Forum Message <> Reply to Message
Just chmod it for now.

chmod 755 /etc/init.d/clamav


service clamav restart

On Fri, Feb 29, 2008 at 04:09:25PM -0000, Sam wrote:


>
>
> still cant update since it says I have the latest version. Init script not there
>

Subject: Re: qmail receive issue untill virus scan was turned off

Page 4 of 7 ---- Generated from LxCenter Forum by FUDforum 3.0.1


Posted by zx9_r on Fri, 29 Feb 2008 16:17:20 GMT
View Forum Message <> Reply to Message
thanks

Subject: Re: qmail receive issue untill virus scan was turned off
Posted by zx9_r on Fri, 29 Feb 2008 16:22:04 GMT
View Forum Message <> Reply to Message
I just restarted the clamav service and checked virus scan and the mails are still being
rejected. I will just turn it off for now.

thanks

Subject: Re: qmail receive issue untill virus scan was turned off
Posted by Lxhelp on Fri, 29 Feb 2008 16:26:15 GMT
View Forum Message <> Reply to Message

ps ax | grep clamd

Possible that clamd is not running. Is the error the same?

Thanks.

On Fri, Feb 29, 2008 at 04:22:05PM -0000, Sam wrote:


>
>
> I just restarted the clamav service and checked virus scan and the mails are still being
rejected. I will just turn it off for now.
>
> thanks

Subject: Re: qmail receive issue untill virus scan was turned off
Posted by zx9_r on Fri, 29 Feb 2008 16:27:48 GMT
View Forum Message <> Reply to Message
yes same error in /var/log/lxadmin/smtp.log

Page 5 of 7 ---- Generated from LxCenter Forum by FUDforum 3.0.1


[root@ns0 ~]# ps ax|grep clamd
17072 pts/0 S 0:02 /usr/sbin/clamd
17368 pts/0 S+ 0:00 grep clamd

Subject: Re: qmail receive issue untill virus scan was turned off
Posted by zx9_r on Sun, 02 Mar 2008 07:08:34 GMT
View Forum Message <> Reply to Message
I checked the smtp_lxa and saw that simscan was added to env when virus scan is enabled

I tried to run simscan and I get a segmentation fault


/var/qmail/bin/simscan
Segmentation fault
[root@ns0 xinetd.d]# rpm -qf /var/qmail/bin/simscan
simscan-toaster-1.3.1-1.3.6

Subject: Re: qmail receive issue untill virus scan was turned off
Posted by Lxhelp on Sun, 02 Mar 2008 07:13:52 GMT
View Forum Message <> Reply to Message
Simscan only be run by qmail-smtpd. You need to set the input/output etc.

Thanks.

Subject: Re: qmail receive issue untill virus scan was turned off
Posted by Silence on Sun, 09 Mar 2008 20:51:18 GMT
View Forum Message <> Reply to Message
Hello i have a similar problem, i enabled clamav but when is saw the high mem usage i
disabled it, now i can receive mails, but all incoming mails are refused:

Mar 9 21:35:15 core qmail: 1205094915.409422 new msg 28019824


Mar 9 21:35:15 core qmail: 1205094915.409468 info msg 28019824: bytes 1939 from
<example@gmail.com> qp 32688 uid 0
Mar 9 21:35:15 core qmail: 1205094915.415522 starting delivery 5: msg 28019824 to remote
account@example.com

Page 6 of 7 ---- Generated from LxCenter Forum by FUDforum 3.0.1


Mar 9 21:35:15 core qmail: 1205094915.415556 status: local 0/10 remote 1/60
Mar 9 21:35:15 core qmail: 1205094915.520054 delivery 5: failure:
Sorry._Although_I'm_listed_as_a_best-preference_MX_or_A_for_
that_host,/it_isn't_in_my_control/locals_file,_so_I_don't_tr eat_it_as_local._(#5.4.6)/
Mar 9 21:35:15 core qmail: 1205094915.520198 status: local 0/10 remote 0/60
Mar 9 21:35:15 core qmail: 1205094915.524210 bounce msg 28019824 qp 32690
Mar 9 21:35:15 core qmail: 1205094915.524272 end msg 28019824
Mar 9 21:35:15 core qmail: 1205094915.524391 new msg 28019825
Mar 9 21:35:15 core qmail: 1205094915.524459 info msg 28019825: bytes 2585 from <> qp
32691 uid 206
Mar 9 21:35:15 core qmail: 1205094915.528921 starting delivery 6: msg 28019825 to remote
example@gmail.com
Mar 9 21:35:15 core qmail: 1205094915.528940 status: local 0/10 remote 1/60
Mar 9 21:35:16 core qmail: 1205094916.206488 delivery 6: success:
User_and_password_not_set,_continuing_without_authentication ./ <example@gmail.com>
_72.14.221.114_accepted_message./Remote_host_said:_250_2.0.0
_OK_1205094916_d4si7170839fga.2/
Mar 9 21:35:16 core qmail: 1205094916.206602 status: local 0/10 remote 0/60
Mar 9 21:35:16 core qmail: 1205094916.206618 end msg 28019825

Any idea?, Thanks.

Subject: Re: qmail receive issue untill virus scan was turned off
Posted by Silence on Sun, 09 Mar 2008 21:47:02 GMT
View Forum Message <> Reply to Message
ok, after upcp, fixmail and a few restarts is working again, thanks anyways

Page 7 of 7 ---- Generated from LxCenter Forum by FUDforum 3.0.1

You might also like