Koozali.org: home of the SME Server

DIMP as default for Webmail

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
DIMP as default for Webmail
« 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
...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: DIMP as default for Webmail
« Reply #1 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.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: DIMP as default for Webmail
« Reply #2 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! :(
...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: DIMP as default for Webmail
« Reply #3 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?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: DIMP as default for Webmail
« Reply #4 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

...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: DIMP as default for Webmail
« Reply #5 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.
« Last Edit: November 02, 2011, 03:22:35 PM by cactus »
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
[Solved] Re: DIMP as default for Webmail
« Reply #6 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.
« Last Edit: November 02, 2011, 09:05:58 PM by jader »
...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: [Solved] Re: DIMP as default for Webmail
« Reply #7 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 :)
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: DIMP as default for Webmail
« Reply #8 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
« Last Edit: November 02, 2011, 09:06:37 PM by jader »
...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: DIMP as default for Webmail
« Reply #9 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.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: DIMP as default for Webmail
« Reply #10 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
...