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