Looking for a good anti-spam filter

General eFa discussion
Post Reply
BliXem
Posts: 80
Joined: 27 Mar 2017 19:17

Looking for a good anti-spam filter

Post by BliXem »

Hello,

I'm running with a team an hosting company. Can I use your script to use it for a good anti-spam filter system?
We've got 6000 domains so my question is:

- Is there a way to add the domains? One-by-one isn't a solution ;-). I think we can create an API with the servers to the anti-spam server. Or can we create a mysql database within Postfix to use it? We already have that running now on the Mailscanner server. I think this is possible.

I've i'm right, it's a out-of-the-box anti-spam filter, right? You doesn't need install Mailscanner, postfix, spamassassin yourself, only run the sh script in centos 6? :-)
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Looking for a good anti-spam filter

Post by shawniverson »

Yes, you can.

You may want to use several of these systems handing various groups of domains.

MariaDB is now available in 3.0.1.9, so you can use that with postfix.

You can bulk add domains to postfix using methods you may already have either to the transport file or to a database, depending on your needs.
BliXem
Posts: 80
Joined: 27 Mar 2017 19:17

Re: Looking for a good anti-spam filter

Post by BliXem »

Nice! Thanks for your reply. I will start with Centos 6 and the KS script.
Also the VPS from digitalocean. I hope this doesnt matter, your website says:

If you have the option partition the disk as:
512MB EXT3 /boot
LVM Physical volume for the rest (call it vg_00):
8GB / (call it lv_root)
1GB /tmp (call it lv_tmp)
4GB SWAP (call it lv_swap)
xxGB /var (call it lv_var) (the reset of your disk space)

Hope this doesn't matter.
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Looking for a good anti-spam filter

Post by shawniverson »

A couple considerations for a vps...

Use may want to use this script instead...

https://raw.githubusercontent.com/E-F-A ... ut-ks.bash

Then, answer no when asked to run the build.bash script.

Edit /usr/src/EFA/build.bash at the end and remove or comment out the fillers.

Then run it.
BliXem
Posts: 80
Joined: 27 Mar 2017 19:17

Re: Looking for a good anti-spam filter

Post by BliXem »

Fillers? Do you have a example?
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Looking for a good anti-spam filter

Post by shawniverson »

Yeah its these lines near the end. You don't want this to happen on a vps..so you want to either remove them or comment them out.

Code: Select all

    # zero disks for better compression (when creating VM images)
    # this can take a while so disabled for now until we start creating images.
    # TODO make this not happen if we run the script from a VPS install
    dd if=/dev/zero of=/filler bs=4096
    rm -f /filler
    dd if=/dev/zero of=/tmp/filler bs=4096
    rm -f /tmp/filler
    dd if=/dev/zero of=/boot/filler bs=4096
    rm -f /boot/filler
    dd if=/dev/zero of=/var/filler bs=4096
    rm -f /var/filler
    
BliXem
Posts: 80
Joined: 27 Mar 2017 19:17

Re: Looking for a good anti-spam filter

Post by BliXem »

Two things:

1: See the attachement.
Naamloos.png
Naamloos.png (23.62 KiB) Viewed 7688 times
2: When i'm logged in via: https://IP/mailscanner/checklogin.php:

Forbidden

You don't have permission to access /mailscanner/checklogin.php on this server

httpd error log:

[Tue Mar 28 14:29:45 2017] [notice] SIGHUP received. Attempting to restart
[Tue Mar 28 14:29:45 2017] [notice] Digest: generating secret for digest authentication ...
[Tue Mar 28 14:29:45 2017] [notice] Digest: done
[Tue Mar 28 14:29:46 2017] [notice] Apache/2.2.15 (Unix) PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips configured -- resuming normal operations
BliXem
Posts: 80
Joined: 27 Mar 2017 19:17

Re: Looking for a good anti-spam filter

Post by BliXem »

Fixed the issue with no permission. In mod_security added:

SecRuleRemoveById 950109
SecRuleRemoveByID 981173
SecRuleRemoveByID 981249
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Looking for a good anti-spam filter

Post by shawniverson »

#1 Is benign, it is an issue with clamav-unofficial-sigs. You can disable the specific sigs to suppress the errors, if desired.
BliXem
Posts: 80
Joined: 27 Mar 2017 19:17

Re: Looking for a good anti-spam filter

Post by BliXem »

Can I update this via yum?

Resolving Dependencies
--> Running transaction check
---> Package perl-Crypt-OpenSSL-RSA.x86_64 0:0.25-10.1.el6 will be updated
---> Package perl-Crypt-OpenSSL-RSA.x86_64 0:0.28-1.efa.el6 will be an update
---> Package perl-ExtUtils-MakeMaker.x86_64 0:6.55-141.el6_7.1 will be updated
--> Processing Dependency: perl(ExtUtils::Install) for package: 1:perl-Module-Bu ild-0.3500-141.el6_7.1.x86_64
--> Processing Dependency: perl(ExtUtils::Installed) for package: 4:perl-devel-5 .10.1-141.el6_7.1.x86_64
---> Package perl-ExtUtils-MakeMaker.noarch 0:7.10-3.efa.el6 will be an update
---> Package perl-Parse-RecDescent.noarch 0:1.962.2-2.el6 will be updated
---> Package perl-Parse-RecDescent.noarch 0:1.965-1.el6 will be an update
---> Package perl-Test-Pod.noarch 0:1.40-1.el6 will be updated
---> Package perl-Test-Pod.noarch 0:1.51-1.efa.el6 will be an update
---> Package python-boto.noarch 0:2.32.1-1.el6.centos will be obsoleted
---> Package python2-boto.noarch 0:2.45.0-3.el6 will be obsoleting
--> Processing Dependency: python-rsa for package: python2-boto-2.45.0-3.el6.noarch
--> Running transaction check
---> Package perl-ExtUtils-Install.noarch 0:2.04-1.efa.el6 will be installed
---> Package python2-rsa.noarch 0:3.4.1-1.el6 will be installed
--> Processing Dependency: python-pyasn1 for package: python2-rsa-3.4.1-1.el6.noarch
--> Running transaction check
---> Package python-pyasn1.noarch 0:0.0.12a-1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================
Package Arch Version Repository Size
==================================================================================================================
Installing:
python2-boto noarch 2.45.0-3.el6 epel 1.8 M
replacing python-boto.noarch 2.32.1-1.el6.centos
Updating:
perl-Crypt-OpenSSL-RSA x86_64 0.28-1.efa.el6 EFA 36 k
perl-ExtUtils-MakeMaker noarch 7.10-3.efa.el6 EFA 260 k
perl-Parse-RecDescent noarch 1.965-1.el6 epel 189 k
perl-Test-Pod noarch 1.51-1.efa.el6 EFA 15 k
Installing for dependencies:
perl-ExtUtils-Install noarch 2.04-1.efa.el6 EFA 40 k
python-pyasn1 noarch 0.0.12a-1.el6 base 70 k
python2-rsa noarch 3.4.1-1.el6 epel 68 k

Transaction Summary
==================================================================================================================
Install 4 Package(s)
Upgrade 4 Package(s)

Total download size: 2.5 M

Also, I removed the kernel* from /etc/yum.conf so my kernel will be updated.
Post Reply