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
|
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com





print: 
Recent comments
17 hours 32 min ago
19 hours 1 min ago
22 hours 35 min ago
1 day 1 hour ago
1 day 4 hours ago
1 day 5 hours ago
1 day 5 hours ago
1 day 6 hours ago
1 day 7 hours ago
1 day 8 hours ago