How to block spam emails if they have same sender and receptionist address for single user using POSTFIX.

December 11, 2018 810 views
Linux Basics Linux Commands CentOS

I am using postfix, but someone trying to hack me and sending spam email to get paid, So far I have blocked emails using headerchecks and bodychecks but now he is sender spam emails in the Chinese language. with same my email address to me. I wanted to block the same emails from my own address to me please help.

1 Answer

Hey friend,

Personally I enjoy rspamd for filtering spam with Postfix:
https://rspamd.com/

That said, there's only one way that I can think of for a "one size fits all" fix on this. Are they sending these emails from a specific server, or through a large mailing service? If they're sending from one server, grab that server's IP from your logs and black hole it like this:

ip route add blackhole 1.1.1.1
(Replace 1.1.1.1 with their server IP)

If it's always the same sender, I'm pretty sure this still works, despite it's age:
https://www.cyberciti.biz/faq/howto-blacklist-reject-sender-email-address/

Jarland

Have another answer? Share your knowledge.