LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-25-2004, 09:49 PM   #1
rj1
LQ Newbie
 
Registered: Feb 2004
Location: Australia
Distribution: Debian
Posts: 7

Rep: Reputation: 0
Configuring DSPAM using qmail??


Hi, I am trying to set up DSPAM on my mail server and am having problems reconfiguring my mail delivery agent. I am using qmail's version of sendmail to deliver mail.

I have updated the following links to incorporate DSPAM
in /usr/sbin:
lrwxrwxrwx 1 root root 20 Aug 25 16:15 sendmail -> /usr/local/bin/dspam
in /usr/lib:
lrwxrwxrwx 1 root root 20 Aug 25 16:15 sendmail -> /usr/local/bin/dspam
these previously pointed to /var/qmail/bin/sendmail

i have set up some aliases and can deliver mail to spam-user@mydomain.com.au but i get this error when doing dspam_stats user to test it
Could not init context: No such file or directory

also, no data files have been created in /var/dspam/

Is this a permissions problem or do i not have my mail being sent through dspam?

Thanks
 
Old 09-09-2004, 03:47 PM   #2
stoffell
Member
 
Registered: Apr 2003
Location: belgium
Distribution: debian
Posts: 72

Rep: Reputation: 15
hi,
permissions problem in my opinion...
put a file (an empty) called ".debug" in your /var/dspam dir (and make sure you compile dspam with the debug parameter)...

let us know what you get?
 
Old 09-22-2004, 08:50 PM   #3
rj1
LQ Newbie
 
Registered: Feb 2004
Location: Australia
Distribution: Debian
Posts: 7

Original Poster
Rep: Reputation: 0
ok i recompiled dspam with the --debug flag and it created a dspam.debug (not .debug) file. in the file is -
521: [Tue Sep 21 23:00:01 2004] No training mode was specified, you insensitive clod!
1085: [Wed Sep 22 01:23:42 2004] No training mode was specified, you insensitive clod!

im not sure if this is a problem, but i can send and receive mail now. i renamed the "dspam" script to "sendmail" in /var/qmail/bin/sendmail to act as my mail delivery agent. i renamed the actual sendmail i was using before.

The only problem i have now is that mutt cant seem to be able to send mail using the new dspam delivery agent. i have a program which emails reports to me using mutt. the command is something like -
mutt -s "SALES REPORT" -i dflog/sales_report rj1@mydomain.com

i think mutt uses sendmail to deliver mail and i have linked /usr/sbin/sendmail to /var/qmail/bin/sendmail.
 
Old 09-26-2004, 12:30 PM   #4
stoffell
Member
 
Registered: Apr 2003
Location: belgium
Distribution: debian
Posts: 72

Rep: Reputation: 15
no training mode means dspam isn't doing anything to the message.. here's a sample line that makes dspam scan a message and deliver it back to stdout. (depening on your mailsetup you might need to remove the stdout parameter)

/usr/local/bin/dspam --user your.username --mode=toe --stdout --deliver=innocent,spam --feature=ch,no,wh

if you create a file called .debug (an empty one!) in the /var/dspam dir, your dspam.debug log will grow larger with much more info in it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dspam karunesh Linux - General 2 07-27-2004 10:44 AM
qmail +qmail-qfilter + qmail-scanner-queue+qmail-user-masq.pl problem countcobolt Linux - Networking 0 07-08-2004 11:29 AM
Configuring qmail-smtpd tveiga Linux - Software 1 01-16-2004 03:17 PM
Dspam ekoome Red Hat 4 10-03-2003 10:19 AM
Configuring qmail vanja2003 Linux - Software 2 06-29-2003 05:30 AM


All times are GMT -5. The time now is 05:21 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration