help with the Postfix Spam Filter using Ubuntu Dapper, MailScanner... tutorial

Discussion in 'Suggest HOWTO' started by the block, Nov 7, 2006.

  1. the block

    the block New Member

    Hi,

    I am in a linux class in college right now, and we have an assignment where we need to setup a postfix email server. I found this guide online and it seems really great, I am just having a few problems and was hoping someone could help me. I have made it to page 4, and this is where I am having problems.

    I had just gotten done configuring SpamAssassin, and am in the bring it all together step. It asks me to run the su postfix -p -c 'spamassassin -x -D -C /opt/MailScanner/etc/spam.assassin.prefs.conf --lint' command and hope SpamAssassin is happy.. well unfortunatly it wasn't :(

    It tells me:
    [3699] warn: lint: 3 issues detected, please rerun with debug enabled for more information

    I will now post the whole output it gave me in case someone needs to look through it to try and help me.

    [3702] dbg: logger: adding facilities: all
    [3702] dbg: logger: logging level is DBG
    [3702] dbg: generic: SpamAssassin version 3.1.4
    [3702] dbg: config: score set 0 chosen.
    [3702] dbg: util: running in taint mode? yes
    [3702] dbg: util: taint mode: deleting unsafe environment variables, resetting PATH
    [3702] dbg: util: PATH included '/usr/local/sbin', keeping
    [3702] dbg: util: PATH included '/usr/local/bin', keeping
    [3702] dbg: util: PATH included '/usr/sbin', keeping
    [3702] dbg: util: PATH included '/usr/bin', keeping
    [3702] dbg: util: PATH included '/sbin', keeping
    [3702] dbg: util: PATH included '/bin', keeping
    [3702] dbg: util: PATH included '/usr/bin/X11', keeping
    [3702] dbg: util: PATH included '/usr/games', keeping
    [3702] dbg: util: final PATH set to: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games
    [3702] dbg: message: ---- MIME PARSER START ----
    [3702] dbg: message: main message type: text/plain
    [3702] dbg: message: parsing normal part
    [3702] dbg: message: added part, type: text/plain
    [3702] dbg: message: ---- MIME PARSER END ----
    [3702] dbg: dns: is Net::DNS::Resolver available? yes
    [3702] dbg: dns: Net::DNS version: 0.57
    [3702] dbg: diag: perl platform: 5.008008 linux
    [3702] dbg: diag: module installed: Digest::SHA1, version 2.10
    [3702] dbg: diag: module installed: HTML::parser, version 3.54
    [3702] dbg: diag: module installed: MIME::Base64, version 3.05
    [3702] dbg: diag: module installed: DB_File, version 1.814
    [3702] dbg: diag: module installed: Net::DNS, version 0.57
    [3702] dbg: diag: module installed: Net::SMTP, version 2.29
    [3702] dbg: diag: module installed: Mail::SPF::Query, version 1.999001
    [3702] dbg: diag: module not installed: IP::Country::Fast ('require' failed)
    [3702] dbg: diag: module installed: Razor2::Client::Agent, version 2.81
    [3702] dbg: diag: module installed: Net::Ident, version 1.20
    [3702] dbg: diag: module not installed: IO::Socket::INET6 ('require' failed)
    [3702] dbg: diag: module not installed: IO::Socket::SSL ('require' failed)
    [3702] dbg: diag: module installed: Time::HiRes, version 1.86
    [3702] dbg: diag: module installed: DBI, version 1.50
    [3702] dbg: diag: module installed: Getopt::Long, version 2.35
    [3702] dbg: diag: module installed: LWP::UserAgent, version 2.033
    [3702] dbg: diag: module installed: HTTP::Date, version 1.47
    [3702] dbg: diag: module installed: Archive::Tar, version 1.29
    [3702] dbg: diag: module installed: IO::Zlib, version 1.04
    [3702] dbg: ignore: using a test message to lint rules
    [3702] dbg: config: using "/etc/spamassassin" for site rules pre files
    [3702] dbg: config: read file /etc/spamassassin/init.pre
    [3702] dbg: config: read file /etc/spamassassin/v310.pre
    [3702] dbg: config: read file /etc/spamassassin/v312.pre
    [3702] dbg: config: using "/opt/MailScanner/etc/spam.assassin.prefs.conf" for sys rules pre files
    [3702] dbg: config: read file /opt/MailScanner/etc/spam.assassin.prefs.conf
    [3702] dbg: config: using "/opt/MailScanner/etc/spam.assassin.prefs.conf" for default rules dir
    [3702] dbg: config: read file /opt/MailScanner/etc/spam.assassin.prefs.conf
    [3702] dbg: config: using "/etc/spamassassin" for site rules dir
    [3702] dbg: config: read file /etc/spamassassin/mailscanner.cf
    [3702] dbg: plugin: loading Mail::SpamAssassin::plugin::URIDNSBL from @INC
    [3702] dbg: plugin: registered Mail::SpamAssassin::plugin::URIDNSBL=HASH(0x89b8dd0)
    [3702] dbg: plugin: loading Mail::SpamAssassin::plugin::Hashcash from @INC
    [3702] dbg: plugin: registered Mail::SpamAssassin::plugin::Hashcash=HASH(0x9376348)
    [3702] dbg: plugin: loading Mail::SpamAssassin::plugin::SPF from @INC
    [3702] dbg: plugin: registered Mail::SpamAssassin::plugin::SPF=HASH(0x939df10)
    [3702] dbg: plugin: loading Mail::SpamAssassin::plugin::DCC from @INC
    [3702] dbg: dcc: network tests on, registering DCC
    [3702] dbg: plugin: registered Mail::SpamAssassin::plugin::DCC=HASH(0x93e992c)
    [3702] dbg: plugin: loading Mail::SpamAssassin::plugin::pyzor from @INC
    [3702] dbg: pyzor: network tests on, attempting Pyzor
    [3702] dbg: plugin: registered Mail::SpamAssassin::plugin::pyzor=HASH(0x9403a34)
    [3702] dbg: plugin: loading Mail::SpamAssassin::plugin::Razor2 from @INC
    [3702] dbg: razor2: razor2 is available, version 2.81
    [3702] dbg: plugin: registered Mail::SpamAssassin::plugin::Razor2=HASH(0x9423990)
    [3702] dbg: plugin: loading Mail::SpamAssassin::plugin::SpamCop from @INC
    [3702] dbg: reporter: network tests on, attempting SpamCop
    [3702] dbg: plugin: registered Mail::SpamAssassin::plugin::SpamCop=HASH(0x943abec)
    [3702] dbg: plugin: loading Mail::SpamAssassin::plugin::AWL from @INC
    [3702] dbg: plugin: registered Mail::SpamAssassin::plugin::AWL=HASH(0x9462cf8)
    [3702] dbg: plugin: loading Mail::SpamAssassin::plugin::AutoLearnThreshold from @INC
    [3702] dbg: plugin: registered Mail::SpamAssassin::plugin::AutoLearnThreshold=HASH(0x946ce9c)
    [3702] dbg: plugin: loading Mail::SpamAssassin::plugin::WhiteListSubject from @INC
    [3702] dbg: plugin: registered Mail::SpamAssassin::plugin::WhiteListSubject=HASH(0x9470b58)
    [3702] dbg: plugin: loading Mail::SpamAssassin::plugin::MIMEHeader from @INC
    [3702] dbg: plugin: registered Mail::SpamAssassin::plugin::MIMEHeader=HASH(0x947c2e8)
    [3702] dbg: plugin: loading Mail::SpamAssassin::plugin::ReplaceTags from @INC
    [3702] dbg: plugin: registered Mail::SpamAssassin::plugin::ReplaceTags=HASH(0x9489d78)
    [3702] info: config: dcc_path "/usr/local/bin/dccproc" isn't an executable
    [3702] warn: config: SpamAssassin failed to parse line, "/usr/local/bin/dccproc" is not valid for "dcc_path", skipping: dcc_path /usr/local/bin/dccproc
    [3702] info: config: dcc_path "/usr/local/bin/dccproc" isn't an executable
    [3702] warn: config: SpamAssassin failed to parse line, "/usr/local/bin/dccproc" is not valid for "dcc_path", skipping: dcc_path /usr/local/bin/dccproc
    [3702] info: config: dcc_path "/usr/local/bin/dccproc" isn't an executable
    [3702] warn: config: SpamAssassin failed to parse line, "/usr/local/bin/dccproc" is not valid for "dcc_path", skipping: dcc_path /usr/local/bin/dccproc
    [3702] dbg: plugin: Mail::SpamAssassin::plugin::ReplaceTags=HASH(0x9489d78) implements 'finish_parsing_end'
    [3702] dbg: replacetags: replacing tags
    [3702] dbg: replacetags: done replacing tags
    [3702] dbg: bayes: no dbs present, cannot tie DB R/O: /var/spool/MailScanner/spamassassin/bayes_toks
    [3702] dbg: config: score set 1 chosen.
    [3702] dbg: message: ---- MIME PARSER START ----
    [3702] dbg: message: main message type: text/plain
    [3702] dbg: message: parsing normal part
    [3702] dbg: message: added part, type: text/plain
    [3702] dbg: message: ---- MIME PARSER END ----
    [3702] dbg: bayes: no dbs present, cannot tie DB R/O: /var/spool/MailScanner/spamassassin/bayes_toks
    [3702] dbg: dns: dns_available set to yes in config file, skipping test
    [3702] dbg: metadata: X-Spam-Relays-Trusted:
    [3702] dbg: metadata: X-Spam-Relays-Untrusted:
    [3702] dbg: metadata: X-Spam-Relays-Internal:
    [3702] dbg: metadata: X-Spam-Relays-External:
    [3702] dbg: message: no encoding detected
    [3702] dbg: plugin: Mail::SpamAssassin::plugin::URIDNSBL=HASH(0x89b8dd0) implements 'parsed_metadata'
    [3702] dbg: uridnsbl: domains to query:
    [3702] dbg: plugin: Mail::SpamAssassin::plugin::URIDNSBL=HASH(0x89b8dd0) implements 'check_post_dnsbl'
    [3702] dbg: check: is spam? score=0 required=5
    [3702] dbg: check: tests=
    [3702] dbg: check: subtests=
    [3702] warn: lint: 3 issues detected, please rerun with debug enabled for more information

    I have been trying for over an hour to figure out what these 3 issues are, and how to fix them. I am a linux newbie, so I am just trying to take in the most I can.

    If anyone has ANY SUGGESTIONS AT ALL, I am open to them. I am really stuck right now and could appreciate any and all help.

    Can someone with some more experience guide me in the right direction so I can fix this problem and will let me move on to the next steps?

    Thanks a lot guys, I look forward to hearing from you :D
     
  2. falko

    falko Super Moderator

    Some Perl modules are missing: IP::Country and IO::Socket. Please install them.

    Then there seems to be something wrong with DCC. Is it installed? Are the paths to it correct in your SpamAssassin configuration?
     

Share This Page