Showing posts with label mua. Show all posts
Showing posts with label mua. Show all posts

Friday, April 25, 2008

Using Apache to forward request

I am getting complaints from users that the mail server is not accessible from outside the local network due to the port number being block at other networks. My mail server is using port 8383 for webmail. Following steps allow my webmail to be accessed without needing to change the mail server settings.

The Plan
I need to setup an apache 2 on Linux and later reroute the DNS to use this new sever. All this using mod proxy in Apache.

What is mod proxy? see Apache site
"A typical usage of a forward proxy is to provide Internet access to internal clients that are otherwise restricted by a firewall. "

In this example my mail server details:
servername: mail.myserver.com.my
serverip: 192.93.20.3

STEP 1: Setting up the mod proxy on 192.93.20.4
My proxy is on CentOS 5.1 with Apache 2 (httpd-2.2.3-11.el5_1.centos.3)
  1. Install a Linux with Apache 2 and open the httpd.conf file

    vi /etc/httpd/conf/httpd.conf

  2. Make sure you have the following LoadModule lines (it waas there)
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so

Go to section three of the file and add

ServerName mail2.myserver.com.my
ProxyPass / http://firewall.myserver.com.my/
ProxyPassReverse / http://firewall.myserver.com.my/
RewriteEngine On
RewriteRule ^/$ http://mail.myserver.com.my:8383/ [P]



STEP 2: Redirect DNS
  1. Configure the DNS to accept mail2.myserver.com at the new server 192.93.20.4 which defaults to port 80
-

Thursday, April 17, 2008

Evolution vs Thunderbird vs Outlook

Intrduction to emails

Mail User Agent (MUA) is also known as an Email client. MUA is used to request email
from a Mail Transfer Agent (MTA). The request can be made in 2 forms:


  1. Post Office Protocol (POP3): Messages on the server cannot be flagged (as seen or
    forwarded) and messages are removed by default from the server to the MUA.

  2. Internet Message Access Protocol (IMAP): Messages on the server can be flagged and
    directories are used to managed emails on the server.


MUA must meet formating of email header ( To, CC, BCC, Reply-To) and footer as
described in RFC2822.


For firewall settings, MUA access a standard MTA via port 25 (SMTP). Currently
Transport Layer Security (TLS) is being used in many MTA for connection and transfer
security. Other ports of importance (plain/encrypted):
POP3 (110/995)

IMAP4 (143/993)

HTTP (80/443)

Anyone can read the contents or body of an email moving across MTA and MUA. Therefore
encryption of the Email content is used to protect the sensitive data. This can be in
two forms:S/MIME: requires a trusted body to recognise the userOpenPGP: users can recognise each other (no third party needed)


(T) PluginsLightning: Calendar tool support for WebDav and iCalendarEnigmail: adds OpenPGP message encryption and authentication to your email client. It features automatic encryption, decryption and integrated key management functionality. Enigmail requires GnuPG (www.gnupg.org) or Gpg4win for the cryptographic functions. Note: GnuPG and Gpg4win is not part of the installation.


(O) Viruses


(E) Support ServersMS Exchange, POP3, IMAP, Lotus

(E) clientGmail, Yahoo, AOL, Hotmail


(E) License: LGPL

(T) License: MPL, MPL/GNU GPL/GNU LGPL

(O) License: part of MS Office


(T) Calendar: iCalendar, WebDav

(O) Calendar: iCalendar, WebDav

(E) Calendar: iCalendar, WebDav


Platforms

Linux (E),(T)

MS Windows (T),(O)


Links:




Blog Archive