How do you block spam going from your domain email (hacked)


How do you block spam going from your domain email (hacked). Let say someone assumed your user password or they hacked email code.

**I created my own solution. in ubuntu **

But i want to find out how others manage it. What are the solution. I see greylisting in postfix that really do not solve anything. Most of the people talking about incoming spam. I really do not care as it is more of harmless stuff and intelligent filter can sort that out.

Your ip gets blocked if your email spamming others. if many people work on project bad code can get in. For example there are many websites in an account and someone put some wordpress website in one the domain and that is vulnerable to hacking.

I googled but no one is done anything for outgoing spam.

질문됨 2년 전289회 조회
2개 답변

I asked hypothetical question. I wanted to find how people prepare for it. Only people with experience in this know how to fix it before it happens. I am very close to stop outgoing spam using postfix filters. Greylisting can be used for incoming spam.

답변함 2년 전
  • If a hacker has the skill to get into your instance and use your mail server to send spam out, they probably have the skill to evade outgoing filters.

    That said, there are way to have services like spamassassin scan outgoing email, but I haven't looked into them.


Well, if your instance has been hacked, I would suggest shutting down the mail server and focus on getting your server secure.

After you've secured your server, clear the outgoing mail queue.

profile picture
David G
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인