Difference between revisions of "Project Gamera"

From Atomicorp Wiki
Jump to: navigation, search
(Overview)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
 +
== Overview ==
 +
 +
Project Gamera (PG) is an email firewall, designed to clean email of spam, viruses and phishing attempts, as well as to block spam and them to send on the clean email a downstream mail server or servers. PG is designed to be low maintenance, and require a minimal amount of management.  It is released under the AGPLv3 (Affero General Public License) and is free for all to use.
 +
 +
== READ ME FIRST! ==
 +
 +
You should not install Project Gamera onto your existing mailserver!  Project Gamera will replace the MTA on the system and will replace it with the mail firewalling setup.  You will need your existing mail server.
 +
 +
== Installation ==
 +
 +
Activate atomic repository
 +
 +
  wget -q -O - http://www.atomicorp.com/installers/atomic |sh
 +
 +
Install Project Gamera
 +
 +
  yum install project-gamera
 +
 +
 +
Configure allowed domains. Example: domain.com
 +
 +
  vim /var/qmail/control/rcpthosts
 +
 +
 +
Configure SMTP Routes, <domain>:<destination ip>. Example: domain.com:1.2.3.4
 +
 +
  vim /var/qmail/control/smtproutes
 +
 +
 +
Restart or reload init
 +
 +
  init q
 +
 +
or
 +
 
 +
  reboot
  
 
== Clustering with Project Gamera ==
 
== Clustering with Project Gamera ==

Latest revision as of 06:50, 7 August 2013

Contents

[edit] Overview

Project Gamera (PG) is an email firewall, designed to clean email of spam, viruses and phishing attempts, as well as to block spam and them to send on the clean email a downstream mail server or servers. PG is designed to be low maintenance, and require a minimal amount of management. It is released under the AGPLv3 (Affero General Public License) and is free for all to use.

[edit] READ ME FIRST!

You should not install Project Gamera onto your existing mailserver! Project Gamera will replace the MTA on the system and will replace it with the mail firewalling setup. You will need your existing mail server.

[edit] Installation

Activate atomic repository

 wget -q -O - http://www.atomicorp.com/installers/atomic |sh

Install Project Gamera

 yum install project-gamera


Configure allowed domains. Example: domain.com

 vim /var/qmail/control/rcpthosts


Configure SMTP Routes, <domain>:<destination ip>. Example: domain.com:1.2.3.4

 vim /var/qmail/control/smtproutes


Restart or reload init

 init q

or

 reboot

[edit] Clustering with Project Gamera

  1. On the PG server

1) install mysql on PG

 yum install mysql-server

2) set mysql pass on PG

 mysqladmin -u root password PASSWORD

3) set up tortuga DB

 wget http://www.atomicrocketturtle.com/tortuga/tortuga.sql
 mysql -u root -p < tortuga.sql

4) configure Spamassassin to use mysql

 cd /etc/mail/spamassassin/
 wget http://www.atomicrocketturtle.com/tortuga/tortuga.cf
 

5) Set spamd to use mysql

 vim /etc/sysconfig/spamassassin
 SPAMDOPTIONS="-d -x -q -c -m30 -u qscand"

6) restart spamd

 /etc/init.d/spamassassin restart


7) create remote mysql user

 GRANT ALL ON tortuga.* TO tortuga@'192.168.100.244' IDENTIFIED BY 'collection';
 flush privileges;


TODO: Set up maintenance

  1. On the plesk server

1) Add the tortuga-learn script

 wget http://www.atomicrocketturtle.com/tortuga/tortuga-user-client.sh

2) Set up the tortuga client config for SA

 mkdir /etc/mail/tortuga/
 cd /etc/mail/tortuga/
 wget http://www.atomicrocketturtle.com/tortuga/tortuga-client.cf

3) add to cron

 crontab -e 
 0       4       *       *       *       /root/bin/tortuga-user-client.sh >/dev/null 2>&1
Personal tools