# Users' domain names on the webmail login page?

**URL:** <https://forums.interworx.com/t/users-domain-names-on-the-webmail-login-page/12165>\
**Category:** General Discussion\
**Created:** [June 26, 2008, 7:49am UTC](https://forums.interworx.com/t/users-domain-names-on-the-webmail-login-page/12165 "2008-06-26T07:49:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sysnop](https://forums.interworx.com/letter_avatar_proxy/v4/letter/s/cdc98d/32.png) [@sysnop](https://forums.interworx.com/u/sysnop)\
**Post date:** [June 26, 2008, 7:49am UTC](https://forums.interworx.com/t/users-domain-names-on-the-webmail-login-page/12165/1 "2008-06-26T07:49:13Z")

</div>

I’d like to display the user’s domain name on the webmail login page. I see how it’s done in Squirrelmail. But how can I grab that info for a simple ‘echo’ in the webmail template? I’ve searched for the variable Siteworx is using with no luck.

Similarly, if a user accesses the webmail page with an IP instead of a domain, can the server’s hostname or smtpgreeting be displayed (without a DNS lookup)?

---

<div class="post-metadata">

**Author:** ![Paul](https://forums.interworx.com/user_avatar/forums.interworx.com/paul/32/6_2.png) [@Paul](https://forums.interworx.com/u/Paul)\
**Post date:** [September 25, 2008, 11:41am UTC](https://forums.interworx.com/t/users-domain-names-on-the-webmail-login-page/12165/2 "2008-09-25T11:41:51Z")

</div>

Hy sysnop,

Did you ever get this figured out? An easy way doesn’t immediately jump to mind for me. How does/did squirrelmail do it?

Paul
