Report this

What is the reason for this report?

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

Posted on December 11, 2018

I am using postfix, but someone trying to hack me and sending spam email to get paid, So far I have blocked emails using header_checks and body_checks 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.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi, this question keeps popping up in my google searches and even though it is a bit old I think it deserves a longer answer. Basically, your server should drop emails from IP addresses that connecting to it claiming to send email from you.

How? Use SPF records on your domain name. SPF records indicate which hosts and ip addresses are effectively used by you to send email as that domain name. Implementing such an SPF record, and the corresponding SPF checking on incoming email on your server will help with your problem. And it will also enhance your servers ability to drop spammy email. This guide explains EVERYTHING: https://workaround.org/ispmail

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

No, they are from various IP’s. Every time it is coming from different IP.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.