[Workaround.org] Problem with Sieve

Giorgio Zunino giorgiozunino at gmail.com
Thu Aug 7 22:14:33 CEST 2008


i have a little question......where is the spam folder?????.......i don't
understand.

i need to create that folder?

im newbie with this....please i need help.

thanks!

2008/6/10 Daniel Baumann <dan.baumann at gmx.ch>

> Hello Harald
>
> > Harald Wachauer wrote on 10. June 2008:
> >
> >> Daniel Baumann wrote on 09. June 2008:
> >>
> >>> Harald Wachauer wrote on 09. June 2008:
> >>>
> >>> [Sieve...]
> >>
> >> Do you use amavisd-new? If yes, have a look at the...
> >>
> >> /etc/amavis/conf.d/20-debian_defaults
> >>
> >> ...there you can do such settings and you will only use...
> >>
> >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >> require ["fileinto"];
> >> # Move spam to spam folder
> >> if header :contains "X-Spam-Flag" ["YES"] {
> >> fileinto "spam";
> >>stop;
> >> }
> >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >>
> >> ...as globalsieverc.
> >
> > Thanks for the answer.
> > Yes, i use amavisd-new.
> > I took a look to the "20-debian_defaults"
> > But i can not find the setting i need.
> > I think i have to say that any Mail with Spam-Level equal or higher 8
> > should be discard.
>
> /etc/amavis/conf.d/20-debian_defaults
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> [...]
>
> 27 $sa_spam_subject_tag = '***SPAM*** ';
> 28 $sa_tag_level_deflt  = undef;  # add spam info headers if at, or above
> that level
> 29 $sa_tag2_level_deflt = 3.5; # add 'spam detected' headers at that level
> 30 $sa_kill_level_deflt = 8; # triggers spam evasive actions
> 31 $sa_dsn_cutoff_level = 10;   # spam level beyond which a DSN is not sent
>
> 32 $sa_mail_body_size_limit = 200*1024; # don't waste time on SA if mail is
> larger
> 33 $sa_local_tests_only = 0;# only tests which do not require internet
> access?
>
> 34 # Quota limits to avoid bombs (like 42.zip)
>
> 35 $MAXLEVELS = 14;
> 36 $MAXFILES = 1500;
> 37 $MIN_EXPANSION_QUOTA =  100*1024;  # bytes
> 38 $MAX_EXPANSION_QUOTA = 300*1024*1024;  # bytes
>
> 39 # You should:
> 40 #   Use D_DISCARD to discard data (viruses)
> 41 #   Use D_BOUNCE to generate local bounces by amavisd-new
> 42 #   Use D_REJECT to generate local or remote bounces by the calling MTA
> 43 #   Use D_PASS to deliver the message
> 44 #
> 45 # Whatever you do, *NEVER* use D_REJECT if you have other MTAs
> *forwarding*
> 46 # mail to your account.  Use D_BOUNCE instead, otherwise you are
> delegating
> 47 # the bounce work to your friendly forwarders, which might not like it
> at all.
> 48 #
> 49 # On dual-MTA setups, one can often D_REJECT, as this just makes your
> own
> 50 # MTA generate the bounce message.  Test it first.
> 51 #
> 52 # Bouncing viruses is stupid, always discard them after you are sure the
> AV
> 53 # is working correctly.  Bouncing real SPAM is also useless, if you
> cannot
> 54 # D_REJECT it (and don't D_REJECT mail coming from your forwarders!).
>
> 55 $final_virus_destiny  = D_DISCARD;  # (data not lost, see virus
> quarantine)
> 56 $final_banned_destiny = D_BOUNCE;   # D_REJECT when front-end MTA
> 57 $final_spam_destiny   = D_DISCARD;
> 58 $final_bad_header_destiny = D_PASS; # False-positive prone (for spam)
>
> [...]
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Have a look at the line numbers 30 and 57.
>
> If you do the settings like shown on line number 30 and 57 you
> have only to write your */globalsieverc ...
>
> require ["fileinto"];
> # Move spam to spam folder
> if header :contains "X-Spam-Flag" ["YES"] {
>  fileinto "spam";
>  stop;
> }
>
> ...and all will work in your way... ;-)
>
>
> Greets
> Daniel Baumann
> _______________________________________________
> Workaround-chitchat mailing list
> Workaround-chitchat at workaround.org
> http://workaround.org/cgi-bin/mailman/listinfo/workaround-chitchat
>



-- 
Giorgio Zunino M.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://workaround.org/pipermail/workaround-chitchat/attachments/20080807/cb46f6c3/attachment.htm 


More information about the Workaround-chitchat mailing list