
|
View Full Version : Squirrelmail with multiple domains?
Adam S 11-06-2002, 12:51 AM | The way I set up squirrelmail, it asks you ro input your domain name in the config.
Well, what I want to do is put a copy of Squirrelmail on my hosting company's website, for all users in all hosted domains to be able to check it.
How can i do this? The only way i see possible now is to have an installation of squirrelmail for each domain hosted.
if this cannot be done, can someone please recommend a good free alternative? thanks. |
Adam S 11-06-2002, 01:39 AM I just noticed u can set your e-mail address in preferences. That's fine and all, but that means I either have to leave it up to the user to do that (bad mistake) or do it manually for each user when they sign up.
Any suggestions? I really like the program, just not this one feature. I'd really like a way for them to have to enter their domain name when they login, so that its set and they nor I have to adjust it.
Surely someone has been where I'm at and modded this to include another login box and appropriate fields? Thanks. |
| ive also looked into this - i would be interested in any solutions.... |
achost_ca 11-09-2002, 02:01 AM I use the QVCS package on my servers, it allows for this. Squirrelmail itself has no problem in handling this, as its only checking the user/password combo against the imap server. I know for my servers i just have to enter the full email and password as hte login, and that works perfectly. |
Adam S 11-09-2002, 12:06 PM the program is called QVCS? got a URL so we could check out your site with it on there? |
achost_ca 11-09-2002, 01:59 PM http://qvcs-guide.sf.net/ is the official site for it.
its a qmail-courier-vmailmgrd-squirrelmail setup. There is an up to date guide for Redhat, and a slightly older, but still working guide for FreeBSD |
Adam S 11-09-2002, 02:02 PM ahhm it cost money. iw as looking for a free one :(
i couldnt tell, does it work with sendmail? |
achost_ca 11-09-2002, 02:16 PM it doesnt cost money. its free, open source. and no, the purpose of using qmail in it was to get away from sendmail. bu the point was its the imap server, not squirrelmail that controls if users from diff domains can login using the same site. |
Adam S 11-09-2002, 02:20 PM
will this software work with sendmail/imap?
I would perfer having qmail on my system, but unfortunately we use sendmail and cant change that this second. |
achost_ca 11-09-2002, 07:29 PM I dont think so. the entire package was based off of qmail, but you never know. with a little tinkering u might be able to do it. what imap are you using? courier, cyrus, or imap*? |
courier - i have squirrelmail working now, I just want the users to be able to set their own "From" address without having to setup their own profile |
ewindisch 11-10-2002, 12:21 PM Squirrelmail with multiple domains isn't that difficult .. :)
In the configuration file, use:
$org_name = $_SERVER['SERVER_NAME'];
$domain = $_SERVER['SERVER_NAME'];
What this will do is, if I access the following domains,
http://www.grokthis.net/smail/src/login.php
http://www.bwbohh.net/smail/src/login.php
The domain mentioned on the login page (and elsewhere) is different.
BTW: I'm using cyrus for my mail directories, users in the form of: raptor-grokthis-net, eric-bwbohh-net, etc. It is a very nice way of doing virtual pop accounts ;)
Of course, with the above hack, you can write a simple plugin that will append the domain-name with the regex, s/\./-/g; s/^/-/g; and login with just the name 'raptor' or 'eric' to their respective domains.
Also, I have squirrelmail configured so that different domains can have their own customized login screen and squirrelmail themes... this required a bit of hacking to squirrelmail itself, though. |
wow! Thats awesome! Thanks so much - exactly what i was looking for.
Still, one minor problem (there is always one) - the from address is login@domain.com they cant set it to anything@domain.com unless they goto their preferences. but tahts ok, if there is a way to setup a from field that would be great, otherwise this is still fine :)
Thanks alot. |
achost_ca 11-10-2002, 01:22 PM By customized login page I assume you mean so it shows their logo instead of the default? |
ewindisch 11-10-2002, 04:09 PM > Still, one minor problem (there is always one)
>- the from address is login@domain.com they
> cant set it to anything@domain.com unless
> they goto their preferences. but tahts ok, if
> there is a way to setup a from field that
> would be great, otherwise this is still fine
It is not that difficult to write a plugin that sets the email address on login. There is documentation on the squirrelmail site on how to do this.
> By customized login page I assume you
> mean so it shows their logo instead of the
> default?
Actually, I have a system such that they can use their own template. |
achost_ca 11-10-2002, 06:25 PM ah, nice.
I wrote a plugin that puts their logo onto it, probaly one of the features everyone loves. And best of all its easy enough the clients that know nothing can still do it. |
stech4u 06-08-2003, 07:25 PM in reference to the above solution for having multiple domains access one install of SM...
i have SM installed in a hosting account, but would like to store the data/attachment files in their corresponding account space (e.g. /home/domain1/sqmail_data/, /home/domain2/sqmail, etc...) i know there some way of just pulling the domain name when a user logs in to SM (e.g. some_user@domain1.com, some_user@domain2.com, etc.) and just probably have a flag that would set a variable (e.g. $domain_name) in...
$data_dir = '/home/'. $domain_name .'/sqmail_data/';
however, i don't know how the login works, and how to implement it...
if someone could explain how to do this that would be much appreciated, as i know an amount of people probably trying to accomplish the same thing.
thanks in advance. |
NxTek 06-08-2003, 10:16 PM Half this stuff you guys are talking about can be done with the plugins :)
http://www.squirrelmail.org/plugins.php |
stech4u 06-08-2003, 10:47 PM how about the other half ^^ ... like my post above? ... i don't think the vlogin works like that |
NxTek 06-09-2003, 09:30 AM Hmm I think it does. You might wanna double-check. Check out http://www.squirrelmail.org/plugins_category.php?category_id=6
I'm using the virtusertable plugin that works very well, but I'm not sure if that'll do exactly what you want. It works for what I want to accomplish tho.
You may also wanna ask on their mailing list too. Hope this helps. :)
Originally posted by stech4u
how about the other half ^^ ... like my post above? ... i don't think the vlogin works like that |
stech4u 06-09-2003, 02:38 PM yah i'll prolly go w/ the mailing list when i have a chance to... |
|