Hello Daniel,
Yes Sam did come and give me some clues. What you should try is this.
cd /usr/local/share; mkdir -p your.domain.com/webmail
cd your.domain.com/webmail
cp -Rp /usr/local/share/sqwebmail/html .
Now to apache. This works for me but, I have redirect on to use SSL and for
some reason the certificate does not match even though I made a cert for it.
I think I did not name the cert right which would explain the warning about
name does not match (http://webmail.freedomtc.com)
If you want to use SSL you will need something similar to mine below:
<VirtualHost 216.126.95.28>
ServerAdmin [EMAIL PROTECTED]
ServerName webmail.freedomtc.com
Redirect / https://webmail.freedomtc.com/cgi-bin/sqwebmail/sqwebmail
ErrorLog /var/log/www/webmail.freedomtc.com-error_log
TransferLog /var/log/www/webmail.freedomtc.com-access_log
</VirtualHost>
and the next one belongs in your apache's httpd.conf's :443 section:
</VirtualHost>
<VirtualHost 216.126.95.28:443>
ServerAdmin [EMAIL PROTECTED]
ServerName secure.freedomtc.com
SetEnv SQWEBMAIL_TEMPLATEDIR /usr/local/share/webmail/freedomtc.com/html
DocumentRoot /usr/local/www/data/freedomtc
ErrorLog /var/log/www/webmail-secure.freedomtc.com-error_log
TransferLog /var/log/www/webmail-secure.freedomtc.com-access_log
SSLEngine on
SSLCipherSuite
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /usr/local/etc/apache/ssl-certs/freedomtc.com/server.crt
SSLCertificateKeyFile
/usr/local/etc/apache/ssl-certs/freedomtc.com/server.key
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
SSLOptions +StdEnvVars
</Files>
<Directory "/usr/local/www/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
CustomLog /var/log/ssl_request_log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>
Hope that helps you out.
Regards,
Lanny
Daniel writes:
> I am having the same problem you were having in regard to
> Subject: multiple sqwebmail domains
> Date: Mon, 13 Aug 2001 08:47:43 -0700
> which you had posted to the sqwebmail mailing list and had noticed
> no-one had replied to your question.
> I was wondering if you have found out why this problem was happening, if
> you have, I would greatly appreciate your help
>
> Thankyou
> Daniel
>
> original message follows:
> Hi, after reading the INSTALL doc for sqwebmail and imparticular .....
> <VirtualHost a.b.c.d>
> ServerName webmail.example.com
> [...]
> SetEnv SQWEBMAIL_TEMPLATEDIR
> /usr/local/share/webmail/webmail.example.com
> [...]
> </VirtualHost>
>
> This function keeps getting me "Can't open form template."
> What I have
> tried is to cp -Rp /usr/local/share/sqwebmail/html
> /usr/local/share/webmail/freedomtc.com and then cp -Rp
> /usr/local/share/sqwebmail
> /usr/local/share/webmail/freedomtc.com thinking
> that the new dir needed the bin subdir or another file which was
> located in
> the original sqwebmail dir. All do the same thing, with the
> error above.
>
> In httpd.conf I have tried
> SetEnv SQWEBMAIL_TEMPLATEDIR
> /usr/local/share/webmail/freedomtc.com
> and
> SetEnv SQWEBMAIL_TEMPLATEDIR
> /usr/local/share/webmail/freedomtc.com/html
> and
> SetEnv SQWEBMAIL_TEMPLATEDIR
> /usr/local/share/webmail/freedomtc.com/html/en-us
>
> would anyone mind telling me where I am going wrong?
>
> Thanks,
>
> Lanny
>
>
>