Koozali.org: home of the SME Server

Is it possible to have webmail for a virtual domain ?

technostruct

Is it possible to have webmail for a virtual domain ?
« on: August 17, 2004, 03:54:47 PM »
I'm sorry if this sounds silly or unknowing.  I work 50 hours each week and in all my spare time I try really hard to find the answers to things like this on my own.  This topic, however, has eluded me in every effort I've made.

I've looked everywhere to find an answer about whether or not you can have a "webmail" interface like the primary domain's.  I love it, although there's tweaks intended for it, and I'd love to see if I can have that for any of the other "i-bays" or "virtual domains" I've created in them.

Please, I'm desperate.  You don't have to hand-hold me through this, a link to an active document on how to do it, or an explanation as to why I can't, would be more than genuinely appreciated.  I've looked and I can't seem to find the answer on my own.  Thanks, anybody.

Offline mophilly

  • *
  • 384
  • +0/-0
    • Mophilly
Re: Is it possible to have webmail for a virtual domain ?
« Reply #1 on: August 17, 2004, 04:36:36 PM »
I am not an expert on this, but it is my assumption that the webmail feature is "wired" into apache via a mod kit.

This means that you can change it with some study of how to implement mod_kits for apache. This is a non-trivial task because if done badly you can thrash your http service.

That said, I wonder why you want to do this. Each user has a unique log on for webmail that is independent of ibays. If you are running a virtual domain, the URL www.myvirtualdomain.com/webmail will result in the proper invocation of the webmail program.

hth
- Mark

Offline Brenno

  • *****
  • 208
  • +0/-0
Is it possible to have webmail for a virtual domain ?
« Reply #2 on: August 17, 2004, 05:11:48 PM »
Here's another, somewhat related question, is it possible to set up a subdomain to access webmai?

Instead of:

https://www.mydomain.com/webmail

you'd use:

https://mail.mydomain.com (or other)

Is this possible? I think you'd have to create a virtual domain and then find someway to alias this to the webmail directory.  My users always forget to add the /webmail to the end of the domain name when they try to log in, but they remember the mail.mydomain.com address because that is the address of their IMAP server.

technostruct

Is it possible to have webmail for a virtual domain ?
« Reply #3 on: August 17, 2004, 05:17:59 PM »
"W00t w00t" said the hairlip tugboat ...

Nobody said\nowhere did I read that !!!

My God, I need more sleep  :-o  ... Thanks, there !!

technostruct

Is it possible to have webmail for a virtual domain ?
« Reply #4 on: August 17, 2004, 08:20:30 PM »
I think there's a good possibility of that.

I know that, using MyDomain before, you can redirect at the registrar-level a subdomain to point to a specific address.  OR you can setup a CNAME to point to that other address.

I know that's kinda' like using dynamite to get someone's attention next door but its a start for now, I'm thinking.

Offline kruhm

  • *
  • 680
  • +0/-0
Is it possible to have webmail for a virtual domain ?
« Reply #5 on: April 22, 2005, 10:27:50 PM »
Quote
Here's another, somewhat related question, is it possible to set up a subdomain to access webmail?


I wanted the same thing (I know this post is a little dated but it still applies).

HOWTO:
-add ibay
   •name&description= <your choice>
   •Group= Admin
   •Write=Group, Read=Everyone
   •access= entire internet, no password
   •dynamic-content= enabled

-creat virutal domain
   •name= mail.yourdomain.com
   •description= <your choice>
   •content= <ibay name>

-add redirect
   •replace contents of index.htm with the following:
Code: [Select]
<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: https://mail.yourdomain.com/webmail" );
?>

   •rename the index.htm to index.php

Go to mail.yourdomain.com and BAM you've got webmail (use Emeril tone for best effect). :lol: [/quote]Simple operation and maybe it's the long way around but hey, it works.

Offline crazybob

  • *****
  • 894
  • +0/-0
    • Stalzer R&D
Is it possible to have webmail for a virtual domain ?
« Reply #6 on: April 23, 2005, 12:40:33 AM »
The easy way is to use the virtual e-mail addon from dungog.net. I does cost a little, but makes things easy, and it will let you get mail based on https://virtual.domain.com/webmail

bob
If you think you know whats going on, you obviously have no idea whats going on!

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Is it possible to have webmail for a virtual domain ?
« Reply #7 on: April 23, 2005, 01:37:21 AM »
Quote from: "crazybob"
The easy way is to use the virtual e-mail addon from dungog.net. I does cost a little, but makes things easy, and it will let you get mail based on https://virtual.domain.com/webmail



Perhaps you should ask for your money back.

Everyone who was any virtualdomains set up already has mail at:

https://virtual.domain.com/webmail

All you then need to do is have users change their webmail preferences so that their sender email address shows up as user@virtual.domain.com.

Offline hordeusr

  • ***
  • 68
  • +0/-0
Is it possible to have webmail for a virtual domain ?
« Reply #8 on: April 23, 2005, 02:19:10 AM »
Horde will automatically set-up the domain. in imp/config/servers.php....

$servers['imap'] = array(
    'name' => 'IMAP Server',
    'server' => 'localhost',
    'protocol' => 'imap/notls',
    'port' => 143,
    'folders' => '',
    'namespace' => '',
    'maildomain' => 'domain.org',
    'smtphost' => 'localhost',
    'realm' => 'domain.org',
    'preferred' => 'domain.org'
);

$servers['virtualdomain1'] = array(
    'name' => 'IMAP Server',
    'server' => 'localhost',
    'protocol' => 'imap/notls',
    'port' => 143,
    'folders' => '',
    'namespace' => '',
    'maildomain' => 'virtualdomain1.org',
    'smtphost' => 'localhost',
    'realm' => 'virtualdomain1.org',
    'preferred' => 'virtualdomain1.org'
);

As many entry's as you want.  Horde will look at the 'preferred' entry and match it to the domain you used at the login screen.  Then all the settings in the above entry will be unique to that domain.  I used to have it set-up to login to a different server when using a virtual domain.  Here is the entry in the conf.php file
// Should we display a list of servers (defined in config/servers.php)
// for users to choose from? The options are 'shown', 'hidden', and
// 'none'. If the server list is hidden then you can use the
// 'preferred' mechanism to auto-select from it based on an HTTP
// virtualhost or another piece of data. If it is shown, the user will
// be able to pick from any of the options. If none, no server list
// will be shown and the defaults will be used unless another
// mechanism changes them.
$conf['server']['server_list'] = 'hidden';

This is similiar on the new horde version 3 and imp 4.

Offline raem

  • *
  • 3,972
  • +4/-0
Is it possible to have webmail for a virtual domain ?
« Reply #9 on: April 23, 2005, 03:56:35 AM »
Charlie wrote:
> Everyone who was any virtualdomains set up already > has mail at:
> https://virtual.domain.com/webmail

And if you install the free dungog mailblocking rpm (dungog-mailblocking-1.0-4.noarch.rpm) it adds a server manager panel where you can control email addresses for virtual domains ie limit which domain receives email for which addresses.

You may also need/like to use email aliases for the virtual domains, where you want to have name1@domain1 + name1@domain2 etc addresses, see
http://mirror.contribs.org/smeserver/contribs/rmitchell/smeserver/howto/virtual%20domain%20email%20aliases%20HOWTO%20for%20sme%20server.htm
...

Offline kruhm

  • *
  • 680
  • +0/-0
Is it possible to have webmail for a virtual domain ?
« Reply #10 on: April 24, 2005, 06:16:28 PM »
maybe I should have posted my reply in a new thread and in the general forum. it was in reply to get mail.yourserver.com to show your mail.

In ceratin cases this is wanted. First because plain old want. Yahoo does it, so should you, right.?

Secondly, because the servers aren't the same: where the yoursever.com is hosted somewhere else and mail.yourserver.com is local for email services. In this case www.yourserver.com/webmail won't work but www.mail.yourserver.com/webmail will work. Then it seems kinda redundant to end-users to have them type that in. The problem then becomes mail.yourserver.com shows information in the PRIMARY ibay. The small instructions shows how to workaround the problem.

Offline edb

  • *
  • 548
  • +0/-0
Is it possible to have webmail for a virtual domain ?
« Reply #11 on: May 05, 2006, 05:33:38 PM »
Can someone tell me if the default Pseudonym called "everyone" can be changed, modified or disabled?

I have user who are used to using this group as a company-wide email group that works perfectly, however, I plan on adding 2 or 3 virtual Domains to the picture and that would mean that all users on the system would get a message that was intended for Domain1 only.

Other than this issue I imagine everything else goes rather smoothly with hosting multi Domains, but am I correct in assuming this?

Feedback appreciated.

edb
......

Offline kruhm

  • *
  • 680
  • +0/-0
Is it possible to have webmail for a virtual domain ?
« Reply #12 on: May 06, 2006, 03:08:32 PM »
You can prevent people from emailing EVERYONE with the mailblocking contrib.

Deny *@* to everyone@domainname.com

Then allow the only the people you want to allow.

Allow username@domainname.com to everyone@domainname.com (allows supercede denys)

Everyone on the box will get the email. I was unable to stop this from going to the virtualdomain accounts.

You can change the procmail settings for the virtualdomain users to automatically trash or junkmail the messages.

Offline edb

  • *
  • 548
  • +0/-0
Is it possible to have webmail for a virtual domain ?
« Reply #13 on: May 07, 2006, 02:46:37 AM »
Thanks you very much for your reply kruhm.

The approach sounds reasonable as far as only allowing certain users to email the everyone account. I never thought of that.

Quote
You can change the procmail settings for the virtualdomain users to automatically trash or junkmail the messages.


Do you have a how to for this as I'm not to sure what needs to be done to accomplish the trashing or junkmailing?

Quote
Everyone on the box will get the email. I was unable to stop this from going to the virtualdomain accounts.


I wonder what others do in this situation and why the developers have not solved some of these hosting type issues because it sure is a great product otherwise.

edb
......

Offline kruhm

  • *
  • 680
  • +0/-0
Is it possible to have webmail for a virtual domain ?
« Reply #14 on: May 07, 2006, 01:48:21 PM »
To change the procmail settings, you'll need the user-manager contribs: http://mirror.contribs.org/smeserver//contribs/dungog/packages/smeserver/6.0/i386/RPMS.dungog/

-go to https://youdomain/user-manager & signin as the virtualdomain user.
-add a procmail rule to your liking

V7 doesn't really have this problem since groups are unlimited. You can create groups and put everyone from one domain in one group (allstaff) and everyone from another domain in another group (allusers). Then just use the group names as an everyone. You could also do this for v6 depending on the number of groups you have/need.