ტაკს
გავაგრძელეთ სანამ დრო მაქვს თუარა შემიკიკინებენ მალე
სპამასასინის არასტაბილურობისა და "პერლ"-ურობის გამო გადავწყიტე უარი მეთქვა ამ მრავალჭირნახულ ანტისპამზე და შევჩერდი DSPAM ზე.
სათაო გვერდი,
http://dspam.nuclearelephant.com/index.shtml საკმაოდ დიდი და კარგია.
მოკლედ.
ანტივირუსად ვირჩევთ საკმაოდ კარგსა და გამძლე ClamAVს
აგრეთვე ამ პროდუქტის სათაო გვერდიც საკმაოდ მრავლისმთქმელია და კარგი.
http://www.clamav.net/მივყვებით ზემოხსენებულ (ამ თემას არ ვგულისხმობ)
პრინციპს: "რაც შეიძლება ნაკლები ნაგავი სისტემაში"
ClamAV საც და Dspam საც ვაყენებთ სუფთად RPM ით მითითებული URLდან
http://ftp.upjs.sk/pub/users/sal/Fedora/4/...-0.fc4.i386.rpmhttp://ftp.upjs.sk/pub/users/sal/Fedora/4/...-0.fc4.i386.rpmhttp://ftp.upjs.sk/pub/users/sal/Fedora/4/...-0.fc4.i386.rpmhttp://ftp.upjs.sk/pub/users/sal/Fedora/4/...-0.fc4.i386.rpmhttp://ftp.upjs.sk/pub/users/sal/Fedora/4/...-0.fc4.i386.rpmhttp://ftp.upjs.sk/pub/users/sal/Fedora/4/...-2.fc4.i386.rpmhttp://ftp.upjs.sk/pub/users/sal/Fedora/4/...-2.fc4.i386.rpmhttp://ftp.belnet.be/packages/dries.ulyssi...fc4.rf.i386.rpmსაჭიროა თურმე ეგეცა
|
apt-get install mysql-server
ვაყენებთ ასე.
rpm -Uvh *rpm იმ დასტაში, სადაც დავქაჩეთი მითითებული ფაილები.
/etc/postfix/main.conf ში ვცვლით შესაბამის პარამეტრს....
smtpd_recipient_restrictions =
reject_non_fqdn_sender,
reject_unknown_recipient_domain,
reject_unauth_pipelining,
reject_non_fqdn_recipient,
permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination,
permit
იგივე ფაილში ვეძებთ, და თუ ჩართულია ვცვლით, და თუ არა ჩართული ვამატებთ შემდეგ ხაზს
mailbox_command = /usr/local/bin/dspam
--deliver=innocent --user $USER
/etc/dspam.conf ში
ვცვლით შესაბამის ხაზებს მითითებული მნიშვნელობებით...
UntrustedDeliveryAgent "/usr/bin/procmail"
TrustedDeliveryAgent "/usr/bin/procmail -d %u"
ვასრულებთ ბრძანებების მიმდევრობებს
dspam_genaliases --minuid 500 > /etc/postfix/dspam.aliases
postalias /etc/postfix/dspam.aliases
ეს ხაზები ამუშავებს /etc/passwd ფაილს და ეძებს შიგნით მომხმარებლის სახელებს, რომლებიც შეიძლება გამოდგეს ფოსტის მომხმარებლად
მეორეს კი პოსტფიქსისათვის გასაგებ ფორმატში გადაჰყავს იგი
( ყურადღება! ზემო ორი ბრძანების გამეორება საჭიროა სათითაოდ მომხმარებლების ჩამატება/შეცვლა/წაშლისას)
იგივე ფაილში ვეძებთ, და თუ ჩართულია ვცვლით, და თუ არა ჩართული ვამატებთ შემდეგ ხაზს
alias_maps = hash:/etc/aliases hash:/etc/postfix/dspam.aliases
ვცვლით და თუ არ არსებობს ვქმნით და ვწერთ /etc/clamd.conf ფაილში შემდეგ სტრიქონებს
LogFile /tmp/clamd.log
LogFileMaxSize 2M
LogTime
LogSyslog
PidFile /var/run/clamd.pid
DatabaseDirectory /var/lib/clamav
LocalSocket /var/run/clamav/clamd
MaxThreads 10
ReadTimeout 300
MaxDirectoryRecursion 15
User clamav
AllowSupplementaryGroups
ScanOLE2
ScanArchive
ArchiveMaxFileSize 10M
ArchiveMaxRecursion 5
ArchiveMaxFiles 1000
ArchiveMaxCompressionRatio 200
სურვილისამებრ დავაკონფიგებთ/შევცვლით /etc/freshclam.conf ს
გადახედვა ყველა ვარიანტში საჭიროა, და შეცვლა სურვილისამებრ
/etc/postfix/main.conf ში შესაბამისად..
content_filter = scan:127.0.0.1:10024
receive_override_options = no_address_mappings
/etc/postfix/master.conf ში ვამატებთ
smtp inet n - n - - smtpd
-o content_filter=smtp-amavis:[127.0.0.1]:10024
smtp-amavis unix - - n - 2 lmtp
-o smtp_send_xforward_command=yes
127.0.0.1:10025 inet n - n - - smtpd
-o cleanup_service_name=pre-cleanup
-o content_filter=dspam:dummy
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000
127.0.0.1:10026 inet n - n - - smtpd
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000
dspam unix - n n - - pipe
flags=Rhq user=dspam argv=/usr/local/bin/dspam -i -f ${sender} -- %u --user ${recipient}
cleanup unix n - n - 0 cleanup
-o header_checks=
-o mime_header_checks=
-o nested_header_checks=
-o body_checks=
pre-cleanup unix n - n - 0 cleanup
-o canonical_maps=
-o sender_canonical_maps=
-o recipient_canonical_maps=
-o masquerade_domains=
-o virtual_alias_maps=
-o always_bcc=
-o sender_bcc_maps=
-o recipient_bcc_maps=
local unix - n n - - local
-o content_filter=
-o myhostname=localhost
-o local_recipient_maps=
-o relay_recipient_maps=
-o mynetworks=127.0.0.0/8
-o mynetworks_style=host
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
dspam-add unix - n n - - pipe
flags=Rhq user=dspam argv=/usr/local/bin/dspam --user ${user}@${nexthop} --addspam
dspam-del unix - n n - - pipe
flags=Rhq user=dspam argv=/usr/local/bin/dspam --user ${user}@${nexthop} --falsepositive
/etc/clamsmtpd.conf ში
OutAddress: 127.0.0.1:25
/etc/amavisd.confში
$MYHOME = '/var/amavis'
$mydomain = 'example.com'; (იცვლება ჩვენი დომეინით)
$daemon_user = 'clamav';
$daemon_group = 'clamav';
$forward_method = 'smtp:127.0.0.1:10025';
$notify_method = 'smtp:127.0.0.1:10026';
@bypass_spam_checks_acl = qw( . );
$virus_admin = "admin@domain.com";
$QUARANTINEDIR = '/var/virusmails';
['Clam Antivirus-clamd',
\&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd"],
qr/\bOK$/, qr/\bFOUND$/,
qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
გავყევით
# mysql -u root -p -e "create database dspam"
# mysql -u root -p -e "grant all on dspam.* to dspam@localhost identified by 'DSPAMPASS'"
# mysql -u dspam -p dspam < tools.mysql_drv/mysql_objects.sql.speed.optimized
# mysql -u dspam -p dspam < tools.mysql_drv/virtual_users.sql
# cp tools.mysql_drv/purge.sql /var/dspam
/etc/postfix/main.cf
transport_maps = regexp:/etc/postfix/transport_regexp,
hash:/etc/postfix/transport.domain
# IMPORTANT!
dspam_destination_recipient_limit = 1
dspam-add_destination_recipient_limit = 1
dspam-fp_destination_recipient_limit = 1
/etc/postfix/transport_regexp ში ვწერთ
/^.*@spam.(.*)$/ dspam-add:${1}
/^.*@ham.(.*)$/ dspam-del:${1}
/etc/postfix/transport.domain ში კეთდება
example.com smtp:xyz.xyz.xyz.xyz ტიპის ჩანაწერები
კითხვები პასუხებადია!!