mercoledì 8 agosto 2012

hMailServer

http://www.hmailserver.com/index.php?page=functionality

hMailServer provides all of the important functionality you need to run your own e-mail server. As a user of hMailServer, you get continuous updates and great support from other users and developers in the forum. hMailServer is a free product. Free when it comes to the price, and free when it comes to how you can use or distribute it. hMailServer supports the open email standards POP3, SMTP and IMAP4. This makes the server compatible with most email clients available. hMailServer 4 and earlier versions are licensed as open source under the GPL license. Later versions of hMailServer (version 5 and later) are still free of charge but closed source. 

Durante l'installazione ho optato per usare un DB MySQL, non usando MIcrosoftSQL compact suggerito durante l'installazione.
In questo caso però mi sono imbattuto nel seguente errore:
Ho copiato  libmysql.dll da "C:\Program Files (x86)\MySQL\MySQL Workbench 5.2 CE" in"C:\Program Files (x86)\hMailServer\Bin"
e l'installazione si p conclusa correttamente.
La password scelta è: hMailServer
Una volta conclusa l'installazione, si passa alla configurazione.
Ad un certo punto della guida, per vedere se la porta 25 è bloccata, si chiede di eseguire un telnet. Ecco come attivare telnet su w7:

Oggi, vi presentiamo una mini guida che vi spiega come attivare la funzione Telnet nel vostro nuovo, sistema Windows 7 e Windows Vista. La prima cosa da fare è quella di aprire il pannello di controllo del vostro Windows e in seguito su Disistalla.
A questo punto, sulla barra di sinistra cliccate su Attivazione e Disattivazione delle funzionalità di Windows. Si aprirà una nuova finestra e spuntate le caselle vicino alle voci: Telnet Client,Telnet Server (opzionale). A questo punto, confermate l’operazione e aspettate alcuni minuti che sia installato il servizio. Una volta completata l’installazione tramite il prompt dei comandi, potrete utilizzare il Telnet.



http://www.hmailserver.com/documentation/v5.3/?page=howto_install

Installing hMailServer

This page describes the required steps to install hMailServer 5. Before installing hMailServer, you should ensure that your computer fulfills the system requirements.

Step 1: Download

The first step is of to download hMailServer. The installation program is available for download at the download page. It is recommended that you download the latest stable version. The file you download has a name of the form hMailServer-version-build.exe. As an example, version-build might stand for 5.0-Build-305.

Step 2: Install

  • Double-click on the downloaded file to launch the setup. The first dialog which is shown is the Welcome dialog, in this one, simply click Next.
  • The next step is to read the license agreement. If you don't accept the license agreement, please cancel the installation. If you agree, select "I accept the agreement" and click next.

  • Select the destination folder and click Next. You should select a local drive and not a network folder. It is possible to install hMailServer on removable devices, but you will not be able to run hMailServer from the device on another computer.
  • Select which components you want to install and click Next. On the server, you should install all available components. If you have already installed the hMailServer server on another computer and you want to manage that remotely, you only need to install the Administrative tools.
  • Select which start menu folder you want to place the hMailServer icons in and click Next.
  • Confirm that the settings are correct and then click Install to do the installation.
  • Wait... The installation should take about 10-20 seconds.
  • After the files have been installed, you need to provide the installation program with a main hMailServer password. In 4.3 and later, a main password is used to increase security. The password can be anything you like as long as it's longer than 5 characters. You will need the password later on when performing server administration, so don't forget it. You only need to specify the password the first time you install hMailServer
  • After you have finished the installation, it's time to start hMailServer Administrator (found in the start menu). The first thing which appears is the Connect dialog. This dialog allows you to connect to different hMailServer installations in your network. Normally, you will want to connect to localhost. Select localhost, and click Connect. In the password dialog, enter your main hMailServer password and click OK.

Step 3: Post-installation tasks

DNS configuration

After installing hMailServer, make sure you configure your DNS server correctly. For SMTP to work, you must define MX records for your domain. MX stands for Mail eXchanger. Simply put, the MX records tell other email servers what server in your domain is responsible for handling mail. Here is more information about MX records.

Step 4: Configuring the server

The tutorial for configuring the server is found here.
If you are experiencing any problems, please read the troubleshooting guide.

Configuration tutorial

Overview

This page describes the basics of configuring hMailServer. It does not include information on how to set up virus scanners or spam protection. If you are unsure about how hMailServer works, you should read this page before configuring the server.

Connecting to hMailServer

  1. From the Start menu, select hMailServer Administrator
    Now the hMailServer Administrator - Connect dialog is opened. This dialog allows you to connect to different hMailServer services.
  2. Double-click on the "localhost" host name to connect to the hMailServer instance running on localhost.
  3. In the password dialog, specify the password you specified during the installation of hMailServer - the main hMailServer administration password, and then click OK
  4. Now hMailServer Administrator is started.

Domains & Accounts

Every hMailServer domain should be connected to an internet domain. Say that you're the owner of the domainsomething.com, then you should add something.com as a domain in hMailAdmin:
  1. Start hMailAdmin.
  2. Click Add domain.
  3. Enter something.com as domain name.
  4. Click Save
The next step is to add accounts to your server. The normal setup is to have one account per email address you want to be able to send and receive email from. If you want the addresses webmaster@something.com and info@something.com, simply add this to hMailAdmin:
  1. Start hMailAdmin
  2. Expand the Domains node in the tree to the left
  3. Click on the domain something.com
  4. Click Add account
  5. Enter webmaster as the account address, set the password and click Save
  6. Click on the domain something.com in the tree to the left
  7. Click Add account
  8. Enter info as the account address, set the password and click Save

Specifying public host name

For an email server to work properly, it needs to know its public name on the Internet. This is normally something likemail.something.com. Since there is no good way for software to automatically detect the public host name of the computer where it is running, you need to tell hMailServer what public hostname to use. While it's possible to run hMailServer without telling it its public hostname, some email servers will reject email from you if you don't specify it.
  1. Start hMailAdmin
  2. In the tree to the left, go to Settings -> Protocols -> SMTP
  3. To the right, the SMTP settings are now shown. Click on the Delivery of e-mail tab.
  4. Under host name, enter the public hostname of the computer where hMailServer is running.
  5. Save the change

Specifying SMTP relayer

Some internet service providers (the people that offer you the internet connection) block outgoing traffic on port 25. Since outgoing traffic on port 25 is required for email to work properly, you either need to convince your ISP to open up port 25 for you (if it's not open), or you need to configure hMailServer to forward all email through your ISP's email server.
To determine whether port 25 is blocked, try typing telnet mail.hmailserver.com 25 on your command line. If you can connect, port 25 is not blocked; if you can't, port 25 is blocked.
If you configure your ISP's email server as SMTP relayer, hMailServer will deliver all outgoing email to your ISP's email server, which in turn will deliver it to the correct destination. Since it's almost always possible to send email through your ISP's email server, this is a workaround if port 25 is blocked.
  1. Start hMailAdmin
  2. In the tree to the left, go to Settings -> Protocols -> SMTP
  3. To the right, the SMTP settings are now shown. Click on the Delivery of e-mail tab.
  4. In the SMTP Relayer field, enter the host name of your ISP's email server, along with your credentials on that server in case it demands authentication.
  5. Save your changes
Please note that you should never specify localhost127.0.0.1, or your own hostname as the SMTP Relayer, since that would mean that hMailServer would try to forward messages to itself. That would result in an infinite loop. Also, you should leave this field empty if your ISP is not blocking port 25.

Configuring IP ranges

IP ranges are used in hMailServer to specify who should be allowed to send email through your server. For example, you can use the IP ranges to configure hMailServer such that only computers in your local network are allowed to use the server to send email. By default, hMailServer comes with 2 different IP ranges. These default IP ranges should be sufficient for almost all users. Unless you're using old email clients with a lack of features, you should never have to modify these. Do not modify them unless you are absolutely sure what you want to achieve using IP ranges, and how to achieve it.

Troubleshooting

In most cases where users report problems with hMailServer installation and configuration, the problem is not in the hMailServer set-up but with network settings, firewalls, DNS configuration and other external software. This tutorial covers only hMailServer set-up so it is strongly recommended that you read the troubleshooting section in case you run into problem.