Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: Jáder on November 01, 2011, 11:48:58 PM

Title: DIMP as default for Webmail
Post by: Jáder on November 01, 2011, 11:48:58 PM
I´ve installed DIMP as a module for webmail (so I can choose IMP or DIMP).
Right now I´d like to hide IMP and use just DIMP or at least change default from IMP to DIMP at login screen.

Anyone know how to do this ?

Regards

Jáder
Title: Re: DIMP as default for Webmail
Post by: cactus on November 02, 2011, 07:31:04 AM
I´ve installed DIMP as a module for webmail (so I can choose IMP or DIMP).
Right now I´d like to hide IMP and use just DIMP or at least change default from IMP to DIMP at login screen.

Anyone know how to do this ?
This is not tested, but it might be as simple as overriding the location in a copy of VirtualHosts/30WebmailAliases in a custom-template.

For more information on templates and custom templates see the Developers Guide in the wiki.
Title: Re: DIMP as default for Webmail
Post by: Jáder on November 02, 2011, 11:48:00 AM
This is not tested, but it might be as simple as overriding the location in a copy of VirtualHosts/30WebmailAliases in a custom-template.

For more information on templates and custom templates see the Developers Guide in the wiki.
Cactus
Hum... I don't think so...change there would point to another place in server.
I think what I need is to change the HORDE html generated to switch default client from IMP to DIMP.
I'm googling for it... but all same questions have no answer! :(
Title: Re: DIMP as default for Webmail
Post by: cactus on November 02, 2011, 11:56:50 AM
Cactus
Hum... I don't think so...change there would point to another place in server.
Yes, that is exaclty what it should do, or isn't /dimp the replacement of /imp?

I think what I need is to change the HORDE html generated to switch default client from IMP to DIMP.
Wouldn't my suggestion do that? Did you try?
Title: Re: DIMP as default for Webmail
Post by: Jáder on November 02, 2011, 01:54:09 PM
Yes, that is exaclty what it should do, or isn't /dimp the replacement of /imp?
Wouldn't my suggestion do that? Did you try?

Cactus

It's possible to use this url: http:<server>/horde/dimp
I have webmail.domain pointing to http:server/webmail

I'll try to change on DNS from /webmail to /horde/dimp as a temporary fix.
This will help on external access using DNS resolution. For internal one, they will have to choose DIMP ... at least for now.

Regards

Jáder

Title: Re: DIMP as default for Webmail
Post by: cactus on November 02, 2011, 03:20:56 PM
I'll try to change on DNS from /webmail to /horde/dimp as a temporary fix.
This will help on external access using DNS resolution. For internal one, they will have to choose DIMP ... at least for now.
Why? If you just change the webmail alias to point to /dimp all users will by default have DIMP or am I missing something here?

IMHO this will only switch the /dimp for /imp leaving both access methods posssible, but the dimp one then default.
Title: [Solved] Re: DIMP as default for Webmail
Post by: Jáder on November 02, 2011, 08:58:23 PM
Cactus

You're rigth!
In a custom-template

 
Code: [Select]
cp /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/30WebmailAliases /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts/30WebmailAliases
vi /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts/30WebmailAliases
changed the line
Code: [Select]
    $dirs{webmail} = "$dirs{horde}/imp";to
Code: [Select]
    $dirs{webmail} = "$dirs{horde}/dimp";
And expand templates / restart service with:
Code: [Select]
expand-template /etc/httpd/conf/httpd.conf         
service httpd-e-smith restart

And everything is fine!
Thank you by your help and persistence! ;)

Jáder
EDITED to let anyone knows I did changes on a custom-template fragment.
Title: Re: [Solved] Re: DIMP as default for Webmail
Post by: cactus on November 02, 2011, 09:00:09 PM
You're rigth!
I changed the line
Code: [Select]
    $dirs{webmail} = "$dirs{horde}/imp";to
Code: [Select]
    $dirs{webmail} = "$dirs{horde}/dimp";
In a custom template I presume? Otherwise your changes might get overwritten on updates.

Thank you by your help and persistence! ;)
You're welcome, I was (almost) sure this should work :)
Title: Re: DIMP as default for Webmail
Post by: Jáder on November 02, 2011, 09:03:48 PM
Yes, sorry... I miss to tell you:
Code: [Select]
vi /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts/30WebmailAliases
EDIT: original reply updated to have all changes on one single place
Title: Re: DIMP as default for Webmail
Post by: cactus on November 02, 2011, 09:04:53 PM
Yes, sorry... I miss to tell you:
Code: [Select]
vi /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts/30WebmailAliases
Perfect, than you should be fine when upgrading.
Title: Re: DIMP as default for Webmail
Post by: Jáder on November 02, 2011, 11:31:49 PM
cactus

I´ve seen another problem with the change: I´ve to login twice (one on dimp, another on imp).
Once I saw two toolbars on left after second login...
So I think this must done AND something must be changed on administrative interface.
I remember to have seen one place about what app is used to login (and there are IMP there!).

Jáder