Date: Mon, 28 May 2007 08:37:19 +0000 From: "dhaneshk k" <dhaneshkk@hotmail.com> To: freebsd-questions@freebsd.org Cc: Albert.Shih@obspm.fr, freebsd-current@freebsd.org, arthurbarlow@earthlink.net Subject: amvisd-new set up difficulty Message-ID: <BAY127-F134DC6C232E939A9223FDAB2280@phx.gbl>
next in thread | raw e-mail | index | archive | help
Hi , this is Dhanesh , by the way of finding a solution for spam controll I come across one tutorial Postfix and SpamAssassin By Grzegorz , So I followed the foresaid tutorial .. URL :http://ezine.daemonnews.org/200309/postfix-spamassassin.html. Hope some of you may be the right one to help me to controll spams in my mail system.If not please introduce me to some experts who knows this configuration so I can touch with them. { These all are I configured in a test machine (FreeBSD 6.0, POSTFIX running fine in this test machine ..I can send test mails between local users in this test machine So if this setup is good then I can install amavis-new in my server and can controll spams effectively) So I want to check whether this configuration is correct ya not , for that please give some inputs( imean spam i/ps and how I know this is blocking spams .. and I want to ask you what I have to add more for the three line in amavisd.conf HERE I AM ATTCHING THE amvisd.conf file read_hash(\%whitelist_sender, '/var/amavis/whitelist'); read_hash(\%blacklist_sender, '/var/amavis/blacklist'); read_hash(\%spam_lovers, '/var/amavis/spam_lovers'); } I had a FreeBSD-6.0 box with postfix and mailman working fine .The problem is that my mailing list members including me getting lots of spams daily ..so I really got in trouble . From the tutorial I uderstood that by installing amavisd-new will solve the problem so I went ahead with this .. SpamAssain &razor also coming with this amavisd-new (they are integrated with is package ). So a box with freeebsd6.0 ,with postfix clamav etc installed in it .. (I have installed clamav before following the tutorial through usr/ports in FreeBSD box) SO I thought this AntiVirus clamav may be sufficent for using with amavisd-new and after this I followed the turorial for postfix and spamassassin step by step upto section IV Section IV - Notifications/DSN, BOUNCE/REJECT/DROP/PASS destiny, quarantine. You may want to set these variables: $notify_sender_templ $notify_virus_sender_templ $notify_virus_admin_templ $notify_virus_recips_templ $notify_spam_sender_templ $notify_spam_admin_templ What valuses to set for this variables ,there is no such variables in the amavisd.conf file so I added this in the file and confused of giving what values to this variables ? so I commented these 6 variables and follwed the tutorial upto section V read_hash(\%whitelist_sender, '/var/amavis/whitelist'); read_hash(\%blacklist_sender, '/var/amavis/blacklist'); read_hash(\%spam_lovers, '/var/amavis/spam_lovers'); these three lines I just added in amavisd.conf ( I dont know whether to add any thing else so I added the following lines from the tutorial to the amvisd.conf file map { $whitelist_sender{lc($_)}=1 } (qw( freebsd-questions@freebsd.org cert-advisory-owner@cert.org bugtraq@securityfocus.com owner-postfix-users@postfix.org )); and I went to section vii added these 2 line $sa_local_tests_only = 0; $sa_auto_whitelist = 1; and clamav I installed through ports so I commented all the lines except the ones related to clamav section. then have done # su - vscan $ touch blacklist whitelist spam_lovers $ mkdir tmp but tmp dir is already here so its not needed to create it explicitly.. then followd spamassassin local.cf configuration as in the tutorial exactly .. But ther is no .spamassassin dir in /var/amavis so i created this .spamassassin dir here and then given the command below . $ touch /var/amavis/.spamassassin/user_prefs Then razor and Bayesian learning configured as in the tutorial then executed the command /usr/local/sbin/amavisd debug But the debug output I dont know if it correct ya not so I am adding the debug output here Please let me know all my configurations correct ya not ? and in /usr/ports/security/amavisd-new/work ther is no work directory and sample spam files , so let me give some sample spam code so I ca test it .. NB: can you send a sample copy of amavisd.conf , spamassassin local.cf , If my configuration is not looking proper one in your view . /usr/local/sbin/amavisd debug o/p don# /usr/local/sbin/amavisd debug May 25 10:29:53 don.localdomain /usr/local/sbin/amavisd[1599]: starting. /usr/local/sbin/amavisd at don.localdomain amavisd-new-2.5.0 (20070423), Unicode aware May 25 10:29:53 don.localdomain /usr/local/sbin/amavisd[1599]: user=, EUID: 0 (0); group=, EGID: 0 5 0 0 (0 5 0 0) May 25 10:29:53 don.localdomain /usr/local/sbin/amavisd[1599]: Perl version 5.008008 May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: INFO: SA version: 3.1.8, 3.001008, no optional modules: Mail::SpamAssassin::SQLBasedAddrList DBD::mysql Mail::SpamAssassin::Plugin::DKIM Mail::SpamAssassin::Plugin::URIDetail IP::Country::Fast Mail::DKIM Mail::DKIM::Verifier Mail::SPF Mail::SPF::Mech Mail::SPF::Mech::A Mail::SPF::Mech::All Mail::SPF::Mech::Exists Mail::SPF::Mech::IP4 Mail::SPF::Mech::IP6 Mail::SPF::Mech::Include Mail::SPF::Mech::MX Mail::SPF::Mech::PTR Mail::SPF::Mod Mail::SPF::Mod::Exp Mail::SPF::Mod::Redirect Mail::SPF::SenderIPAddrMech Mail::SPF::v1::Record Mail::SPF::v2::Record Crypt::OpenSSL::RSA auto::Crypt::OpenSSL::RSA::new_public_key auto::Crypt::OpenSSL::RSA::new_key_from_parameters auto::Crypt::OpenSSL::RSA::get_key_parameters auto::Crypt::OpenSSL::RSA::import_random_seed Digest::SHA Error May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: SpamControl: init_pre_chroot done May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Net::Server: 2007/05/25-10:29:54 Amavis (type Net::Server::PreForkSimple) starting! pid(1599) May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Net::Server: Binding to UNIX socket file /var/amavis/amavisd.sock using SOCK_STREAM May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Net::Server: Binding to TCP port 10024 on host 127.0.0.1 May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Net::Server: Setting gid to "110 110" May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Net::Server: Setting uid to "110" May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Net::Server: Setting up serialization via flock May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Module Amavis::Conf 2.086 May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Module Archive::Zip 1.18 May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Module BerkeleyDB 0.31 May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Module Compress::Zlib 2.004 May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Module Convert::TNEF 0.17 May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Module Convert::UUlib 1.08 May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Module DB_File 1.814 May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Module Digest::MD5 2.36 May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Module IO::Socket::INET6 2.51 May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Module MIME::Entity 5.420 May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Module MIME::Parser 5.420 May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Module MIME::Tools 5.420 May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Module Mail::Header 1.74 May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Module Mail::Internet 1.74 May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Module Mail::SPF::Query 1.999001 May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Module Mail::SpamAssassin 3.001008 May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Module Net::DNS 0.59 May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Module Net::Server 0.96 May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Module Net::Server::PreFork 0.96 May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Module Net::Server::PreForkSimple 0.96 May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Module Razor2::Client::Version 2.82 May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Module Time::HiRes 1.9707 May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Module URI 1.35 May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Module Unix::Syslog 0.100 May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Amavis::DB code loaded May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Amavis::Cache code loaded May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: SQL base code NOT loaded May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: SQL::Log code NOT loaded May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: SQL::Quarantine NOT loaded May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Lookup::SQL code NOT loaded May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Lookup::LDAP code NOT loaded May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: AM.PDP-in proto code loaded May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: SMTP-in proto code loaded May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Courier proto code NOT loaded May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: SMTP-out proto code loaded May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Pipe-out proto code NOT loaded May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: BSMTP-out proto code NOT loaded May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Local-out proto code loaded May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: OS_Fingerprint code NOT loaded May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: ANTI-VIRUS code loaded May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: ANTI-SPAM code loaded May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: ANTI-SPAM-SA code loaded May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Unpackers code loaded May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Found $file at /usr/local/bin/file May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: No $dspam, not using it May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: No $altermime, not using it May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Internal decoder for .mail May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Internal decoder for .asc May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Internal decoder for .uue May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Internal decoder for .hqx May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Internal decoder for .ync May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Found decoder for .F at /usr/local/bin/unfreeze May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Found decoder for .Z at /usr/bin/uncompress May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Found decoder for .gz at /usr/bin/gzip -d May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Internal decoder for .gz (backup, not used) May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Found decoder for .bz2 at /usr/bin/bzip2 -d May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Found decoder for .lzo at /usr/local/bin/lzop -d May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Found decoder for .rpm at /usr/local/bin/rpm2cpio.pl May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Found decoder for .cpio at /bin/pax May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Found decoder for .tar at /bin/pax May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Found decoder for .deb at /usr/bin/ar May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Internal decoder for .zip May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Found decoder for .7z at /usr/local/bin/7zr May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Found decoder for .rar at /usr/local/bin/unrar May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Found decoder for .arj at /usr/local/bin/arj May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Found decoder for .arc at /usr/local/bin/arc May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Found decoder for .zoo at /usr/local/bin/zoo May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Found decoder for .lha at /usr/local/bin/lha May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Found decoder for .cab at /usr/local/bin/cabextract May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: No decoder for .tnef tried: tnef May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Internal decoder for .tnef May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Found decoder for .exe at /usr/local/bin/unrar; /usr/local/bin/lha; /usr/local/bin/arj May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Using primary internal av scanner code for ClamAV-clamd May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: No primary av scanner: Mail::ClamAV May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: No primary av scanner: KasperskyLab AVP - aveclient May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: No primary av scanner: KasperskyLab AntiViral Toolkit Pro (AVP) May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: No primary av scanner: KasperskyLab AVPDaemonClient May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: No primary av scanner: CentralCommand Vexira (new) vascan May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: No primary av scanner: Avira AntiVir May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: No primary av scanner: Command AntiVirus for Linux May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: No primary av scanner: Symantec CarrierScan via Symantec CommandLineScanner May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: No primary av scanner: Symantec AntiVirus Scan Engine May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: No primary av scanner: F-Secure Antivirus for Linux servers May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: No primary av scanner: CAI InoculateIT May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: No primary av scanner: CAI eTrust Antivirus May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: No primary av scanner: MkS_Vir for Linux (beta) May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: No primary av scanner: MkS_Vir daemon May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: No primary av scanner: ESET NOD32 for Linux Mail servers May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: No primary av scanner: ESET NOD32 for Linux File servers May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: No primary av scanner: Norman Virus Control v5 / Linux May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: No primary av scanner: Panda CommandLineSecure 9 for Linux May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: No primary av scanner: NAI McAfee AntiVirus (uvscan) May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: No primary av scanner: VirusBuster May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: No primary av scanner: CyberSoft VFind May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: No primary av scanner: avast! Antivirus May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: No primary av scanner: Ikarus AntiVirus for Linux May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: No primary av scanner: BitDefender May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Found secondary av scanner ClamAV-clamscan at /usr/local/bin/clamscan May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: No secondary av scanner: FRISK F-Prot Antivirus May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: No secondary av scanner: Trend Micro FileScanner May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: No secondary av scanner: drweb - DrWeb Antivirus May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: No secondary av scanner: Kaspersky Antivirus v5.5 May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: Creating db in /var/amavis/db/; BerkeleyDB 0.31, libdb 4.1 May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: SpamControl: initializing Mail::SpamAssassin May 25 10:29:56 don.localdomain /usr/local/sbin/amavisd[1599]: SpamControl: init_pre_fork done May 25 10:29:56 don.localdomain /usr/local/sbin/amavisd[1599]: Net::Server: Beginning prefork (2 processes) May 25 10:29:56 don.localdomain /usr/local/sbin/amavisd[1599]: Net::Server: Starting "2" children May 25 10:29:56 don.localdomain /usr/local/sbin/amavisd[1599]: Net::Server: Parent ready for children. May 25 10:29:56 don.localdomain /usr/local/sbin/amavisd[1600]: Net::Server: Child Preforked (1600) May 25 10:29:56 don.localdomain /usr/local/sbin/amavisd[1601]: Net::Server: Child Preforked (1601) May 25 10:29:56 don.localdomain /usr/local/sbin/amavisd[1600]: TIMING [total 14 ms] - bdb-open: 14 (100%)100, rundown: 0 (0%)100 May 25 10:29:56 don.localdomain /usr/local/sbin/amavisd[1601]: TIMING [total 16 ms] - bdb-open: 16 (100%)100, rundown: 0 (0%)100 Thanks in advance dhanesh _________________________________________________________________ Catch all the cricketing action right here. Live score, match reports, photos et al. http://content.msn.co.in/Sports/Cricket/Default.aspx
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BAY127-F134DC6C232E939A9223FDAB2280>