On Aug 1, 2010, at 3:07 PM, Stevan Bajić wrote:

On Sat, 31 Jul 2010 13:24:25 -0400
Devin Ceartas <nacred...@gmail.com> wrote:

On Jul 31, 2010, at 12:06 PM, Stevan Bajić wrote:

On Sat, 31 Jul 2010 11:50:22 -0400
Devin Ceartas <nacred...@gmail.com> wrote:

Y'all are good at hijacking a thread! :-)

If I might interrupt to interject something on-topic -- I don't seem
to be able to get any sort of quarantine to work at all. Tagging
works
fine, but I've pretty much tried every variant on quarantine and
email
is simply delivered, so I must be missing something. I compiled dspam
on OpenBSD 4.6 stable and am running it as a daemon.

More info please:
- content of dspam.conf
- version of DSPAM
- output of "dspam --version"
- how is it implemented into your MTA?
- configuration you used to implement DSPAM into your MTA


- -devin

--
Kind Regards from Switzerland,

Stevan Bajić




# dspam --version

DSPAM Anti-Spam Suite 3.9.0 (agent/library)

Copyright (c) 2002-2009 DSPAM Project
http://dspam.sourceforge.net.

DSPAM may be copied only under the terms of the GNU General Public
License,
a copy of which can be found with the DSPAM distribution kit.

Configuration parameters: '--enable-domain-scale' '--enable-debug' '--
enable-daemon'


FROM postfix's master.cf:

smtp      inet  n       -       -       -       -       smtpd
   -o content_filter=lmtp:unix:dspam.sock

This is not relevant for the current case but should that path there not be absolut?

(see below re: chroot)



[....]

localhost:10026 inet  n -       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

Please change this to the following and let me know if this works for you:
localhost:10026 inet n  -       n       -       -       smtpd
   -o content_filter=
   -o local_header_rewrite_clients=
   -o local_recipient_maps=
   -o mynetworks=127.0.0.0/8
   -o mynetworks_style=host
-o receive_override_options =no_unknown_recipient_checks,no_header_body_checks,no_milters
   -o relay_recipient_maps=
   -o smtp_send_xforward_command=yes
   -o smtpd_authorized_xforward_hosts=127.0.0.0/8
   -o smtpd_client_connection_count_limit=0
   -o smtpd_client_connection_rate_limit=0
   -o smtpd_client_restrictions=permit_mynetworks,reject
   -o smtpd_data_restrictions=reject_unauth_pipelining
   -o smtpd_delay_reject=no
   -o smtpd_end_of_data_restrictions=
   -o smtpd_error_sleep_time=0
   -o smtpd_hard_error_limit=1000
   -o smtpd_helo_restrictions=
   -o smtpd_recipient_restrictions=permit_mynetworks,reject
   -o smtpd_restriction_classes=
   -o smtpd_sender_restrictions=
   -o smtpd_soft_error_limit=1001
   -o strict_rfc821_envelopes=yes



Making this change seems to have no effect. Mail is continued to be delivered, tagged when tagging is set and spam sent on to the user (not quarantined) when quarantine is set.

[...]


# Most operating system defaults:
#TrustedDeliveryAgent "/usr/bin/procmail"       # Linux
#TrustedDeliveryAgent "/usr/bin/mail"           # Solaris
#TrustedDeliveryAgent "/usr/libexec/mail.local" # FreeBSD
#TrustedDeliveryAgent "/usr/bin/procmail"       # Cygwin
#
# Other popular configurations:
#TrustedDeliveryAgent "/usr/cyrus/bin/deliver"  # Cyrus
#TrustedDeliveryAgent "/bin/maildrop"           # Maildrop
#TrustedDeliveryAgent "/usr/local/sbin/exim -oMr spam-scanned" # Exim
#
#TrustedDeliveryAgent "/usr/bin/procmail"

Please set this option. If I am not wrong then not setting this option automatically uses procmail and I am not sure if that is what you want.


Not sure what to set the delivery agents to. The system is working, except for quarantine, now. I guess I want the mail delivered by LMTP? What should be entered for that?



#
# Untrusted Delivery Agent: Specifies the local delivery agent and
arguments
# DSPAM should use when delivering mail and running in untrusted user
mode.
# Because DSPAM will not allow pass-through arguments to be specified to
# untrusted users, all arguments should be specified here. Use %u to
specify
# the user DSPAM is processing mail for. This configuration parameter
is only
# necessary if you plan on allowing untrusted processing.
#
#UntrustedDeliveryAgent "/usr/bin/procmail -d %u"

And set this option too.


[...]

Depending on
# how many resources you are willing to trade off vs. accuracy, you may
# choose to use a less or more detailed tokenizer:
#   word    uniGram (single word) tokenizer
#           Tokenizes message into single individual words/tokens
#           example: "free" and "viagra"
#   chain   biGram (chained tokens) tokenizer (default)
#           Single words + chains adjacent tokens together
#           example: "free" and "viagra" and "free viagra"
#   sbph    Sparse Binary Polynomial Hashing tokenizer
#           Creates sparse token patterns across sliding window of 5-
tokens
# example: "the quick * fox jumped" and "the * * fox jumped"
#   osb     Orthogonal Sparse biGram tokenizer
#           Similar to SBPH, but only uses the biGrams
#           example: "the * * fox" and "the * * * jumped"
#
Tokenizer chain

Any reason you use the chain tokenizer?

Not really, just sounded like it might lead to increased accuracy. At this point I can afford the "trade off" mentioned in the comments.

[...]


eliminates
# much of the bandwidth overhead.
#
ServerDomainSocketPath  "/var/spool/postfix/dspam.sock"

Aha. Okay. I see. You pushed dspam.sock int to Postfix spool directory. That's the reason that you have set the dspam.sock as releative path in master.cf.


Right, I think I had to do that because of the chroot in postfix is running under. Could chroot settings impact the quarantine functioning?

[...]

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Dspam-user mailing list
Dspam-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-user

Reply via email to