Score:0

Using spamassassin + dovecot/postfix, how do you block messages from a blacklisted address instead of route to junk folder?

cn flag

I have set up an email server using a wizard tool, although I was hoping to alter the default behavior configuration such that when I receive emails from addresses I explicitly blacklist, those messages are immediately deleted as opposed to routed to the Junk folder.

I have currently been manually blacklisting addresses by adding blacklist_from address@domain.com to /etc/mail/spamassassin/local.cf and restarting the daemons. Is there a better method of doing this without using a particular client?

This my current rules for handling junk mail as set in contents of /var/lib/dovecot/sieve/default.sieve.

require ["fileinto", "mailbox"];
if header :contains "X-Spam-Flag" "YES"
        {   
                fileinto "Junk";
        }   
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.