Re: [CentOS] Anti Virus and Anti Spam

2008-09-01 Thread Eucke

horas simalango wrote:

I am using sendmail as MTA, and I am looking for free anti virus.
About the milter, where can I download it?

Thank you

Horasima


I don't think all of this is available via the the conventional centos 
mirrors but I'd bet they're on Dag's as well as a few others.  find one 
you trust. 

I am pasting the following from this website  
http://www.be4mind.com/?q=node/190
I gave it a once over and it looks fairly complete.  This write includes 
adding greylisting as well.



PLEASE COPY CONFIGURATION FILE OPTIONS FROM THE ATTACHED DOCUMENT 
(NEWLINES PROBLEMS IN HTML) OTHERWISE SOMETHING COULD GO WRONG 
(EXPECIALLY WITH SENDMAIL).


Follow these steps to try stopping sPaMmErs :)

1. CONFIGURING YUM REPOSITORIES
[EMAIL PROTECTED] ~]# wget http://centos.karan.org/kbsingh-CentOS-Extras.repo
[EMAIL PROTECTED] ~]# wget http://centos.karan.org/kbsingh-CentOS-Misc.repo
[EMAIL PROTECTED] ~]# mv *.repo /etc/yum.repos.d/
[EMAIL PROTECTED] ~]# rpm --import 
http://centos.karan.org/RPM-GPG-KEY-karan.org.txt
[EMAIL PROTECTED] ~]# wget 
http://dag.wieers.com/packages/rpmforge-release/rpmforge-release-0.3.6-1.el4.rf.i386.rpm

[EMAIL PROTECTED] ~]# rpm -ivh rpmforge-release-0.3.6-1.el4.rf.i386.rpm

2. INSTALLING REQUIRED PACKAGES
#FROM kbsingh
[EMAIL PROTECTED] ~]# yum install milter-greylist spamassassin 
spamass-milter pyzor


#FROM rpmforge
[EMAIL PROTECTED] ~]# yum install clamd.i386
Installed: clamd.i386 0:0.90.3-1.el4.rf
Dependency Installed: clamav.i386 0:0.90.3-1.el4.rf clamav-db.i386 
0:0.90.3-1.el4.rf

Complete!
[EMAIL PROTECTED] mail]# yum install clamav-milter.i386
Installed: clamav-milter.i386 0:0.90.3-1.el4.rf
Complete!

3. SENDMAIL CONFIGURATION
-Backup your sendmail config files and edit sendmail.mc:
[EMAIL PROTECTED] ~]# cd /etc/mail
[EMAIL PROTECTED] mail]# cp sendmail.mc sendmail.mc.orig
[EMAIL PROTECTED] mail]# mv sendmail.cf sendmail.cf.orig

-Add the following line just before the two MAILER lines:
[EMAIL PROTECTED] mail]# vi sendmail.mc

[...]
dnl #
dnl # ANTISPAM/VIRUS AND GREYLIST AND DNSBL
dnl #
FEATURE(`dnsbl',`relays.ordb.org')dnl
FEATURE(`dnsbl',`list.dsbl.org')dnl
FEATURE(`dnsbl',`sbl-xbl.spamhaus.org')dnl
INPUT_MAIL_FILTER(`greylist',`S=local:/var/lib/milter-greylist/run/milter-greylist.sock')
define(`confMILTER_MACROS_CONNECT', `j, {if_addr}')
define(`confMILTER_MACROS_HELO', `{verify}, {cert_subject}')
define(`confMILTER_MACROS_ENVFROM', `i, {auth_authen}')
INPUT_MAIL_FILTER(`spamassassin', 
`S=local:/var/run/spamass-milter/spamass-milter.sock, 
F=,T=C:15m;S:4m;R:4m;E:10m')dnl
INPUT_MAIL_FILTER(`clamav', `S=local:/var/clamav/clmilter.socket, F=T, 
T=S:4m;R:4m')

dnl #
MAILER(smtp)dnl
MAILER(procmail)dnl

-Compile sendmail.mc:
[EMAIL PROTECTED] mail]# m4 sendmail.mc  sendmail.cf

4. CONFIGURE SPAMASSASIN
-There's a nice spamassasin configurator at:
http://www.yrex.com/spam/spamconfig.php

-Create your config file and put it in /etc/mail/spamassassin/local.cf
[EMAIL PROTECTED] mail]# cp /etc/mail/spamassassin/local.cf 
/etc/mail/spamassassin/local.cf.orig

[EMAIL PROTECTED] mail]# vi /etc/mail/spamassassin/local.cf
-
# SpamAssassin config file for version 3.x
# NOTE: NOT COMPATIBLE WITH VERSIONS 2.5 or 2.6
# See http://www.yrex.com/spam/spamconfig25.php for earlier versions
# Generated by http://www.yrex.com/spam/spamconfig.php (version 1.50)

# How many hits before a message is considered spam.
required_score 3.0

# Change the subject of suspected spam
rewrite_header subject *SPAM*

# Encapsulate spam in an attachment (0=no, 1=yes, 2=safe)
report_safe 1

# Enable the Bayes system
use_bayes 1

# Enable Bayes auto-learning
bayes_auto_learn 1

# Enable or disable network checks
skip_rbl_checks 0
use_razor2 1
use_pyzor 1

# Mail using locales used in these country codes will not be marked
# as being possibly spam in a foreign language.
ok_locales en

## General Whitelist
## Be careful using whitelist_from can be easly forged by spammers, use
## trusted_networks combined with whitelist_from_rcvd instead
#internal_networks 127.0.0.1 192.168.1.0/24
#trusted_networks 127.0.0.1 192.168.1.0/24 64.233.0.0/16
#whitelist_from_rcvd [EMAIL PROTECTED] *gmail.com,*google.com
#whitelist_from [EMAIL PROTECTED]
-

5. CONFIGURE CLAMAV:
Make sure config files are enabled by editing them as follows:
[EMAIL PROTECTED] mail]# vi /etc/freshclam.conf
Comment or remove the line below.
#Example

[EMAIL PROTECTED] mail]# vi /etc/clamd.conf
Comment or remove the line below.
#Example

Edit freshclam config file and remove or comment last line with 
FRESHCLAM_DELAY
directive. Optionally run freshclam from the root console to check that 
everything

works.

Use the cron 

Re: [CentOS] Anti Virus and Anti Spam

2008-08-31 Thread mouss

horas simalango wrote:

New be in linux!
Currently I have Install DNS, Email and Web server using centos 4.3.
All functions are running properly!
What anti virus and anti spam recomended for me to install to my
server? What I have to configure after installing anti virus and anti
spam?
Would some one help me please.! Now many spam mail come to user mailbox!


clamav
spamassassin
amavisd-new (which can run the two above and has other features).


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Anti Virus and Anti Spam

2008-08-31 Thread horas simalango
I am using sendmail as MTA, and I am looking for free anti virus.
About the milter, where can I download it?

Thank you

Horasima


2008/8/30 Eucke [EMAIL PROTECTED]:

 horas simalango wrote:

 New be in linux!
 Currently I have Install DNS, Email and Web server using centos 4.3.
 All functions are running properly!
 What anti virus and anti spam recomended for me to install to my
 server? What I have to configure after installing anti virus and anti
 spam?
 Would some one help me please.! Now many spam mail come to user mailbox!

 Thank's 'n Regards

 Well there are builds of spamassassin available via RPM that you can
 install.  You might mention which MTA you're usingSendmail?  Postfix?
  If you're using Sendmail then you can use milter plugins for spam and
 antivirus.  Are you looking for free antivirus plugins or ones your pay for?

 --
 Eucke


 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Anti Virus and Anti Spam

2008-08-29 Thread horas simalango
New be in linux!
Currently I have Install DNS, Email and Web server using centos 4.3.
All functions are running properly!
What anti virus and anti spam recomended for me to install to my
server? What I have to configure after installing anti virus and anti
spam?
Would some one help me please.! Now many spam mail come to user mailbox!

Thank's 'n Regards


Horasima
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Anti Virus and Anti Spam

2008-08-29 Thread Eucke


horas simalango wrote:

New be in linux!
Currently I have Install DNS, Email and Web server using centos 4.3.
All functions are running properly!
What anti virus and anti spam recomended for me to install to my
server? What I have to configure after installing anti virus and anti
spam?
Would some one help me please.! Now many spam mail come to user mailbox!

Thank's 'n Regards
Well there are builds of spamassassin available via RPM that you can 
install.  You might mention which MTA you're usingSendmail?  
Postfix?  If you're using Sendmail then you can use milter plugins for 
spam and antivirus.  Are you looking for free antivirus plugins or ones 
your pay for?


--
Eucke


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Anti Virus and Anti Spam

2008-08-29 Thread Eucke


horas simalango wrote:

New be in linux!
Currently I have Install DNS, Email and Web server using centos 4.3.
All functions are running properly!
What anti virus and anti spam recomended for me to install to my
server? What I have to configure after installing anti virus and anti
spam?
Would some one help me please.! Now many spam mail come to user mailbox!

Thank's 'n Regards
Well there are builds of spamassassin available via RPM that you can 
install.  You might mention which MTA you're usingSendmail?  
Postfix?  If you're using Sendmail then you can use milter plugins for 
spam and antivirus.  Are you looking for free antivirus plugins or ones 
your pay for?


--
Eucke


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos