8 messages in net.sourceforge.lists.courier-maildropRE: [maildropl] Move all messages of ...
FromSent OnAttachments
juanmiDec 20, 2005 4:14 am 
Tony EarnshawDec 20, 2005 5:53 am 
juanmiDec 20, 2005 6:47 am 
Tony EarnshawDec 20, 2005 7:14 am 
juanmiDec 20, 2005 8:08 am 
juanmiDec 21, 2005 4:36 am 
Tony EarnshawDec 21, 2005 5:55 am 
juanmiDec 21, 2005 7:27 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:RE: [maildropl] Move all messages of nonexistent mailboxesActions...
From:juanmi (jua@planalfa.es)
Date:Dec 21, 2005 7:27:38 am
List:net.sourceforge.lists.courier-maildrop

The srcipt not work, sorry for my english. The code is OK?

Thanks Tony /etc/maildroprc ========================================================== if ( $SIZE < 26144 ) { exception { xfilter "/usr/bin/spamassassin" } }

`test -d $HOME/Maildir/`

if( $RETURNCODE == 1 ) { exception { to /cartas/domain.com/spam/Maildir/new } }

else { if (/^X-Spam-Flag: *YES/) { exception { to "$HOME/$DEFAULT/.Spam" } } else { exception { to "$HOME/$DEFAULT" } } } ==================================================

-----Mensaje original----- De: Tony Earnshaw Para: ''cour@lists.sourceforge.net' ' Enviado el: 20/12/05 16:13 Asunto: Re: [maildropl] Move all messages of nonexistent mailboxes

juanmi wrote:

My Mail Server is this:

Debian Sarge (updated) Postfix 2.1.5-9 Maildrop 1.6.3

Yor answer say me: "refus mail for non-existent accounts in the first place" I explain: I dont permit relay to non-existanaccounts in my MTA. When I say non-existanaccounts i try say for example your mail ton@barlaeus.nl (i put one mor "n"), the mail go to your server

and

say me "that user is unknow". I try refuse this mails with luser_relay=sp@domain.com in main.cf (but not work).

That's no good - you *have* to read the Postfix docs, try: Rejecting Unknown Local Recipients with Postfix http://www.postfix.org/LOCAL_RECIPIENT_README.html. This is 2.2 documentation, but the same applies to 2.1.

The Spammer send to my domain with non-existent accounts for example (jua@domain.com is existent but no 3dju@domain.com) I need

move

the mail to 3dju@domain.com to the mailbox sp@domain.com. I

will

have a mailbox with all spam to non-exisatant accounts with this solution and i will can teach spamassassin.

I try compose a similar code of this to put in maildroprc (I don?t know the code) if you can help me :-(.

if ( /^To: NON-@domain.com ) { exception { to "sp@domain.com" } } else { exception { to "$HOME/$DEFAULT" } }

No. # make sure Maildir exists `test -d $HOME/Maildir/` # or wherever the Maildir should be if( $RETURNCODE == 1 ) { to /dev/null # or wherever you want. }

Best,

--Tonni