VMware Images:
|
DSPAM With Embedded ClamAV Integrated Into Postfix With Virtual Users And Domains - Page 2
5 Configure PostfixNow we integrate DSPAM into Postfix: vi /etc/postfix/master.cf Change: smtp inet n - - - - smtpd To: smtp inet n - - - - smtpd
-o content_filter=lmtp:unix:/var/run/dspam.sock
After DSPAM has checked the mails, it will send it back to postfix. So we need to 127.0.0.1:10026 inet n - - - - smtpd -o content_filter= -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks -o smtpd_helo_restrictions= -o smtpd_client_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.0/8 -o smtpd_authorized_xforward_hosts=127.0.0.0/8 Restart Postfix: /etc/init.d/postfix restart Now we test if Postfix is working correctly: telnet localhost 25 Should look like this: Trying 127.0.0.1... ehlo localhost Should look like this: 250-debian.example.com Quit telnet: quit
6 Create First MailaccountIf you are asked for the mysql-root-password, insert the one you chose in the howto before at step 4.
mysql -u root -p
INSERT INTO `domains` (`domain`) VALUES ('example.com');
Now the mail-account should be ready to use. Recognized Spam will be marked with "SPAM" in the subject. To be sure that DSPAM has processed your mails, all mails will have an entry at the bottom like "!DSPAM:46b904f4169391516232331!".
7 Train DSPAM
It would be useful to train DSPAM with spam and no-spam for better spam-detection. apt-get install bzip2 Get train-mails:
cd /tmp
tar xvfj 20050311_spam_2.tar.bz2 Train DSPAM: dspam_train test spam_2/ easy_ham_2/ DSPAM will now process the files (this will take a while) and fill the database with the resulting tokens.
8 Install And Configure ClamAVapt-get install clamav-daemon Change the configuration: vi /etc/clamav/clamd.conf Comment out "LocalSocket /var/run/clamav/clamd.ctl" (with a #) and add the new line: TCPSocket 3310 Restart ClamAV: /etc/init.d/clamav-daemon restart
9 Integrate ClamAV Into DSPAMvi /etc/dspam/dspam.conf Change the existing lines so that they look like this: ClamAVPort 3310 ClamAVHost 127.0.0.1 ClamAVResponse reject Restart DSPAM: /etc/init.d/dspam restart
10 Links
|




print: 
Recent comments
6 hours 9 min ago
8 hours 15 min ago
8 hours 24 min ago
10 hours 55 min ago
11 hours 44 min ago
14 hours 21 min ago
14 hours 46 min ago
16 hours 39 min ago
20 hours 50 min ago
1 day 2 min ago