www.borco.sk

Qmail




urpmi.addmedia qmail http://www.rpmhelp.net/Mandrake/djbware/9.2/RPMS
urpmi qmail
cd /usr/local/src
wget http://www.inter7.com/vpopmail/vpopmail-5.2.2.tar.gz
tar xvzf ./vpopmail-5.2.2.tar.gz
cd ./vpopmail-5.2.2

vytvorit DB:
mysql --password=PASSWORD

CREATE DATABASE vpopmail;
GRANT select,insert,update,delete,create,drop ON vpopmail.*
TO VPOPMAILUSER@localhost IDENTIFIED BY 'PASSWORD';
flush privileges;
quit

groupadd vchkpw
useradd -g vchkpw -s /bin/false vpopmail

****edit vmysql.h - USER PASSWD

./configure --enable-valias --enable-auth-module=mysql --enable-auth-logging --enable-mysql-logging --enable-mysql-limits
urpmi mysql-devel
make
make install-strip

vo /var/qmail/supervise/qmail-pop3/run - treba zmenit password program z checkpassword na /home/vpopmai/bin/vchkpw

pridanie domeny:
/home/vpopmail/bin/vadddomain domena.sk
/home/vpopmail/bin/vadduser user@domena.sk



*********
54
wget http://cesnet.dl.sourceforge.net/sourceforge/vpopmail/vpopmail-5.4.0.tar.gz


************************************************
qmail+qmail-scanner
************************************************
wget http://www.qmail.org/netqmail-1.05.tar.gz
tar xvzf netqmail-1.05*
cd netqmail*
./collate.sh
cd ..
tar xpfz ucspi-tcp-0.88.tar
mkdir /var/qmail
ln -s /etc/qmail /var/qmail/control


groupadd nofiles
useradd -g nofiles -d /var/qmail/alias -s /bin/false alias
useradd -g nofiles -d /var/qmail -s /bin/false qmaild
useradd -g nofiles -d /var/qmail -s /bin/false qmaill
useradd -g nofiles -d /var/qmail -s /bin/false qmailp
groupadd qmail
useradd -g qmail -d /var/qmail -s /bin/false qmailq
useradd -g qmail -d /var/qmail -s /bin/false qmailr
useradd -g qmail -d /var/qmail -s /bin/false qmails



.
.
.
.

------------
spammassassin
------------

Razor:
----------
Razor potrebuje:

perl -MCPAN -e 'install Net::DNS'
echo 'Digest::SHA1
Digest::MD5
Digest::HMAC
Digest::Nilsimsa
Test::Simple
Time::HiRes
URI::Escape' | xargs -n1 -i perl -MCPAN -e 'install {}'

wget http://cesnet.dl.sourceforge.net/sourceforge/razor/razor-agents-2.36.tar.gz
tar -zxvf razor-agents-2*
cd razor-agents-2*
perl Makefile.PL && make && make test && make install

razor-client
razor-admin -create
razor-admin -register -user borco@domena.sk

DCC
----------------
wget http://www.rhyolite.com/anti-spam/dcc/source/dcc-dccd.tar.Z
tar xfvz dcc-dccproc.tar.Z
cd dcc-dccproc*
./configure && make && make install

vyskusaj: cdcc info



Pyzor //nefici na mdk91
-------
wget http://cesnet.dl.sourceforge.net/sourceforge/pyzor/pyzor-0.4.0.tar.bz2
tar -jxvf pyzor-0.4*
cd pyzor-0.4*
python setup.py build
python setup.py install


groupadd spamd
useradd -g spamd -d /var/tmp -s /bin/false spamd
perl -MCPAN -e 'install Mail::SpamAssassin'

----------
edit /etc/mail/spamassassin/local.cf: - pozri man Mail::SpamAssassin::Conf
rewrite_subject 1

report_safe 0
use_terse_report 0

use_bayes 1
bayes_path /var/amavisd/.spamassassin/bayes
auto_learn 1

skip_rbl_checks 0
use_razor2 1
use_dcc 1
use_pyzor 0
dcc_add_header 1

dns_available yes

header LOCAL_RCVD Received =~ /.*\(\S+\.domain\.com\s+\[.*\]\)/
describe LOCAL_RCVD Received from local machine
score LOCAL_RCVD -50

## Optional Score Increases
#score DCC_CHECK 4.000
#score RAZOR2_CHECK 2.500
#score BAYES_99 4.300
#score BAYES_90 3.500
#score BAYES_80 3.000






---model2

required_hits 5.0
#skip_rbl_checks 1
rewrite_subject 1
#always_add_headers 0
#use_terse_report 1
report_safe 1
dns_available yes
add_header all DCC _DCCB_: _DCCR_
#add_header all Pyzor _PYZOR_
ok_languages en
#clear_report_template
#report Redifine report text
#report according to man page _SUMMARY_
---



//cd /usr/local/src
//tar -zxvf Mail-SpamAssassin-*
//cd Mail-SpamAssassin-*
//perl Makefile.PL
//make
//make install


clamav
------------
groupadd clamav
useradd -g clamav -s /bin/false -c 'Clam Antivirus' clamav

wget http://cesnet.dl.sourceforge.net/sourceforge/clamav/clamav-0.67.tar.gz
tar -zxvf clamav-0.67.tar.gz
cd clamav-0.67*
./configure --sysconfdir=/etc
make
make install

Popis:
update: freshclam
scan: clamscan



qmail-scanner
----------------
groupadd qscand
useradd -g qscand -d /var/spool/qmailscan -s /bin/false qscand
wget http://cesnet.dl.sourceforge.net/sourceforge/qmail-scanner/qmail-scanner-1.20.tgz
tar -zxvf ./qmail-scan*
cd ./qmail-scan*
./configure --admin postmaster --domain aaa.sk --notify 'sender,recips,admin' --debug yes --lang 'en_GB cs_CZ' --install
su qscand '/var/qmail/bin/qmail-scanner-queue.pl -g'




************************************************
qmail+amavisd-new
************************************************

mkdir /var/qmail-out
groupadd nofiles-out
useradd -g nofiles-out -d /var/qmail-out/alias -s /bin/false alias-out
useradd -g nofiles-out -d /var/qmail-out -s /bin/false qmaild-out
useradd -g nofiles-out -d /var/qmail-out -s /bin/false qmaill-out
useradd -g nofiles-out -d /var/qmail-out -s /bin/false qmailp-out
groupadd qmail-out
useradd -g qmail-out -d /var/qmail-out -s /bin/false qmailq-out
useradd -g qmail-out -d /var/qmail-out -s /bin/false qmailr-out
useradd -g qmail-out -d /var/qmail-out -s /bin/false qmails-out


Teraz zedituj conf.qmail -treba tam dat /var/qmail-out


conf.groups: // nadefinovanie group
qmail-out
nofiles-out

conf.users: //nadefinovanie userov
alias-out
qmaild-out
qmaill-out
root
qmailp-out
qmailq-out
qmailr-out
qmails-out


make setup check
./config-fast meno.pocitaca.sk


Teraz Istaluj amavisd-new:
vytvorime user/group


wget http://www.ijs.si/software/amavisd/amavisd-new-20030616-p7.tar.gz
tar zxpvf ./amavisd-new-20030616-p7.tar.gz
cd amavisd*
groupadd amavis
useradd -g amavis -d /var/amavis -s /bin/false amavis
chown amavis:amavis /var/amavis
chmod 750 /var/amavis

cp amavisd /usr/local/sbin/
chown root /usr/local/sbin/amavisd
chmod 755 /usr/local/sbin/amavisd

cp amavisd.conf /etc/
chown root /etc/amavisd.conf
chmod 644 /etc/amavisd.conf

mkdir /var/amavis/virusmails
chown amavis:amavis /var/amavis/virusmails
chmod 750 /var/amavis/virusmails

v amavisd.conf <- ,,, and


a ideme testovat:
/usr/local/sbin/amavisd debug









CD.zip
Hosting www.webdomeny.sk Sponzor:www.eclick.skwww.creativeauto.sk