PDA

View Full Version : Squirrelmail Package!


bkrausz
16th June 2006, 23:25
Well, this forum (and ISPConfig in general) made my life loads easier, so I figured it was time to give back to the community. Well, actually, I wanted to get SquirrelMail installed, and it was pretty easy to make a package.

http://nerdlife.net/ispconfig/squirrelmail.pkg

Tested on the latest release of ISPConfig under Debian Sarge. It doesn't conflict with other webmail packages, so feel free to install it for the sake of poking around.

How's it work for you guys?

--Brian

till
17th June 2006, 11:34
Thanks for the package :)

May I make the package available for download on the ISPConfig website?

alexnz
19th June 2006, 08:08
working perfectly, thank you!

bkrausz
19th June 2006, 08:48
Thanks for the package :)

May I make the package available for download on the ISPConfig website?
no problem...that's why i made it.

fyi this package uses the full email address for logins...it looks at virtusertable (vlogin mod)

Brenton
19th June 2006, 09:57
Hi

Would this work on a Perfect Install - Ubuntu 5.10 as is? Or would I have to make any adjustments to the .pak file?

Been waiting for this. Thank you very much for making this available.

Regards
Brenton

till
19th June 2006, 10:38
The .pkg files are working for all linux distributions and can be installed with the ISPConfig update function.

Brenton
19th June 2006, 11:49
Thanks for your reply till, I've installed the .pkg file and it works great.

One more question, if I want http://mail.domain.com to point to the Squirrelmail how would I go about it?

I apologise for these basic questions, but I'm doing this on a production server and am having to be very careful.

Regards
Brenton

falko
20th June 2006, 15:38
You can do it with a PHP header redirect:

<?php
header("Location: https://www.example.com:81/squirrelmail"); /* Redirect browser */

/* Make sure that code below does not get executed when we redirect. */
exit;
?> Replace squirrelmail with the real directory.

bkrausz
21st June 2006, 01:59
You can do it with a PHP header redirect:

<?php
header("Location: https://www.example.com:81/squirrelmail"); /* Redirect browser */

/* Make sure that code below does not get executed when we redirect. */
exit;
?> Replace squirrelmail with the real directory.
You can also just setup a forward in the co-domains option to redirect mail.something.com to that site.

What I've been wondering is if there's a way to do this for all mail.*, so that all clients can go to mail.theirdomain.com and be redirected without having to manually set it.

todvard
21st June 2006, 12:46
you can create a virtualhost in Apache (not in ISPConfig) with this content:

<VirtualHost 192.168.1.1:80>
ServerName mail.*:80
ServerAdmin webmaster@domain.com

DocumentRoot /var/www/sharedip

RewriteEngine On
RewriteCond %{HTTP_HOST} ^webmail..+..+$ [NC]
RewriteCond %{HTTP_HOST} !^mail.domain.com$
RewriteRule ^(.*)$ https://webmail.domain.com$1 [R=301]

</VirtualHost>

It will redicrect all incoming querys from http://mail.* to https://webmail.domain.com (of course, "webmail" hosname in domain.com domain should exist, and "mail" host in all domains too, you can create them in DNS Manager)

falko
21st June 2006, 18:53
I've just found this tutorial about redirects: http://www.stevenhargrove.com/redirect-web-pages/ :)

monster
27th June 2006, 07:13
you can create a virtualhost in Apache (not in ISPConfig) with this content:

<VirtualHost 192.168.1.1:80>
ServerName mail.*:80
ServerAdmin webmaster@domain.com

DocumentRoot /var/www/sharedip

RewriteEngine On
RewriteCond %{HTTP_HOST} ^webmail..+..+$ [NC]
RewriteCond %{HTTP_HOST} !^mail.domain.com$
RewriteRule ^(.*)$ https://webmail.domain.com$1 [R=301]

</VirtualHost>

It will redicrect all incoming querys from http://mail.* to https://webmail.domain.com (of course, "webmail" hosname in domain.com domain should exist, and "mail" host in all domains too, you can create them in DNS Manager)

Do i have to insert this for every domain i add?

till
27th June 2006, 12:44
Do i have to insert this for every domain i add?

No, only once for every IP you use for webhosting on your server.

todvard
27th June 2006, 12:54
Do i have to insert this for every domain i add?
no, only once as a new apache virtualhost:

STEP 1.: create a new web in ISPconfig, with name mail.YOURDOMAIN.COM. Install Squirrelmail into this web. Make sure it is working, accessible from outside and you can log in. Create SSL certificate for this website if you would like to log in to webmail through HTTPS.

STEP 2. create a new virtualhost in apache (eg.: /etc/apache2/sites-available/webmail.conf) with this content:

<VirtualHost 192.168.1.1:80>
ServerName mail.*:80
ServerAdmin webmaster@YOURDOMAIN.COM

DocumentRoot /var/www/sharedip

RewriteEngine On
RewriteCond %{HTTP_HOST} ^webmail..+..+$ [NC]
RewriteCond %{HTTP_HOST} !^mail.YOURDOMAIN.COM$
RewriteRule ^(.*)$ https://mail.YOURDOMAIN.COM$1 [R=301]

</VirtualHost>

Note: replace IP address with your IP address and YOURDOMAIN.COM with your domain name. If you dont want to server webmail over HTTPS replace
RewriteRule ^(.*)$ https://mail.YOURDOMAIN.COM$1 [R=301] with
RewriteRule ^(.*)$ http://mail.YOURDOMAIN.COM$1 [R=301]

STEP 3. link it to sites-enabled:
ln -s /etc/apache2/sites-available/webmail.conf /etc/apache2/sites-enabled/webmail.conf

STEP 4. go back to ISPconfig - DNS Manager and create "webmail" host for every domain which should access your webmail site through webmail.OTHERDOMAIN.COM

admiral
11th July 2006, 18:24
Great package, but still have a small question on allowing other domains to use. In the directions outlined below, Step 1 states the following:

Install Squirrelmail into this web. Make sure it is working, accessible from outside and you can log in.

What do you mean install Squirrelmail into this web. If you install the pkg through ISPConfig, it is installed just once. How do you install it per domain? Thanks.

till
12th July 2006, 13:07
Great package, but still have a small question on allowing other domains to use. In the directions outlined below, Step 1 states the following:

Install Squirrelmail into this web. Make sure it is working, accessible from outside and you can log in.

What do you mean install Squirrelmail into this web. If you install the pkg through ISPConfig, it is installed just once. How do you install it per domain? Thanks.

Todvard did not use the .pkg file available for ISPConfig. He created a website in ISPConfig and installed the tar.gz version of Squirrelmail available on the squirrelmail project page.

Hans
7th August 2006, 00:05
I guess Till is a very busy man ;)
He still did not put the squirrelmail package on http://www.ispconfig.org/downloads.htm

To put it there would be nice or ...

falko
7th August 2006, 14:56
I've just put it on http://www.ispconfig.org/downloads.htm :)

till
8th August 2006, 10:20
I guess Till is a very busy man ;)
He still did not put the squirrelmail package on

Sorry, I totally forgot it.

Hans
8th August 2006, 12:36
Thanks a lot Falko & Till.

torusturtle
3rd September 2006, 21:01
Thanks Brian!

fobicodam
5th September 2006, 18:52
Why did you remove the language option?!?!!? i need it on spanish ! :eek:

torusturtle
5th September 2006, 23:25
Why did you remove the language option?!?!!? i need it on spanish ! :eek:

Download and extraxt the all_locales-1.5.1-20060409.tar.gz from http://www.squirrelmail.org/download.php for all languages or only the spanisch file from http://sourceforge.net/project/showfiles.php?group_id=311&package_id=110388&release_id=408489.

install it with the install script and change the langugae with conf.pl

tom
9th September 2006, 23:39
Well, this forum (and ISPConfig in general) made my life loads easier, so I figured it was time to give back to the community. Well, actually, I wanted to get SquirrelMail installed, and it was pretty easy to make a package.

http://nerdlife.net/ispconfig/squirrelmail.pkg

Tested on the latest release of ISPConfig under Debian Sarge. It doesn't conflict with other webmail packages, so feel free to install it for the sake of poking around.

How's it work for you guys?

--Brian

Does that Squirrelmail package work on php5?

till
10th September 2006, 15:11
The squirrelmail package is installed on the ISPConfig httpd on port 81 and there is always a php 5.1 installed, so i guess it works with PHP5.

ikaros
28th September 2006, 00:59
How do you have access in a mail account via squirrelmail? www.somedomain.com/squirrelmail doesn't work

falko
28th September 2006, 23:04
It depends on in which folder you installed Squirrelmail. You can use an FTP client or WinSCP to browse your folders to find out where it is installed.

ikaros
28th September 2006, 23:16
It's installed in /home/admispconfig/ispconfig/web/squirrelmail but how does this help me?

falko
29th September 2006, 15:41
Then it's installed within ISPConfig's web space, and you must use something like http(s)://example.com:81/squirrelmail/

tom
29th September 2006, 16:34
I can't create an new folder whithin SquirrelMail whithout creating it as subfolder in INBOX. I've tried to create an new folder beside to INBOX called SPAMBOX but always I ge this error:


ERROR: Could not complete request.
Query: CREATE "SPAMBOX"
Reason Given: Invalid mailbox name.

What's wrong?

ikaros
30th September 2006, 17:04
Then it's installed within ISPConfig's web space, and you must use something like http(s)://example.com:81/squirrelmail/


yeap, https://www.example.com:81/squirrelmail did the trick. Thanx!

falko
1st October 2006, 01:32
I can't create an new folder whithin SquirrelMail whithout creating it as subfolder in INBOX. I've tried to create an new folder beside to INBOX called SPAMBOX but always I ge this error:




What's wrong?
What's in your mail log?

bosei
21st November 2006, 21:26
STEP 3. link it to sites-enabled:
ln -s /etc/apache2/sites-available/webmail.conf /etc/apache2/sites-enabled/webmail.conf


This seems to be self referencing. What are we linking to what. Can the same thing be achieved by including webmail.conf in httpd.conf?

falko
22nd November 2006, 17:42
STEP 3. link it to sites-enabled:
ln -s /etc/apache2/sites-available/webmail.conf /etc/apache2/sites-enabled/webmail.conf


This seems to be self referencing.
No, it isn't. You're linking /etc/apache2/sites-enabled/webmail.conf to /etc/apache2/sites-available/webmail.conf.

Can the same thing be achieved by including webmail.conf in httpd.conf?Yes.

bosei
22nd November 2006, 19:22
No, it isn't. You're linking /etc/apache2/sites-enabled/webmail.conf to /etc/apache2/sites-available/webmail.conf.

Yes.
Thanks Falco. On a quick read i missed the difference completely.
:rolleyes:

actionplant
30th November 2006, 18:41
I installed in this fashion following the Perfect Setup Ubuntu 6.06 install. I installed the latest stable release of ISPConfig two days ago, then this Squirrelmail package. I set up websites, and under ISP Site in the User & Email tab created a new mail user for each domain.

I can get to the Squirrelmail login page for each domain, but after submitting with the email address and password (as configured for user web1_user, web2_user, etc as created in ISPConfig) I get the following error:

ERROR: IMAP server closed the connection.
Server responded:* BYE [ALERT] Fatal error: Maildir: No such file or directory

I've noticed that even though I set up ISPConfig according to the install manual on their site, supposedly configured to go to http://odin.trekbeyond.org:81 I can get there with or without the "odin" subdomain, ie http://trekbeyond.org:81 also works. When I log into Squirrelmail, for one domain the first redirect is to http://odin.trekbeyond.org:81/squirrelmail/src/redirect.php, but for another domain the redirect is to http://trekbeyond.org:81/squirrelmail/src/redirect.php but it doesn't seem to make a difference, I keep getting the same error. Any ideas?

What am I missing? Under Server Settings in ISPConfig the server name is odin, the Hostname is odin, and the domain is trekbeyond.org. So why is this happening?

falko
1st December 2006, 17:14
You must send an email first to that user. Maildir is created when the first email arrives for that user.

actionplant
1st December 2006, 23:43
Thanks falko, that worked.

And helped me discover a different problem. The email came through just fine, but when I responded, instead of showing up in the destination mailbox as being from the address I set up, which was damon@theamazingdump.com (heh, don't ask) it came from web1_damon_dump@example.com

Which is weird, considering the server is set up as odin.trekbeyond.org.

What the heck?

Edit- Oh yay! After a complete re-install (I was having issues and started over this morning from scratch so I could walk through carefully again) I got everything up and running. The server sent one single email, and promptly crashed. Oh well, I guess that's further than I got yesterday. ;)

LumpyOne
2nd December 2006, 02:29
Just wanted to say thanks for making this so easy to install! Happy happy joy joy. :)

FYI, to make it easy for clients, I simply set up a page at www.example.com/mail for my clients, so that they could click to get to the secure URL for squirrelmail. It's an extra click, but easy to set up and my clients like it just fine.

falko
2nd December 2006, 16:58
And helped me discover a different problem. The email came through just fine, but when I responded, instead of showing up in the destination mailbox as being from the address I set up, which was damon@theamazingdump.com (heh, don't ask) it came from web1_damon_dump@example.com

You must set the email address in your email client (Outlook, Thunderbird, webmail, etc.).

edge
7th December 2006, 01:06
I've got this nice "skin" that I would like to use, but I'm having some problems with it.

1) I can only login with web#nr#_name
2) The user needs to set all the seting in "Options - Personal Information" when loged in for the 1st time(it's not showing any info like name, emailaddress and domain name)

It's for sure some "hack" than I need to do in one or two files that come with the the "skin" version..

bkrausz (or any other person here), do you still know what file(s) you "hacked" to make it work with ISPconfig (like read all the needed data from the ISPconfig MySQL)?

lns
18th December 2006, 22:00
Hey all,

I recently installed the latest ispconfig and squirrelmail package addon from this thread - my customer is experiencing that whenever they log into Squirrelmail and send a message, it actually reaches its destination with the "original" domain set up and not their virtual domain suffix.

So, for example, when they log in with "user@domain2.com" and send an e-mail, the e-mail reaches it's recipient with "user@domain1.com".

Everything else seems to be working fine. Any ideas?

Sincerely,
Jordan

**EDIT**
My customer states that this is not specific to Squirrelmail, but an all-around ISPConfig thing (he created an Outlook profile and experienced the same issues)... If anyone could help it would be greatly appreciated... Thank you!!

falko
19th December 2006, 21:35
You must set the correct sender address in your email client (webmail, Outlook, Thunderbird, etc.), as you do with every other email account as well.

dennsy
29th December 2006, 00:53
Thanks.... :)

jazeman
29th December 2006, 13:28
ok but maby there should be a script in ispconfig to sett up squirrelmail to add the right mailadress when it anyways creates the acount.
and I cant log inn and when i send a mail. I get a mail on the server but still get the error msg.

falko
29th December 2006, 18:07
ok but maby there should be a script in ispconfig to sett up squirrelmail to add the right mailadress when it anyways creates the acount.

But when you set up an account in a normal email client such as Outlook or Thunderbird, you also specify the sender address manually. Why should this be different in Squirrelmail?

bwrob
5th January 2007, 00:17
For Squirrelmail not to show my true username.
Install virtusertable plugin.
In squirrelmail config.php:

$domain = 'substr($domain, strpos($domain, '.') + 1';
$imapServerAddress = 'localhost';
$imapPort = 143;
$useSendmail = false;
$smtpServerAddress = 'localhost';
$smtpPort = 25;
$sendmail_path = '/usr/sbin/sendmail';
$sendmail_args = '-i -t';
$pop_before_smtp = false;
$imap_server_type = 'dovecot';
$invert_time = false;
$optional_delimiter = 'detect';
$encode_header_key = 'yourencodetexthere';


Then make sure that squirrelmail user personal information is is filled up.

Also in my main httpd.conf i inserted.

Alias /squirrelmail /srv/www/squirrelmail/

That way got access from any website.

Works for me

bob

bitonw
16th May 2007, 17:35
Thanks a very nice and easy to install package. :) But what about Squirrelmail updates?

bt

cryptic
18th May 2007, 22:18
Is there an updated package yet to cover this advisory - http://secunia.com/advisories/25320/ ?

tebokkel
28th July 2007, 13:41
There is no current need to update. This is the most current version (1.5.1) and the advisory above is about the 1.4 branch.

I've just checked the package and compared it with Squirrelmail 1.5.1 from the squirrelmail.org site:

# diff -ru squirrelmail-1.5.1/ squirrelmail/
Only in squirrelmail/: attach
Only in squirrelmail/config: config.php
Only in squirrelmail/: data
Only in squirrelmail/plugins: compatibility
Only in squirrelmail/plugins: vlogin
diff -ru squirrelmail-1.5.1/templates/default/login.tpl squirrelmail/templates/default/login.tpl
--- squirrelmail-1.5.1/templates/default/login.tpl 2006-02-08 23:02:46.000000000 +0100
+++ squirrelmail/templates/default/login.tpl 2006-06-16 20:59:07.000000000 +0200
@@ -35,7 +35,7 @@
</tr>
<tr>
<td class="sqm_loginFieldName">
- <?php echo _("Name:"); ?>
+ <?php echo _("Email Address:"); ?>
</td>
<td class="sqm_loginFieldInput">
<?php echo $login_field; ?>



The packaging is almost trivial (with the current version as baseline), so I think any security update could be available in hours after the new SM-release.

Paul

Blacknight
28th August 2007, 15:18
I'm a newbie please help me, i was installing Ispconfig in my PC and then i want to install squirrelmail for mailserver. then i'm trying to install this package but don't know how to install, please help me?? I use debian, thanks before.

till
28th August 2007, 15:22
Login to ispconfig, go to management > software > update and install the squirrelmail package from ispconfig.org

Blacknight
28th August 2007, 15:37
Thanks till for the solve, its help me a lot :D

fobicodam
14th September 2007, 19:52
For Squirrelmail not to show my true username.
Install virtusertable plugin.
In squirrelmail config.php:

$domain = 'substr($domain, strpos($domain, '.') + 1';
$imapServerAddress = 'localhost';
$imapPort = 143;
$useSendmail = false;
$smtpServerAddress = 'localhost';
$smtpPort = 25;
$sendmail_path = '/usr/sbin/sendmail';
$sendmail_args = '-i -t';
$pop_before_smtp = false;
$imap_server_type = 'dovecot';
$invert_time = false;
$optional_delimiter = 'detect';
$encode_header_key = 'yourencodetexthere';


Then make sure that squirrelmail user personal information is is filled up.

Also in my main httpd.conf i inserted.

Alias /squirrelmail /srv/www/squirrelmail/

That way got access from any website.

Works for me

bob

Where is the plugin? the code is the plugin? this code is wrong written.

This :
$domain = 'substr($domain, strpos($domain, '.') + 1';

Should be something like:

$domain = substr($username, strpos($username, '@') + 1';

Otherwise you will get "user@com"

fobicodam
14th September 2007, 20:50
Where is the plugin? the code is the plugin? this code is wrong written.

This :
$domain = 'substr($domain, strpos($domain, '.') + 1';

Should be something like:

$domain = substr($username, strpos($username, '@') + 1';

Otherwise you will get "user@com"

To Fix it do that:

on config/config.php line 32, replace:
'$domain = 'example.com';
sqgetGlobalVar('domainname',$domain,SQ_SESSION);

on redirect.php, line 50, add:
sqsession_register(substr($login_username, strpos($login_username, '@') + 1), 'domainname');

Fixed, every user will get the domain name they use to login.

exmedia
19th September 2007, 12:30
I just installed SquirrelMail en it seems that its working.. but in the inbox (where is new mail) I get this error:

Category: PHP
Message: preg_split() expects parameter 4 to be long, string given
FILE: /home/admispconfig/ispconfig/web/squirrelmail/functions/imap_messages.php
LINE: 926
Category: PHP
Message: Invalid argument supplied for foreach()
FILE: /home/admispconfig/ispconfig/web/squirrelmail/functions/mime.php
LINE: 52

and it looks like that I cant send mail from SquirrelMail

I hope that someone can help me

falko
20th September 2007, 15:26
Any errors in your mail log?

flofly
25th October 2007, 14:44
Hello

I want to add the possibility to add Spamassassin Configuration / Black-/Whitelisting, Quarantaine, .... to Squirrelmail. So that each user can easily change his settings.

At my previous server I used the amavisnewsql-Squirrelmail plugin for this purpose. Since ISPConfig is not working with Amavis I think this one will not work.

There are a few other Squirrelmail Plugins but they all are look quite outdated. Does anybody has some experience with that an can give me suggestion?

Thanks
Florian

SupuS
23rd June 2008, 15:40
Hi all

I have problem with login to the squirrelmail on new server. First everything was ok:

Jun 11 14:09:17 s4 imapd: LOGIN, user=web2test, ip=[::ffff:127.0.0.1], port=[59198], protocol=IMAP
Jun 11 14:09:17 s4 imapd: LOGOUT, user=web2test, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=13, sent=86, time=0

but after few time a cannot login because squirrelmail started use domain of this user with username too:

Jun 11 15:14:34 s4 imapd: LOGIN FAILED, user=web2test@mydomain.cz, ip=[::ffff:127.0.0.1]

I tried delete squirrelmail and reinstall and reinstall whole ispconfig but without success .. maybe I changed something directly in user account when logged in? All what I did, except playing with squirrelmail, was installing of awstats.

Webmail works fine and squirrelmail on other servers works fine too.

Thanks for help

SupuS

tebokkel
23rd June 2008, 16:47
If anything, it has to do with your IMAP-server, which looks like Courier. The Courier authdaemon should then be configured, it it were wrong (it probably isn't).
As ISPConfig only supports real accounts (not virtual email-only accounts), you should try to login using an accountname, not the email address. You can have multiple web2test-addresses in different domains, but these are aliasses (or forwards) that get rewritten by (in my case) Postfix.

Stick to the account as login to Squirrelmail and it should work.

SupuS
23rd June 2008, 17:14
If anything, it has to do with your IMAP-server, which looks like Courier. The Courier authdaemon should then be configured, it it were wrong (it probably isn't).
As ISPConfig only supports real accounts (not virtual email-only accounts), you should try to login using an accountname, not the email address. You can have multiple web2test-addresses in different domains, but these are aliasses (or forwards) that get rewritten by (in my case) Postfix.

Stick to the account as login to Squirrelmail and it should work.

Hi tebokkel

I didn't try to login to Squirrelmail with email address all the time .. I used account name only but somehow it translate to email address. Even if I changed domain name in ispconfig the domain name was still same as before.

falko
24th June 2008, 18:35
Do you use the SquirrelMail .pkg package from ispconfig.org, or did you install SqirrelMail manually?

SupuS
25th June 2008, 14:22
Do you use the SquirrelMail .pkg package from ispconfig.org, or did you install SqirrelMail manually?

Hi falko

I used the SquirrelMail .pkg package from ispconfig.org .. for the first time on this server and on other three servers it runs ok. I created new web with new user but problem persist and domain is still same as domain in first created web.

Jun 25 13:12:55 s4 imapd: LOGIN FAILED, user=web3test@mydomain.cz, ip=[::ffff:127.0.0.1]
Jun 25 13:13:00 s4 imapd: LOGOUT, ip=[::ffff:127.0.0.1], rcvd=60, sent=323

It seems that mydomain.cz is somewhere hardcoded but I don't know where. I searched in ispconfig db and in /home/admispconfig directory but didn't find any record or file with mydomain.cz content related with SquirrelMail.

till
25th June 2008, 14:54
You will ahve to set the sender email address under options in squirrelmail for each account. If you do not set it, the hostname of your server is uded by squirrelmail.

SupuS
25th June 2008, 15:04
You will ahve to set the sender email address under options in squirrelmail for each account. If you do not set it, the hostname of your server is uded by squirrelmail.

Hi till

Yes I know it but I cannot login to squirrelmail anymore so I cannot set or change sender email address. Problem is that squirrelmail sending username to imap server as email adress web3test@mydomain.cz and not only username web3test and I don't know why. I reinstalled squirrelmail pkg but problem still remain.

lanstar
27th June 2008, 05:46
I've read pretty much all the posts in this thread and have seen several suggestions for accomplishing some version of the two things needed to make the Squirrelmail plugin work "nicely" for all sites in ISPConfig:

1) Make it so it's easy for users to enter the URL for Squirrelmail and so it looks like the Squirrelmail instance is a part of the client's domain. This could be done in one of two ways (I don't care which.)...

Method 1: Redirect http://www.clientdomain.com/webmail to https://webmail.clientdomain.com:81/squirrelmail/ and have that actually invoke the common Squirrelmail plugin site.

Method 2: Redirect http://webmail.clientdomain.com to https://webmail.clientdomain.com:81/squirrelmail/
Once again, this should really be the .pkg'd Squirrelmail plugin serving up the content.

Either way makes it simple for users to get to their web e-mail system without having to remember to enter "https://" or put in the ":81". It also LOOKS nice and integrated with the client's web site since the domain name stays the same all the way through - even while inside SquirrelMail.

Second Part:

Make it so that when a user logs in with their full e-mail address: user1@clientdomain.com - all the mail they send will go out as coming from user1@clientdomain.com even if they don't fill in the "from" or "reply-to" fields under "OPTIONS" - "Personal Information" in Squirrelmail. I say this because 90% of the users won't fill that stuff in - at least not initially.

I ALMOST got this second part working by using a mod I found earlier in this thread:

To Fix it do that:

on config/config.php line 32, replace:
'$domain = 'example.com';
sqgetGlobalVar('domainname',$domain,SQ_SESSION);

on src/redirect.php, line 50, add:
sqsession_register(substr($login_username, strpos($login_username, '@') + 1), 'domainname');

Fixed, every user will get the domain name they use to login.


With these mods, a user can log in as user1@somedomain.com and send mail. When it arrives, it appears as coming from web2_user1@somedomain.com. (The "web2" part is just an example of the standard ISPConfig "webX_" prefixing scheme.) If we could strip the "web2_" then the second issue would be solved.

I've installed no plugins for Squirrelmail other than the ones already installed in the .pkg version of ISPConfig Squirrelmail.

Lastly, this all needs to happen by making one set of global modifications, one time - not by having to edit or create any additional files. Then, just by performing the standard steps inside ISPConfig one normally does to create a site for a client - the client will also have a "ready to go" SquirrelMail instance. No "create the options file for each user" kind of solutions. If you have 100 clients each with 50-200 users, one can't afford to introduce additional steps in the client or site creation process.

Has someone managed to accomplish these two goals completely? If so, would share your cool-solutions with us?

Thanks!

Rasputin
21st July 2008, 23:34
Has someone managed to accomplish these two goals completely? If so, would share your cool-solutions with us?


Hi.

Even though I'm not using squirrelmail any more, I think I can answer your question.
In order to completely solve the second problem you have to do some additional adjustments:

In src/redirect.php, line 51 add:

sqsession_register(substr($login_username, 0, strpos($login_username, '@')), 'popuser');


In functions/identity.php, line 31 sqq. adjust:

function get_identities() {

global $username, $data_dir, $domain;
sqgetGlobalVar('popuser',$popuser,SQ_SESSION);
$em = getPref($data_dir,$username,'email_address');
if ( ! $em ) {
if(!empty($popuser)){
$em = $popuser.'@'.$domain;
} else if (strpos($username , '@') == false) {
$em = $username.'@'.$domain;
} else {
$em = $username;
}
}
...


This will keep the local-part (the part before the @) of the email address with which you have logged in.

AsDsL
22nd July 2008, 04:09
Hi,
How may I update Squirrelmail to last ver?

Thanks!
Tony

mcardo
9th April 2009, 20:45
1. About Squirrelmail. When I use any login and the right admin password it will login to an inbox, which should not unless you have the right username.

When I use my client's email addresses from their respective website it does not login and gives me an error.

2. About Uebimeau. It will not login to any account.

3. How do I uninstall packages from ISPConfig?

falko
10th April 2009, 14:19
1. About Squirrelmail. When I use any login and the right admin password it will login to an inbox, which should not unless you have the right username.

When I use my client's email addresses from their respective website it does not login and gives me an error.

2. About Uebimeau. It will not login to any account.

Any errors in your mail log?
Did you use email addresses (instead of usernames) to log in?

mcardo
10th April 2009, 16:08
All the email accounts I've tested DO work on mail exchange applications using pop3 and smtp.

Which log should I check and where do I find it?

I run ubuntu 8.10 installed follwing your great instructions. But there is not much on squirrelmail troubleshooting for Ispconfig.

falko
11th April 2009, 20:54
The mail log is /var/log/mail.log.

j.smith19810808
3rd March 2010, 01:43
I may sound really stupid here but what are the exact steps for installing squirrelmail?

I got it installed using the linked package (thanks ever so much for this).

But its coming up with a few errors, exactly what do I have to do line by line to get this working with my system please?

Here's a copy of the errors I am getting:

Warning: Cannot use a scalar value as an array in /home/admispconfig/ispconfig/web/squirrelmail/functions/imap_general.php on line 950

Warning: Cannot modify header information - headers already sent by (output started at /home/admispconfig/ispconfig/web/squirrelmail/functions/imap_general.php:950) in /home/admispconfig/ispconfig/web/squirrelmail/functions/page_header.php on line 46

Warning: Cannot modify header information - headers already sent by (output started at /home/admispconfig/ispconfig/web/squirrelmail/functions/imap_general.php:950) in /home/admispconfig/ispconfig/web/squirrelmail/functions/page_header.php on line 47

Any help as usual is appreciated.

Plus, is there anyway of installing seperate ssl crt's for different websites I am hosting please?

Any help with the 2 of these is much appreciated (I am finally getting there though!).

Thanks,
Jeremy.:confused:

falko
3rd March 2010, 15:47
Which distribution do you use?

j.smith19810808
4th March 2010, 12:48
Fedora 12, but its 32bit remember.

Thanks,
Jeremy.

falko
5th March 2010, 14:43
What ISPConfig version do you use?
Did you maybe modify /root/ispconfig/php/php.ini?

SamTzu
12th April 2010, 11:15
I wanted to puke every time I watched the default theme so I made a new one that is somewhat tolerable.
:eek:
Just unzip this to squirrelmail directory @ /usr/share/squirrelmail/
config -> /etc/squirrelmail