# How can I disable mail for a specific siteworx account?

**URL:** <https://forums.interworx.com/t/how-can-i-disable-mail-for-a-specific-siteworx-account/13630>\
**Category:** General Discussion\
**Tags:** qmail, block-specific-domai\
**Created:** [September 16, 2014, 4:51am UTC](https://forums.interworx.com/t/how-can-i-disable-mail-for-a-specific-siteworx-account/13630 "2014-09-16T04:51:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![onspot](https://forums.interworx.com/letter_avatar_proxy/v4/letter/o/cab0a1/32.png) [@onspot](https://forums.interworx.com/u/onspot)\
**Post date:** [September 16, 2014, 4:51am UTC](https://forums.interworx.com/t/how-can-i-disable-mail-for-a-specific-siteworx-account/13630/1 "2014-09-16T04:51:10Z")

</div>

Hello!  
I;m dealing with a client that has an outdated WordPress installation along with some outdated plugins. As a result spammers are using her site to send thousands of spam emails per minute, so I’m trying to find a way to disable all mail activity for that specific account until she upgrades her website.

I know that I can just disable the site but if I do that she wont be able to log in and update her installation.

Thanks!

---

<div class="post-metadata">

**Author:** ![d2d4j](https://forums.interworx.com/user_avatar/forums.interworx.com/d2d4j/32/16_2.png) [@d2d4j](https://forums.interworx.com/u/d2d4j)\
**Post date:** [September 16, 2014, 5:38am UTC](https://forums.interworx.com/t/how-can-i-disable-mail-for-a-specific-siteworx-account/13630/2 "2014-09-16T05:38:51Z")

</div>

Hi Onspot  
vi /var/qmail/control/badmailfrom  
@domaintoblock.url  
[someone@domaintoblock.url](mailto:someone@domaintoblock.url)  
save and restart qmail  
Many thanks  
John

---

<div class="post-metadata">

**Author:** ![onspot](https://forums.interworx.com/letter_avatar_proxy/v4/letter/o/cab0a1/32.png) [@onspot](https://forums.interworx.com/u/onspot)\
**Post date:** [September 16, 2014, 5:56am UTC](https://forums.interworx.com/t/how-can-i-disable-mail-for-a-specific-siteworx-account/13630/3 "2014-09-16T05:56:30Z")

</div>

Thanks John 🙂  
Can I use wildcards? something like \*.domaintoblock.url?

---

<div class="post-metadata">

**Author:** ![d2d4j](https://forums.interworx.com/user_avatar/forums.interworx.com/d2d4j/32/16_2.png) [@d2d4j](https://forums.interworx.com/u/d2d4j)\
**Post date:** [September 16, 2014, 5:58am UTC](https://forums.interworx.com/t/how-can-i-disable-mail-for-a-specific-siteworx-account/13630/4 "2014-09-16T05:58:30Z")

</div>

Hi onspot

No need to use wildcards, the @domaintoblock.url covers the entire domain whereas someone@ covers specific user of the domain

Many thanks

John
