Sergio de Almeida Lenzi wrote:
hello list

can someone point me to a documentation for version 3.9.0 of dspam ??

I need do setup for sendmail, for the training on each user (120 users)
The problem here is that documentation I read in internet points
that I need to create an alias in the form:

dspam: "| /usr/local/bin/dspam --class=spam ....."

note that it does not have the "--user=" keyword as it supose that dspam
will
read the user from the email itsself

the problem is that version 3.9.0 does not accept this setup.


any help would be appreciate

Thanks in advance,
Sergio

_______________________________________________
Dspam-user mailing list
Dspam-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-user

Hello Sergio,

when You do not want "old hard way", one alias for each user, You can, for creating catch-all entry in sendmail MTA scenario, use following:

1) "/etc/aliases":
# syste-wide catch-all alias for DSPAM error training entry:
spam-dspam:     "|/usr/bin/dspam --user root --class=spam --source=error"


2) in "/etc/mail/sendmail.mc", somewhere after "MAILER" macros:
dnl #----------- regex map for rewriting 'spa...@mydomain.com' to 'spam-ds...@mydomain.com' -------
dnl #
dnl # macro LOCAL_CONFIG introduces lines added after the boilerplate option
dnl # setting but before rulesets - suitable for local database maps declaration:
LOCAL_CONFIG
dnl # substrins 1 and 2 (-s1,2), delimiter '+' (-d+), rewrite all which begin with 'spam-'
dnl Ktodspam regex -s1 -a-dspam ^(gugu)-([^-]+)$$
Ktodspam regex -s1 -a-dspam ^(spam)-.*$
dnl #
LOCAL_RULE_0
dnl # Option OperatorChars define list of characters, that delimit tokens
dnl # '$=w' : set of all names this host is known by (== match local hostnames) dnl # '$:' at beginning of RHS cause the ruleset to return with the remainder of the RHS as the value dnl # '$@' at beginning of RHS cause the rule to terminate immediately (but the ruleset to continue)
R$+ < @ $=w . >         $: $(todspam $1 $: $1 $) < @ $2 . >
dnl R$+ < @ $=w . >             $: $(todspam $1 $@ $1 $) < @ $2 . >
dnl #
dnl #---------- regex map end ---------

Note1: All after "dnl" is comment, thus these lines may be cut out
Note2: sendmail.mc must be converted to sendmail.cf (usually Makefile
 in /etc/mail will do it)
Note3: because code above may be wrapped, and because there must be tabs (not spaces!) between left rule part (LHS) and right rule part (RHS), I sent this part as attachment too.

Maybe it would be best, in DSPAM docs, mention methods for creating these catch-all entries for common MTAs.

Regards, Franta Hanzlik

Attachment: dspam-sendmail-catchall.mc.gz
Description: application/compressed-tar

------------------------------------------------------------------------------
_______________________________________________
Dspam-user mailing list
Dspam-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-user

Reply via email to