<div><div class="gmail_quote">On 9 January 2012 10:34, Robert Nesius <span dir="ltr"><<a href="mailto:nesius@gmail.com">nesius@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

I made a recently change to how my apache2 server was configured to redirect all requests through https.  Now emails are not flowing through to RT - I tracked the issue down to rt-mailgate complaining about not being able to verify the certificate.  I'm a little perplexed on how to proceed or how to verify what certs/CAs rt-mailgate is using, or if there is an issue with the Crypt::SSLeay module (which I had to force install due to a failing test).   I only have one openssl install on the system, and I thought Crypt::SSLeay would reach through to those configs for things like CA certs, etc... <div>


<br></div><div>Perhaps an easy workaround, since the mail server and apache2 server are on the same machine, would be to configure a "localhost:80" virtual host within apache2 and bypass SSL when accessing RT via that url.   </div>


<div><br></div><div>Any helpful hints/suggestions would be greatly appreciated.   I've been google-ing away but haven't had any luck yet.  </div><div><br></div></blockquote><div><br></div><div>We simply use mod_rewrite to redirect everyone *except* the server itself to https.  This way when rt-mailgate calls <a href="http://rt.ourdomain/com">http://rt.ourdomain/com</a> it is not forced to use https while everyone else is.<div>

<br></div><div><div># Redirect everyone except the rt-mailgate and RT utilities to https</div><div>   RewriteEngine On</div><div>   RewriteCond %{REMOTE_ADDR} !^10\.10\.227\.209$</div><div>   RewriteRule ^/(.*)$ <a href="https://rt.ourdomain.com/$1">https://rt.ourdomain.com/$1</a> [R=301,L]</div>

</div></div></div><div><br></div><div>The 10.10.227.209 is the IP address of the server according to ifconfig eth0 in this case.</div><div><br></div>-- <br>Landon Stewart <<a href="mailto:LStewart@Superb.Net" target="_blank">LStewart@Superb.Net</a>><br>

Manager of Systems and Engineering<br>Superb Internet Corp - 888-354-6128 x 4199<br>Web hosting and more "Ahead of the Rest": <a href="http://www.superbhosting.net/" target="_blank">http://www.superbhosting.net</a><br>

<br>
</div>