Toon posts:

maildrop

Pagina: 1
Acties:

Verwijderd

Topicstarter
Hallo,

Een kleine vraag. Ik gebruik maildrop om SPAM te filteren.

Alleen onderstaande code stuurt alles door. Ook de berichten die gemarkeerd zijn als spam.

Iemand enig idee?

Alvast bedankt.

SHELL="/bin/sh"

VPOP="| /home//vpopmail/bin/vdelivermail '' bounce-no-mailbox"
VHOME=`/home/vpopmail/bin/vuserinfo -d testing@domeinnaam.nl`

if (/^X-Spam-Flag: *YES/)


{
# make sure .Spam folder exists
`test -d /home/spam/`
if( $RETURNCODE == 1 )
{
`/home/spam/`
}
# then try delivering to the Spam folder
exception {
to "/home/spam/"
}
}
# Default delivery
exception {
to "$VHOME/Maildir/"
}

[ Voor 69% gewijzigd door Verwijderd op 26-02-2004 14:01 ]


Verwijderd

Is het niet een idee procmail te gebruiken ipv maildrop? Op www.spamassassin.org staan wel aardige howto's.

[ Voor 6% gewijzigd door Verwijderd op 26-02-2004 14:29 ]


Verwijderd

Topicstarter
Misschien wel, maar ziet iemand niet een foutieve code tussen de mijne staan?

Alles is namelijk al geïnstalleerd met maildrop.

  • raymondw
  • Registratie: November 2000
  • Laatst online: 12:43
Google
http://www.google.com/sea...&oe=UTF-8&q=maildrop+vpop

*Hint*
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
####################################################
VPOP="| /var/vpopmail/pop/bin/vdelivermail '' bounce-no-mailbox"
VHOME=`/var/vpopmail/pop/bin/vuserinfo -d $EXT@$HOST`

if ( $SIZE < 262144 )
{
        exception {
                xfilter "/usr/bin/spamc -f -u $EXT@$HOST"
        }
}

if (/^X-Spam-Flag: *YES/)
{
        exception {
                include $VHOME/Maildir/.mailfilter
        }
## IF YOU WANT TO GATHER ALL SPAM INTO 1 MAILDRIR
        #exception {
        #        to /home/pop/spam/
        #}
## OR IF YOU WANT TO DELIVER SPAM TO THE USERS MAILDIR
        exception {
                to "$VPOP"
        }
}
else
{
        exception {
                include $VHOME/Maildir/.mailfilter
        }
        exception {
                to "$VPOP"
        }
}
####################################################


Verder lijkt het mij dat je zelf ook wat beter moet zoeken......
maildrop

to linux or not ,that's my quest... | 5800X | 32GB 3800C15 | X570-Pro | 980 1TB | 7900XTX | PVoutput | Fiets


Verwijderd

Waar ik dan wel benieuwd naar ben is t verschil tussen procmail en maildrop.. vooral op wat grotere systemen... Hebben hier procmail voor veeeel users draaien en t vreet gewoon machinetijd/resources..

Zou maildrop sneller zijn ?

Zal ns ff googelen, maar mensen hier ervaringen met beide systemen tov elkaar ?

(p.s. nieuw hier op got..) hoi allemaal !!

----------- Hmmm klinkt wel ok..

Unlike procmail, maildrop uses a structured filtering language.

maildrop is written in C++, and is significantly larger than procmail in compiled form. However, it uses resources much more efficiently. Unlike procmail, maildrop will not read a 10 megabyte mail message into memory. Large messages are saved in a temporary file, and are filtered from the temporary file. Temporary files are saved in the user's home directory. If the standard input to maildrop is a file, and not a pipe, a temporary file will not be necessary.

maildrop checks the syntax of the mail delivery instructions the filter file, before attempting to deliver a message. Unlike procmail, if the filter file contains syntax errors, maildrop terminates without delivering the message. The user can fix the typo without causing any mail to be lost.

-----------

[ Voor 55% gewijzigd door Verwijderd op 27-02-2004 17:21 . Reden: update ]