Thanks Tom for your explanation. You were rigth, Iwas mistaken.
My question was about the 'To: ' field. Anymway, this is my dspam config :

in /etc/aliases :

spam: "|/usr/bin/dspam --user root --class=spam --source=error"
notspam: "|/usr/bin/dspam --user dspam --class=innocent --source=error"


in /etc/postfix/main.cf


smtpd_recipient_restrictions = permit_sasl_authenticated,
permit_mynetworks, reject_unauth_destination,
reject_invalid_hostname,reject_non_fqdn_sender, reject_non_fqdn_recipient,
reject_unknown_sender_domain, reject_unknown_recipient_domain,
reject_unauth_pipelining, reject_rbl_client
bl.spamcop.net,check_recipient_access
pcre:/etc/postfix/dspam_check_aliases, check_sender_access
pcre:/etc/postfix/dspam_check_aliases


in /etc/postfix/master.cf

smtp      inet  n       -       n       -       -       smtpd

dspam   unix    -       n       n       -       -    pipe
  flags=Ru user=dspam argv=/usr/bin/dspam --client --deliver=innocent
--user ${recipient} --mail-from=${sender}

127.0.0.1:10034   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



in /etc/postfix/dspam_filter_access

/^(spam|ham)@.*$/ OK

/./   FILTER dspam:dspam


If something is missing, let me know.

James



2012/12/21 Tom Hendrikx <t...@whyscream.net>

> On 12/20/12 4:15 PM, James James wrote:
> > Thanks, I will try to do that.
> >
> > 2012/12/20 Tom Hendrikx <t...@whyscream.net <mailto:t...@whyscream.net>>
> >
> >     On 12/19/12 10:29 PM, James James wrote:
> >     > Hello,
> >     >
> >     > I am looking a a way to eliminate spams which are post to a
> >     mailing list
> >     > or an alias.
> >     >
> >
> >     Are you the one running the mailing list, or are you just on the
> >     receiving end? For the latter, there's no difference between
> 'regular'
> >     mail and mailing list stuff.
> >
> >
> > I can bounce/forward the received mail to {spam/nopsam}@mydomain.com
> > <mailto:nopsam...@mydomain.com> to train dspam ?
>
> If you did setup your mail system to handle that way of retraining. The
> actual retraining will happen based on the signature stored in the
> message body. DSPAM already stored all interesting information when it
> added that signature, so only the signature is important.
>
> >
> >     If the above does not help you: please explain more on your actual
> >     problem :)
> >
> >
> > When the 'From : ' field is not your mail address but an alias/mailing
> > list  in which you are how to be sure that dspam is trained for this
> > message ?
> >
> > I don't know if this is more clear  ... ;)
>
> I guess this mean you're on the receiving end of a mailing list. The
> From: address is never yours, but the To: address should be (but can be
> different when sent on an mailing list, or as Bcc, etc etc...). I'll
> assume you meant the To: header.
>
> Anyway: These headers are not important: DSPAM will learn the message
> for the user that is specified as the --user attribute on the
> dspam/dspamc commandline, or as the Envelope recipient (when using LMTP).
>
> In both cases your MTA should already have the message with your real
> address as the recipient, and you should pass that address to DSPAM. In
> short: show us how you integrated DSPAM in your mail setup, and we'll
> tell you how DSPAM finds out which username to use.
>
> --
> Tom
>
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> Dspam-user mailing list
> Dspam-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspam-user
>
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Dspam-user mailing list
Dspam-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-user

Reply via email to