1 (edited by tuxtux 2011-11-16 03:02:13)

Topic: [SOLVED] Disable antispam antivirus

How to disable the antivirus and antispam iredmail?
I have iredOs 0.6 on CentOS 5.5
Mysql

There is a server anti-spam for that reason it is not necessary in the iredmail.
Thanks!!

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: [SOLVED] Disable antispam antivirus

Steps to disable them.

*) Disable anti-virus/spam in Postfix.

# postconf -e content-filter=''
# /etc/init.d/postfix reload

*) Disable related daemons:

# for srv in amavisd clamd freshclamd; do chkconfig --level 345 $srv off; /etc/init.d/$srv stop; done

That's all.

3 (edited by tuxtux 2011-11-16 14:18:00)

Re: [SOLVED] Disable antispam antivirus

ZhangHuangbin wrote:

Steps to disable them.

I have done as you say.
But the server rejects the messages sent to my domain.

Here I leave the log.
Thanks!!

[root@mail ~]# postconf -e content-filter=''
[root@mail ~]# /etc/init.d/postfix reload
Reloading postfix:                                         [  OK  ]
[root@mail ~]# for srv in amavisd clamd freshclam; do chkconfig --level 345 $srv off; /etc/init.d/$srv stop; done
Shutting down Mail Virus Scanner (amavisd):                [  OK  ]
Stopping Clam AntiVirus Daemon:                            [  OK  ]
Stopping freshclam:                                        [  OK  ]
[root@mail ~]# tail -f /var/log/maillog 
Nov 16 05:54:14 mail roundcube: [16-Nov-2011 05:54:14 -0600]: Successful login for carlos@yucamex.com (id 1) from 192.168.1.102 
Nov 16 05:54:53 mail postfix/postfix-script[2176]: refreshing the Postfix mail system
Nov 16 05:54:53 mail postfix/master[1955]: reload configuration /etc/postfix
Nov 16 05:57:06 mail postfix/smtpd[2220]: connect from mail.mydomain.com.mx[127.0.0.1]
Nov 16 05:57:06 mail postfix/smtpd[2220]: 552DF3808E: client=mail.mydomain.com.mx[127.0.0.1], sasl_method=LOGIN, sasl_username=carlos@yucamex.com
Nov 16 05:57:06 mail postfix/cleanup[2224]: 552DF3808E: message-id=<146ddf72bb103fdcdbc78acccf25fa90@127.0.0.1>
Nov 16 05:57:06 mail roundcube: [16-Nov-2011 05:57:06 -0600]: User carlos@yucamex.com [192.168.1.102]; Message for <www@mayamex.com.mx>; 250: 2.0.0 Ok: queued as 552DF3808E 
Nov 16 05:57:06 mail postfix/qmgr[2227]: 552DF3808E: from=<carlos@yucamex.com>, size=591, nrcpt=1 (queue active)
Nov 16 05:57:06 mail postfix/smtp[2228]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Nov 16 05:57:06 mail postfix/smtpd[2220]: disconnect from mail.mydomain.com.mx[127.0.0.1]
Nov 16 05:57:06 mail postfix/smtp[2228]: 552DF3808E: to=<www@mayamex.com.mx>, relay=none, delay=0.25, delays=0.19/0.06/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Nov 16 05:57:21 mail roundcube: [16-Nov-2011 05:57:21 -0600]: Successful login for www@mayamex.com.mx (id 2) from 192.168.1.102 

Nov 16 06:07:06 mail postfix/smtp[2315]: 552DF3808E: to=<www@mayamex.com.mx>, relay=none, delay=601, delays=601/0.03/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Nov 16 06:09:19 mail postfix/postfix-script[2406]: stopping the Postfix mail system
Nov 16 06:09:19 mail postfix/master[1955]: terminating on signal 15
Nov 16 06:10:41 mail postfix/postfix-script[1905]: warning: /var/spool/postfix/etc/resolv.conf and /etc/resolv.conf differ
Nov 16 06:10:42 mail postfix/postfix-script[1909]: starting the Postfix mail system
Nov 16 06:10:42 mail postfix/master[1910]: daemon started -- version 0.6.0, configuration /etc/postfix
Nov 16 06:10:43 mail policyd: starting policyd v1.82 
Nov 16 06:10:43 mail policyd: connecting to mysql database: 127.0.0.1 
Nov 16 12:10:43 mail policyd: connected.. 
Nov 16 06:10:45 mail pysieved[1970]: Listening on INADDR_ANY port 2000
Nov 16 06:12:18 mail postfix/smtpd[2072]: connect from mail.mydomain.com.mx[127.0.0.1]

4

Re: [SOLVED] Disable antispam antivirus

tuxtux wrote:

Nov 16 05:57:06 mail postfix/smtp[2228]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused

Postfix is still trying to invoke Amavisd-new for anti-spam/virus.
Please try a fully restart instead of reload:

# /etc/init.d/postfix restart

So sorry about my mistake.

5 (edited by tuxtux 2011-11-16 23:54:51)

Re: [SOLVED] Disable antispam antivirus

ZhangHuangbin wrote:

Please try a fully restart instead of reload:

# /etc/init.d/postfix restart

I restarted postfix, but I still rejecting emails.
Any ideas?
Thanks!

Nov 16 15:39:36 mail roundcube: [16-Nov-2011 15:39:36 -0600]: Successful login for carlos@yucamex.com (id 1) from 192.168.1.59 
Nov 16 15:43:04 mail postfix/postfix-script[2932]: refreshing the Postfix mail system
Nov 16 15:43:04 mail postfix/master[2833]: reload configuration /etc/postfix
Nov 16 15:43:39 mail postfix/postfix-script[3031]: stopping the Postfix mail system
Nov 16 15:43:39 mail postfix/master[2833]: terminating on signal 15
Nov 16 15:43:40 mail postfix/postfix-script[3086]: warning: /var/spool/postfix/etc/resolv.conf and /etc/resolv.conf differ
Nov 16 15:43:40 mail postfix/postfix-script[3090]: starting the Postfix mail system
Nov 16 15:43:40 mail postfix/master[3091]: daemon started -- version 0.6.0, configuration /etc/postfix
Nov 16 15:44:13 mail postfix/smtpd[3101]: connect from mail.mydomain.com.mx[127.0.0.1]
Nov 16 15:44:13 mail postfix/smtpd[3101]: 792DC38103: client=mail.mydomain.com.mx[127.0.0.1], sasl_method=LOGIN, sasl_username=carlos@yucamex.com
Nov 16 15:44:13 mail postfix/cleanup[3105]: 792DC38103: message-id=<da9017628b7e042aefd99effef9b41a6@127.0.0.1>
Nov 16 15:44:13 mail postfix/qmgr[3094]: 792DC38103: from=<carlos@yucamex.com>, size=588, nrcpt=1 (queue active)
Nov 16 15:44:13 mail roundcube: [16-Nov-2011 15:44:13 -0600]: User carlos@yucamex.com [192.168.1.59]; Message for <www@mayamex.com.mx>; 250: 2.0.0 Ok: queued as 792DC38103 
Nov 16 15:44:13 mail postfix/smtpd[3101]: disconnect from mail.mydomain.com.mx[127.0.0.1]
Nov 16 15:44:13 mail postfix/smtp[3109]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Nov 16 15:44:13 mail postfix/smtp[3109]: 792DC38103: to=<www@mayamex.com.mx>, relay=none, delay=0.12, delays=0.08/0.04/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Nov 16 15:44:28 mail roundcube: [16-Nov-2011 15:44:28 -0600]: Successful login for www@mayamex.com.mx (id 2) from 192.168.1.59 

6

Re: [SOLVED] Disable antispam antivirus

OMG, what a stupid typo error i made, i used '-' instead of '_'.
Please execute below commands to fix it:

# postconf -e content_filter=''
# /etc/init.d/postfix restart
# postqueue -f

So sorry about my mistake. sad

7 (edited by tuxtux 2011-11-17 10:54:06)

Re: [SOLVED] Disable antispam antivirus

ZhangHuangbin wrote:


# postconf -e content_filter=' '
# /etc/init.d/postfix reload
# for srv in amavisd clamd freshclam; do chkconfig --level 345 $srv off; /etc/init.d/$srv stop; done

it's works!!!!
You are a genius!

Thanks!!!

8

Re: [SOLVED] Disable antispam antivirus

I did the same, but still have the same in maillog status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)

I've changed /etc/postfix/main.cf
/etc/init.d/postfix reload
for srv in amavisd clamd freshclam; do chkconfig --level 345 $srv off; /etc/init.d/$srv stop; done

Where is possible problem?

9

Re: [SOLVED] Disable antispam antivirus

And whatif need to reactivate antispam-antivirus? Wich need to do?

10

Re: [SOLVED] Disable antispam antivirus

fabero wrote:

And whatif need to reactivate antispam-antivirus? Wich need to do?

Just enable what you disabled.

11

Re: [SOLVED] Disable antispam antivirus

Eh ok, my fault, but how to re-enable? Via command line with wich command or what else?