Help - Search - Members - Calendar
Full Version: Easy Global SquirrelMail 1.4.4 (w/SSL) for Ensim 3.7-4.0.3
The Planet Forums > Control Panels > Ensim > Ensim HOWTOs
Pages: 1, 2
gpan
We have released an updated Squirrelmail package for Ensim Webppliance / Webppliance Pro

These packages can support Squirrelmail with SSL support; please review the squirrelmail.sh file in /etc/appliance/customization/ for more info.

Installation is via rpm -Uvh as per usual. You may need to remove older installations beforehand via rpm -e

Downloadable at

http://mirror.cheetaweb.com/ensim/extras/s...sim.ct.i386.rpm

Please post of any issues. Thank you!
Doobla
Thanks again gpan. Very nice.

Installing now.
Doobla
Piece of cake as usual. Thanks again!
polystigma
Thanks Geoff
worked flawlesly as usual
Bobo
I might try this. Two questions, though:

Does this support multiple languages natively, without having to twick it?

Can sites still be able to customize their own look?
gpan
Explain multiple languages?
Bobo
QUOTE (gpan)
Explain multiple languages?


Well, there seems to have been issues lately with Squirrelmail no longer natively supporting multiple languages (English, French, Spanish, etc.).

It used to be that Squirrelmail had tons of languages avaialble and users could switch to their preferred language from the options menu.

But now, with the latest Ensim versions, as well as Squirrelmail itself, we no longer get all the languages by default. It seems we have to twick squirrelmail manually and install additional stuff in order to get the language we need to work.

So that's why I asked the questions:

1) Does This Global SquirrelMail suppport multiple languages (locales, such as French, Spanish, etc.). In other words, are these languages already active by default and we do not have to do anything else?

2) Does the global Squirrelmail allow site admins to still be able to customize their squirrelmail (login page, look, etc.)?

Thanks.

Bobo
swissmonk
The Locale packages are not present in this rpm, but you can just go to:

http://www.squirrelmail.org/download.php

And download all_locales-1.4.4-20050308.tar.gz in /usr/share/squirrelmail, uncompress it and you will have all languages for all domains as it is a centralized install.

Sebastien
webwizard
QUOTE (swissmonk)
The Locale packages are not present in this rpm, but you can just go to:

http://www.squirrelmail.org/download.php

And download all_locales-1.4.4-20050308.tar.gz in /usr/share/squirrelmail, uncompress it and you will have all languages for all domains as it is a centralized install.

Sebastien

Thank you! Worked like a charm icon_smile.gif

http://ftp.debian.org/debian/pool/main/s/s...308.orig.tar.gz
imcomguy
GPAN, you're amazing... once again.

Quick question though, do you know if this RPM might work with Ensim 3.5(.21-10) as well? All of your previously released ones have functioned correctly, as well as a few manual installs of the SM source. Just curious.

Thanks in advance.
gpan
You would just to have to --nodeps it as it is apache dependant.
imcomguy
Thanks GPAN, but I actually already tried that (it installed) but I had no luck. I restarted apache, and even ran RebuildSquirrelMail, as well as uninstalled the previous CSM install before installing this one... but still all of the /mail, /webmail, /squirrelmail links are gone and not functioning. Even from the root IP, /var/www/html/webmail doesn't exist. I will take a look further since I haven't had any time to look over what might be wrong. But if you have any quick ideas, I'd appreciate it.

Thanks!
ModemGuru
I am a newb when it comes to stuff like this and have two questions.

1 - How does one use rpm -e to remove squirrelmail?
2 - Will all the sites that I have squirrelmail checked on get squirrelmail back automatically withthis rpm? I assume any settings current users have will be lost?
DavidG
QUOTE (ModemGuru)
I am a newb when it comes to stuff like this and have two questions.

1 - How does one use rpm -e to remove squirrelmail?
2 - Will all the sites that I have squirrelmail checked on get squirrelmail back automatically withthis rpm?  I assume any settings current users have will be lost?


as far as I can tell user settings are not lost

as root: rpm -e squirrelmail, only do this if you have previously applied an older version of central sqmail install.

as for all virtual sites the files for each sqmail installation are still present and can be safely removed from each sites profile in the control panel.

If you wish do do this on mass:

> pico disablesm (or text editor of your choice)

Copy the following into this file

CODE
for i in `sitelookup -a domain`

do

echo "Disabling SquirrelMail for" $i;

/usr/local/bin/EditVirtDomain -D $i -c sqmail,off;

done;

echo "Squirrelmail Disabled for all sites.";


give file appropriate permissions

> chmod 700
> sh disablesm

only use this script once your sure your central install is working correctly.

Regards,

David
ModemGuru
ok, so if I have a fresh copy of ensim and have squirrelmail on it, but have not upgraded it, I don't have to do the rpm -e?

and perhaps the best way to reinstall squirrelmail on all the virt sites is to remove the check, then recheck?
DavidG
the point of the sqmail central install provided by gpan is that it should not be on each virt domain, due to the setup there is 1 sqmail copy that is configured to access and accept authentication for all virt domains.

The script I supplied above is to remove sqmail from each domain for use after you have installed the central sqmail version detailed at the start of this topic.

Any further queries I'll do my best to answer.
ModemGuru
Ahhhh! Ok, thanks David!! One more question: With the central install, will http://www.usersdomain.com/webmail still forward them to squirrelmail?
DavidG
yep you got it icon_biggrin.gif

when the user does http:///mail or /webmail or /squirrelmail in fact

if will redirect to the main server ip http://xxx.xxx.xxx.xxx/squirrelmail/src/login.php

gpans central install automatically picks up the correct domain if the enter via their own domain first so only username and password need to be supplied.

additionally what you can do is modify the way the redirects are generated to point to the main server hostname

https:///squirrelmail/src/ .... as this will likely have a proper SSL certificate installe dwhich has the added benefit that your webmail is now SSL secured.

to apply this modification modify the script placed in

/etc/appliance/customization

squirrelmail.sh i think its called. you should be easily able to spot the redirects which are in place.

you'll need a little script to remodify the existing domains redirects, when I'm at a pc I can access my server from I will pass on the script for you to do this.

after remodification of existing sites all you need to do is restart apache.

if you need any guidance or help with the installation post here or PM me and I'd be glad to help.

Regards,

David
DavidG
remember before doing any of the above make sure your central sqmail installation is working correctly.

Good Luck!
JoshFink
I've had this problem for as long as I can remember. I was hoping that 1.4.4 would fix it, but it's still the same.

Right now I can go to www.domain.com/webmail and it will redirect to

http://w.x.y.z/webmail/src/login.ph...main=domain.com

How do I get it to keep www.domain.com/webmail or at least http://www.domain.com/webmail/src/login.php

Thanks

Josh
ModemGuru
I don't think you can with a central install. You can probably do http://serversname.com/webmail/src/login.php , but not http://www.theirdomain.com/webmail At least this is what I gather from this thread.
JoshFink
Right now if I do

CODE
[url="http://www.mydomain.com/webmail/src/login.php"]http://www.mydomain.com/webmail/src/login.php[/url]


It redirects to

CODE
[url="http://55.55.55.55/squirrelmail/src/login.php?site_domain=mydomain.com/"]http://55.55.55.55/squirrelmail/src/login....n=mydomain.com/[/url]


Obviously, the 55.55.55.55 is wrong, but how do I keep it at the first entry that I type in and not have it go to the domain with the ip address?

Thanks

Josh
DavidG
remember this is a single central install so all redirects will go to 1 location

the way this is set up in gpans rpm is to go to the main server ip

this is controlled via the file /etc/customization/squirrelmail.sh

modify this file and redirect to your main servers hostname like svr01.mainhost.com instead of ip address

this will fix the automation for new sites created

to fix all the existing sites in one go run the following as a script (replacing
with the main server hostname):

CODE
for site in `sitelookup -a`

do



domain=`echo $site | cut -d , -f1`

handle=`echo $site | cut -d , -f3`



cat <<EOF >/etc/httpd/conf/$handle/0sqmail

Redirect /mail http://<main domain>/squirrelmail/src/login.php?site_domain=$domain

Redirect /webmail http://<main domain>/squirrelmail/src/login.php?site_domain=$domain

Redirect /squirrelmail http://<main domain>/squirrelmail/src/login.php?site_domain=$domain

EOF



done




then restart apache.

this should solve ur issues.
JoshFink
Thanks.. I'll try it.
JoshFink
Instead of the main server name in the squirrelmail.sh file, is there a way that I could use the name based ip address of each domain? Since they're all name based they should all point to the same IP, right?

How would I do this? Is it possible?

Thanks

Josh
gpan
No. It will go to the wrong virtualhost.
JoshFink
Ok.. So I want to test the single install (since in 4.0.3) SM is actually a recent version. How would I go about uninstalling the central install and using the site by site install?

Thanks for the help

Josh
DavidG
before you installed the central install you had a version of sqmail in each site,

I have never done this so its an assumption:

rpm -e gpans sqmail rpm

reenable squirrelmail from the admin panel for each site this will put sqmail back.

you may have to remove the redirects which were put in place not sure if rpm -e will undo this, you'll be looking for a 0sqmail within the httpd config directories for each site.

I don't understand why you would wish to 'test' something which is in place by default and I assume you were using already.
Allan
Much appreciated.
luke_s
Hey all,

can anyone tell me where this central install is located, please? I would like to install some plugins and can't seem to locate the Squirrelmail install.

I thought it would be in /var/www/html/ , but it doesnt appear to be there?

Luke
Doobla
I believe it is /usr/share/squirrelmail

You could always use locate squirrelmail.
luke_s
Thats the right location. Thanks. I did a 'locate squirrelmail' but wasnt sure which location was being called. Thanks for saving me some time.
red77
It works perfect but if I install plugin to him proon (automatic folder pruning) generates east error,
CODE
Error opening /var/lib/squirrelmail/prefs/default_pref

Could not create initial preference file!

/ should be writable by user apache

Please contact your system administrator and report this error.
and I do not have another option that to uninstall plugin it so that it works squirrelmail
Catalyst
Just out of curiosity ... Does the Spell Checker work in this RPM?
red77
Yes Spell Checker Work. Only proon (automatic folder pruning) generates east error
Catalyst
QUOTE (red77)
Yes Spell Checker Work. Only proon (automatic folder pruning) generates east error
Good to know ... I'm trying to track down a bug in 1.4.5.
red77
Solved Catalyst
Update proon plugin to version 4.0.0
http://www.squirrelmail.org/plugin_view.php?id=251
designguy
Works great as always! icon_smile.gif
Doobla
yup, just installed it on an ensim 4.04/centos 4.1 server today. Works great! icon_smile.gif
Alosery
Hay,

I also hafe language problems whith squirrelmail
And i dont have the directory squirrelmail in /usr/share
Is this my problem and do i need to greate this directory and uncompress the all_locales download there.

Please advice.
Thanks,
Eelco Alosery



QUOTE (swissmonk)
The Locale packages are not present in this rpm, but you can just go to:

http://www.squirrelmail.org/download.php

And download all_locales-1.4.4-20050308.tar.gz in /usr/share/squirrelmail, uncompress it and you will have all languages for all domains as it is a centralized install.

Sebastien
norther
Hi,

Have I done something wrong..? I got internal server error when trying to access page domain.com/webmail. Domain.com has squirrelmail disabled via Ensim. Here's the suexec_log extract:

CODE
[2005-08-29 10:58:03]: info: (real/target/actual) uid: (admin1/root/root) gid: (admin1/root/root) cmd: php-script alt_doc_root:

/home/virtual/site1/fst/var/www chroot: 1

[2005-08-29 10:58:03]: crit: cannot run as forbidden uid (0/php-script)


Edit
Fixed: squirrelmail.sh -script was not ran successfully. Replaced following line in virtDomain.sh:
/etc/appliance/customization/squirrelmail.sh $DOMAIN $SITE $IP
with
/etc/appliance/customization/squirrelmail.sh $1 $SITE $IP
troyoz
I have been using your version of Central Squirrelmail and been working excellent. Now my issue is that I have upgraded PHP to 5.1 and only now get one error in Squirrelmail- When client try to sendmail they get
ERROR : Bad or malformed request.
Server responded: Received: BAD Command unrecognized: FROM
The mail is sent but the client is unaware of that
Any help is appreciated
nrr
QUOTE (troyoz)
I have been using your version of Central Squirrelmail and been working excellent. Now my issue is that I have upgraded PHP to 5.1 and only now get one error in Squirrelmail- When client try to sendmail they get  
ERROR : Bad or malformed request.
Server responded: Received: BAD Command unrecognized: FROM  
The mail is sent but the client is unaware of that
Any help is appreciated


PHP 5.1 error. It is fixed in 1.4.6 I believe.

Perhaps gpan will be as so kind as to make us a Ensim safe RPM for that? icon_biggrin.gif
troyoz
gpan it would be really nice if you wuld consider an updated rpm as mentioned
ElfinStrider
We would love you forever and raise towers to proclaim your greatness if you did.
Doobla
QUOTE (ElfinStrider)
We would love you forever and raise towers to proclaim your greatness if you did.

I think a business referral would mean more to him icon_wink.gif Maybe even in your sig line.....
ElfinStrider
It can be done. . . rogue puck that I am, I don't mind putting an extra tag upon my tail as I trip along the light electric and having G's banner fluttering behind my whispers.

Though for that, we'd probably want a squirrelmail 1.4.5 and the php / mysql how-tos.

But that's just getting greedy. . . and what price can you possibly place on our love for Gpan?
NastyPasty
If you run your site in high security mode, squirrelmail will not work, you will recieved an internal server error. Simply go back to 3.1 compatibility and it should solve that problem.

Dave.
troyoz
Currently using your version gpan but now we have need for php5.1 but realise that the squirrelmail does not function. If I download 1.4.6 from squirremail.org is there anyway just to copy some files over the top of the squirrelmail central to make it work with php5.1 and if so could you please tell me which files to overwrite
mister_tee
Hi everyone,

I followed these directions for a central install of squirrelmail 1.4.4 (I know 1.4.5 is out, but 1.4.4 is better than my current version). I got it to almost work, and was hoping somebody could help me get it working correctly.

When I would go to
CODE
http://mydomain.com/webmail
I would get redirected to an IP on the server,
CODE
http://10.10.10.10/squirrelmail/src/login.php?site_domain... etc. etc...
Unfortunately, the IP it would pick is wrong one - it's off by 1 number. The login screen never comes up, instead giving me some error about too many redirects.

If I manually correct the IP and hit enter, the 1.4.4 squirrelmail login page shows up. I was wondering how I can change it so that it forwards to the correct IP. The IP that it picks is indeed an IP associated with the server, it's just the wrong one.

I managed to uninstall the central squirrelmail rpm so that at least folks can still use the older version.

Any help is greatly appreciated.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.