procmail help
Giorgos Keramidas
keramida at ceid.upatras.gr
Mon Aug 20 00:16:01 EEST 2001
From: DJ Art <djart at linux.gr>
Subject: procmail help
Date: Fri, Aug 17, 2001 at 01:15:53PM +0300
> Θέλω να χρησιμοποιήσω το procmail (μέσω .forward), αλλά να μην
> ταξινομεί σε φακέλους, μόνο να στέλνει τα spam στο /dev/null και όλα τα
> υπόλοιπα e-mail να τα κάνει forward σε άλλη διεύθυνση. Η παρακάτω
> σύνταξη είναι σωστή ??
>
> :0
> * ^From.*spammer at spam.sp
> /dev/null
>
> :0
> ! elsewhere at place.gr
Analoga me to ti perimeneis na kanei to parapano ruleset. O prwtos
kanonas tha doulepsei, kai tha steilei ta mail pou kanoun match ontws
sto /dev/null. O deuteros den eimai sigouros gia to ti tha kanei,
afou den exei kapoio 'action' apo kato.
Ego sinithos xrhsimopoiw to procmail kapos etsi:
#
# When nothing else matches, deliver the mail in this Mailbox.
#
DEFAULT=$HOME/mail/INBOX
#
# Rules that will filter out a few spammers.
#
:0 H
* ^From[: ].*spammer at spam.sp
/dev/null
:0 H
* ^From[: ].*@spammer.domain.something
/dev/null
#
# Rules for mailing lists.
#
:0 H
* ^Sender:.*freebsd-chat-owner at freebsd.org
freebsd.chat
# etc, etc.
#
# EOF: if no rule matched, the mail will be delivered to $DEFAULT mailbox
#
Akoma kalutera, an baleis opws eixa kapoia periodo to procmail gia
local delivery agent sto Sendmail sou, me tis analoges allages sto
master-config tou Sendmail[1] (sinithos arkei na baleis ena
FEATURE(`local_procmail')dnl
kapou ekei mesa, kai preprocess me m4), mporeis na ftiajeis ena
system-wide procmailrc sto /usr/local/etc/procmailrc pou na einai
kapos etsi:
# Default delivery is to $HOME/Mailbox
DEFAULT=$HOME/Mailbox
# Rules for antivirus and antispam filters...
Etsi mporeis na ftiajeis filters pou tha einai energa gia olous tous
users, kai na mporeis na allazeis ta filtra pou `koboun' ta mail
kentrika, xoris na xreiazetai kathe user na exei kai ena diko tou
procmailrc me tous idious kanones.
An to kaneis etsi, mia kalh idea einai na min ta 'petas sto /dev/null'
kateu8eian, alla na kaneis forward ta mail pou epiase kapoio filtro se
kapoio mailbox (p.x sto postmaster+spam at localhost), to opoio o
postmaster tha elegxei periodika, wste na blepeis ti ekopsan ta filtra
kai na mporeis na deis an kati paei straba (opws p.x. ena valid mail
pou ekane match me kapoio spam kanona kata lathos) giati gi' auto to
post to filtering sou den doulepse.
-giorgos
[1] Fusika antistoixos tropos uparxei kai se allous MTA na baleis to
procmail na kanei local delivery, opws p.x. Qmail, Postfix, h
Exim, apla bariemai na grapso gia kathena apo autous pos akribos
ginetai.
More information about the Linux-greek-users
mailing list