简体   繁体   中英

Using exim to delete emails via a whitelist

I have a whitelist of emails that I want to keep in my mail queue as I've got a lot of spam from unauthorized email addresses that were added from a recent intrusion. How would I go about using exim to find the emails that don't match my whitelist and to remove them from the queue?

Well, most modern MTAs have built-in capabilities to apply some anti-spamming techniques and/or use some anti-spamming services like RBL. You may check eg this doc to get started http://www.maretmanu.org/homepage/inform/exim-spam.php .

If you need to manage the queue "ad-hoc", then there're exiqgrep -f [user]@domain command to search for a specific sender in the queue, exiqgrep -r [user]@domain for a specific recipient and exim -Mrm <message-id> to remove a message w/ a specific Message-Id from the queue. See more at http://www.ndchost.com/wiki/mail/exim-management

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM