Koozali.org: home of the SME Server

Can I configure to access Webmail via HTTP from Internet?

kansasdragon

Can I configure to access Webmail via HTTP from Internet?
« on: March 15, 2007, 09:54:45 PM »
I just upgraded an SME 6.0 to SME 7.1.

This was setup previously by someone else.  The client uses a forward through his router for HTTPS to another computer in his office, and his SME 6.0 was doing webmail via HTTP.  

Can 7.1 be configured to allow this?  And if so, how do I make it happen?

Thank you.

Offline Tib

  • *
  • 571
  • +0/-0
    • http://www.tibors.net
Can I configure to access Webmail via HTTP from Internet?
« Reply #1 on: March 16, 2007, 02:38:56 AM »
With SME7.0 up you use the HTTPS interface to access the webmail.

Make sure you have webmail access anabled in the email configuration section.

Configuration/E-mail/Change e-mail access settings.


Regards,

Tib

kansasdragon

Can I configure to access Webmail via HTTP from Internet?
« Reply #2 on: March 16, 2007, 03:29:12 AM »
hmm, but that does not help, Tib.  Since the HTTPS port 443 is port forwarded to another PC in the building, the SME Server never sees the HTTPS request.

That's the reason behind my question, I can't use HTTPS, they had been using HTTP in the past on their SME 6.0, and with their configuruation, cannot use HTTPS.

Offline Tib

  • *
  • 571
  • +0/-0
    • http://www.tibors.net
Can I configure to access Webmail via HTTP from Internet?
« Reply #3 on: March 16, 2007, 06:54:49 AM »
You may have to find out how to change the port address of the sme server for webmail then ... 7.0+ does not use http for webmail anylonger.

There is a way to do it ... maybe do a search here and find some posts .... I have seen ppl requesting this before.

Regards,

Tib

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Can I configure to access Webmail via HTTP from Internet?
« Reply #4 on: March 16, 2007, 09:21:14 AM »
Code: [Select]
[root@c3 ~]# config setprop imp access Mary_Had_A_Little_Lamb
[root@c3 ~]# expand-template /etc/httpd/conf/httpd.conf
[root@c3 ~]# /etc/rc7.d/S86httpd-e-smith restart


The code fragment..
Code: [Select]
{
    # vim: ft=perl:

    $haveSSL = (exists ${modSSL}{status} and ${modSSL}{status} eq "enabled") ?  'yes' : 'no';
    my $webmailStatus = $imp{'status'} || "disabled";
    my $webmailAccessType = $imp{'access'} || "SSL";

    my $dirs;
    $dirs{horde} = '/home/httpd/html/horde';
    $dirs{webmail} = "$dirs{horde}/imp";

    return "    # webmail is disabled in this VirtualHost"
            unless $webmailStatus eq 'enabled';

    foreach $place ('webmail','horde')
    {
        if (($port eq "80") && ($haveSSL eq 'yes') && ($webmailAccessType eq 'SSL'))
        {
            $OUT .= "    RewriteRule ^/$place(/.*|\$)    https://%{HTTP_HOST}/$place\$1 [L,R]\n";
        } else {
            $OUT .= "    Alias       /$place   $dirs{$place}\n";
        }
    }
}
Regards,
William

IF I give advise.. It's only if it was me....