# Disable Webmail

**URL:** <https://forums.interworx.com/t/disable-webmail/13961>\
**Category:** General Discussion\
**Created:** [February 8, 2016, 8:20am UTC](https://forums.interworx.com/t/disable-webmail/13961 "2016-02-08T08:20:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![johan\_hammy](https://forums.interworx.com/user_avatar/forums.interworx.com/johan_hammy/32/2886_2.png) [@johan\_hammy](https://forums.interworx.com/u/johan_hammy)\
**Post date:** [February 8, 2016, 8:20am UTC](https://forums.interworx.com/t/disable-webmail/13961/1 "2016-02-08T08:20:41Z")

</div>

How can I disable webmail for accounts that don’t have local mail delivery?

---

<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:** [February 8, 2016, 8:38am UTC](https://forums.interworx.com/t/disable-webmail/13961/2 "2016-02-08T08:38:36Z")

</div>

Hi Johan\_hammy

I do not think you can disable webmail login page but if the email account does not exist in the siteworx account, then they cannot login to it.

To disable local delivery for email, goto siteworx account, administration, email and disable local delivery

Once disabled, if any email accounts are setup, and you don’t want them to be used by webmail, delete or disable the account

I hope that helps and sorry if I have misunderstood your question

Many thanks

John

---

<div class="post-metadata">

**Author:** ![johan\_hammy](https://forums.interworx.com/user_avatar/forums.interworx.com/johan_hammy/32/2886_2.png) [@johan\_hammy](https://forums.interworx.com/u/johan_hammy)\
**Post date:** [February 8, 2016, 9:06am UTC](https://forums.interworx.com/t/disable-webmail/13961/3 "2016-02-08T09:06:35Z")

</div>

The first part seemed to get it. If no one can login due to the mail not being on that server, I’d like to not expose the webmail login form. Seems kind of pointless to expose something that can’t be used.

---

<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:** [February 8, 2016, 9:19am UTC](https://forums.interworx.com/t/disable-webmail/13961/4 "2016-02-08T09:19:59Z")

</div>

Hi johan\_hammy

Yes, I understand but the webmail is a rewrite, so it works on all siteworx accounts

I suppose you could always add a specific rewrite for the siteworx account, but this could prove time consuming if there are a lot of them, unless your IW server never uses local mail, then you could remove the rewrite

Many thanks

John

---

<div class="post-metadata">

**Author:** ![CRServers](https://forums.interworx.com/user_avatar/forums.interworx.com/crservers/32/13_2.png) [@CRServers](https://forums.interworx.com/u/CRServers)\
**Post date:** [June 3, 2016, 9:08am UTC](https://forums.interworx.com/t/disable-webmail/13961/5 "2016-06-03T09:08:42Z")

</div>

Has anybody figured out a workaround on this issue?  
We have a customer that wants us to disable the ‘[domain.com/webmail](http://domain.com/webmail)’ page from showing on his account.  
We tried to make a ‘webmail’ folder on his site but that does not work.  
Any ideas will be greatly appreciated.  
Thanks and Regards,

---

<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:** [June 4, 2016, 12:38am UTC](https://forums.interworx.com/t/disable-webmail/13961/6 "2016-06-04T00:38:37Z")

</div>

Hi crservers

If it’s just 1 or a few, I’m thinking you might be able to insert a domain specific rewrite rule above /webmail rewrite rule

I have not tried it myself, but think it may work

Many thanks

John

---

<div class="post-metadata">

**Author:** ![CRServers](https://forums.interworx.com/user_avatar/forums.interworx.com/crservers/32/13_2.png) [@CRServers](https://forums.interworx.com/u/CRServers)\
**Post date:** [June 4, 2016, 5:16am UTC](https://forums.interworx.com/t/disable-webmail/13961/7 "2016-06-04T05:16:25Z")

</div>

> [@d2d4j;28580](#):
>
> insert a domain specific rewrite rule above /webmail rewrite rule

Hello John,  
Thanks for your response.  
Can you be more specific on how to accomplish this?  
Where is the “/webmail rewrite rule” located?  
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:** [June 4, 2016, 5:47am UTC](https://forums.interworx.com/t/disable-webmail/13961/8 "2016-06-04T05:47:58Z")

</div>

Hi crservers  
I believe it needs to go in iworx.conf, but could be wrong  
ssh into server  
vi /etc/httpd/conf.d/iworx.conf (or use any editor you prefer)  
add under rewrite rule  
RewriteRule yourdomain.url/webmail(/)?$ [http://your](http://your) desired domain [R,L]  
Once done, you will need to restart iworx service iworx restart  
It may or may not work, or you may need a condition statement (RewriteCond rule), but if it does not work, I’ll have a think and try myself when I have time over the next week  
The rewrite rule though is in iworx.conf, but this may affect all users  
Many thanks  
John
