# Allowing topic creation through direct delivery email in makes my forum vulnerable to spammers

**URL:** <https://meta.discourse.org/t/allowing-topic-creation-through-direct-delivery-email-in-makes-my-forum-vulnerable-to-spammers/118421>\
**Category:** Product Support\
**Created:** [May 22, 2019, 3:51pm UTC](https://meta.discourse.org/t/allowing-topic-creation-through-direct-delivery-email-in-makes-my-forum-vulnerable-to-spammers/118421 "2019-05-22T15:51:50Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)\
**Post date:** [May 22, 2019, 3:51pm UTC](https://meta.discourse.org/t/allowing-topic-creation-through-direct-delivery-email-in-makes-my-forum-vulnerable-to-spammers/118421/1 "2019-05-22T15:51:50Z")

</div>

Recently my personal forum has become the target of email spam, apparently always coming from different auto generated email addresses on domains like [qq.com](http://qq.com), [139.com](http://139.com) etc that I have put on my blacklist. Clearly I am doing it wrong… can anyone advise?

See screenshot. Discourse is sending emails to each of these email addresses, and I have now received a warning from mailgun that I have surpassed sending 10,000 emails this month.

Generally this forum has little to no traffic at all, but I still want to allow emailing in for various purposes. I am using mailgun for outbound mail, and have set up direct delivery for inbound mail, with a mail-receiver.yml. My suspicion is that I need to add some info to mail-receiver.yml to prevent these messages from reaching discourse at all but I am not sure how to do it. Or is there another way to block domains from outgoing mail from within discourse?

 ![03%20AM](https://global.discourse-cdn.com/meta/original/3X/6/6/6620254140c95ddd8046395242cc82d9192ec2ad.png)

This is the contents of the message my discourse is sending:

> We’re sorry, but your email message to [“[foo@mydiscourseforum.org](mailto:foo@mydiscourseforum.org)”] (titled 顶 级 菠 菜 注 冊 嶺 领 1 8 ⑻ え 找 美 女 Q485947940连结604959ＣOＭ ) didn’t work.
> 
> Your reply was sent from a blocked email address. Try sending from another email address, or [contact a staff member](https://discourse.mydiscourseforum.org/about).

---

_[View the full topic](https://meta.discourse.org/t/allowing-topic-creation-through-direct-delivery-email-in-makes-my-forum-vulnerable-to-spammers/118421)._
