2 messages in net.sourceforge.lists.courier-maildrop[maildropl] /etc/mailfilterrc nor any...
FromSent OnAttachments
Niclas SöderlundOct 6, 2002 8:39 am 
Mark WeinemOct 8, 2002 2:40 pm 
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:[maildropl] /etc/mailfilterrc nor any other file works :-(Actions...
From:Niclas Söderlund (nic@soderlund.org)
Date:Oct 6, 2002 8:39:40 am
List:net.sourceforge.lists.courier-maildrop

Hi there,

im running courier-pop3d for my pop, got postfix collecting the mail, and in my /etc/postfix/main.cf :

mailbox_command = maildrop -d $recipient

to deliver it to maildirs. All this works fine, since I have made it clear that I want maildirs by adding in my /etc/maildroprc:

DEFAULT="$HOME/Maildir"

BUT..now I want a featured, enabling me to filter out a few emailaddresses and possibly a few whole domains from which i DONT want mailed even to be delivered to my, sending is fine, but mail addressed from these places I want dropped to /dev/null immediately.

Now, I thought I could add something like this in my /etc/maildroprc:

if ( /^From: *!.*/ && lookup( $MATCH2, "/etc/postfix/bitbucket.list" ) { exit }

and in the /etc/postfix/bitbucket.list i got:

te@test.com ns-s@home.se

etc

Doesnt work. Even if I put "exit" as the first line of /etc/maildroprc it doesnt fail. Doesnt seem to read the file at all.

Any help is welcome, also whole solution on how to persue the things I want, not necesseraly this setup.

Regards,

Niclas