Kerio Mailserver 6: Step-By-Step
Kerio Mailserver 6: Step-By-Step
Step-by-Step
Kerio Technologies
Contents
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.1
Before you start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.1
Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.2
Mac OS X . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.3
Linux . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.4
Configuration Wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Server configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.1
Starting Kerio MailServer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.2
Starting the Kerio Administration Console . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.3
Setting domain and user accounts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.4
Setting connection to the Internet and to the SMTP server . . . . . . . . . . . . . . . . . 11
3.5
Antispam control of the SMTP server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.6
Antivirus control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.7
Email backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Legal Notices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
7
7
7
8
8
14
14
14
16
Chapter 1
Introduction
1.
Install Kerio MailServer on a separate server (no other services will be run on it) and run it
in a local firewall-protected network.
2.
Kerio MailServer will be connected to the Internet via a leased line. Email will be received
and sent vie SMTP. For this reason, it is necessary to enable antivirus and antispam control.
3.
Kerio MailServer will be used for a single domain called company.com. The server will be
installed and run in the local network, on a host with IP address 192.168.1.10 and DNS
name mail.company.com.
4.
In the internal user database, there will be created only one local account used for administration of Kerio MailServer. Any other user accounts will be mapped from the Microsoft
Active Directory directory service (the same method can be used for the Apple Open Directory).
4
Name of the Active Directory domain will be the same as the name of the email domain
and the name of the Kerberos realm.
5.
The server will be available both from the local network and from the Internet. For security
reasons, however, only SSL/TLS-secured Internet connections will be allowed.
6.
All undelivered email (messages where the part preceding the @ symbol in the address is
not valid) will be sent to admin@company.com.
7.
Enable the Kerio MailServers dual antivirus control. We will use the integrated McAfee
antivirus (license of Kerio MailServer with McAfee is required) and the external Clam AntiVirus which will be installed on the same computer as Kerio MailServer.
8.
All email will saved and backed-up in a local archiving folder once a week.
9.
Users will access their email via Kerio WebMail, MS Outlook extended with the Kerio Outlook
Connector and with the Kerio Outlook Connector (Offline Edition). MS Entourage will be
used on Mac OS X..
The exemplary configuration can be easily customized. For detailed information on setting of
individual features of Kerio MailServer, refer to Kerio MailServer, Administrators Guide, chapterDeployment Examples. The whole document can be downloaded from the Kerio Technologies website at http://www.kerio.com/kms-manual.
Chapter 1 Introduction
MX
A
10
mail.company.com
215.75.128.33
Firewall configuration
Kerio MailServer is installed in a local network behind a firewall. In addition to the mailservers
configuration, it is also necessary to perform corresponding additional settings of the firewall.
If the MailServer is to be accessible from the Internet, certain ports have to be opened (mapped)
in the firewall. Each mapped port might introduce security problems. Therefore, map ports
only for those services which you want to make available from the Internet.
In the case of our network environment, it is necessary to map port 25 (a default port for the
SMTP service). This setting is required for cases where an MX record for the particular domain
is addressed to the server. Any SMTP server on the Internet can connect to your SMTP server
to send email to one of its domains. For this reason access to the mapped port 25 must not
be restricted to particular IP addresses.
Now, it is necessary to map ports that will be used for connections out of the local network.
Since the security risk is higher here, only SSL/TLS-secured services will be mapped. Settings
are shown in table 1.1.
Service (default port) Outgoing connection Incoming connection
SMTP (25)
allow
allow
SMTPS (465)
allow
allow
POP3 (110)
allow
deny
POP3S (995)
allow
allow
IMAP (143)
allow
deny
IMAPS (993)
allow
allow
NNTP (119)
allow
deny
NNTPS (563)
allow
allow
LDAP (389)
allow
deny
LDAPS (636)
allow
allow
HTTP (80)
allow
deny
HTTPS (443)
allow
allow
Table 1.1
Chapter 2
Installation
Kerio MailServer supports three types of operating systems. You can choose from Windows,
Mac OS X and Linux.
List of versions (or distribution packs) of the operating systems supported by Kerio MailServer
can be found at Kerio Technologies website (http://www.kerio.com/kms).
It is necessary to install a special additional installation package on any operating system (as
for Linux, two packages are in question). All installation packages can be downloaded from
the Kerio Technologies website at http://www.kerio.com/kmsdwn/.
Once a corresponding installation package is downloaded, the installation can be started. Installations differ by operating system:
2.1 Windows
Once the installation package is downloaded, run the installation under a user with administration rights for the operating system.
Standard wizard is used for the installation. Kerio MailServer is installed under the following
directory:
C:\Program Files\Kerio\MailServer
When the installation is completed, the configuration wizard is started (see section 2.4).
2.2 Mac OS X
Once the installation package is downloaded, run the installation under a user with administration rights for the operating system (the installation program requires authentication). The
installation package is opened as a disk in the Finder application and an executable installation
file is offered.
In the standard installation wizard select the Easy Install option to start complete installation
of the product to the /usr/local/kerio/mailserver directory.
When the installation is completed, the configuration wizard is started (see section 2.4).
Chapter 2 Installation
2.3 Linux
Kerio MailServer is distributed in two RPM or DEB packages which include the server and the
administration console.
The installation must be performed by a user with root rights. Kerio MailServer Engine is installed to /opt/kerio/mailserver and the Kerio Administration Console to
/opt/kerio/admin.
To install RPM packages, use this command:
# rpm -i <installation_file_name>
In case of the recent versions of the distributions, problems with package dependencies might
occur. In this case, install package compat-libstdc++
To install DEB packages, use this command:
# dpkg -i <installation_file_name.deb>
It is recommended to read carefully the LINUX-README file immediately upon the installation.
The file can be found in
/opt/kerio/mailserver/doc
On the first page, create an email domain and specify Internet name of the server.
2.
In the next step of the wizard, create an administration account. Keep the Admin as name
and enter password. Memorize the name and password defined in this dialog well since
they will be later used for authentication to theKerio MailServers administration console.
3.
The next dialog of the wizard allows setting of location of the data store. In this directory,
all user accounts and server logs will be stored.
4.
In the last dialog, a summary of the parameters just set is provided. When this dialog is
closed, a notice of the successful completion of the installation is displayed.
Chapter 3
Server configuration
Linux
The Kerio MailServers administration program can be started by the kerioadmin script
stored under the /usr/bin directory (the path to this directory is set by default in the
system).
Mac OS X
To start the administration console, click on the Administration Console icon in Applications Kerio MailServer.
Once the program is started, the administration window of the Kerio Administration Console
and the New connection dialog box appear. Use the dialog box to enter the login data defined
in the configuration wizard (see chapter 2).
On any operating system, click on Connect to open the Kerio MailServers administration window. Upon the first authentication, a product registration dialog is displayed. It is possible to
register either the full product version or the trial version charge-free technical supported
is available for any registered version. This support is available during the whole period of the
products validity, either of the full or of the trial version.
Note
The Save as option can also be used to save the connection.
Besides the connection administration, the Kerio Administration Console window allows also perform language localization settings for the administration program. Localization settings can be changed under Tools Options.
On the domain server, install the Kerio Active Directory Extension which is available for
free at the Kerio Technologies website. This application extends the directory service by
certain Kerio MailServers features.
2.
In the Kerio MailServers administration console, open the Configuration Domains section.
Open the domain created within the installation by clicking on the Edit.
3.
Go to the Directory Service tab and enter domain servers information. Enable mapping by
checking the Map user accounts and groups from a directory service to this domain option.
Select Active Directory as the directory service type. In the Hostname entry, specify DNS
name or IP address of the domain server. Use the Username entry to specify a username
with read and write rights for the Active Directorys LDAP database.
10
Use the Test connection button to test whether all parameters have been set correctly to
allow Kerio MailServer connect to the Active Directorys domain controller.
4.
Switch to the Advanced tab. It is necessary that Kerberos realm is defined in the Kerberos
5 entry on this tab. The upper-case is set automatically for the name.
Once mapping is set, open the Domain Settings User Accounts section. User list will include
all mapped users and one local account for Kerio MailServer administration.
The user groups can be mapped in a similar way as users. Groups are administered in Domain
Settings Groups.
Click on Add.
2.
This opens a dialog where a new alias can be added. In the Alias entry, enter the * symbol.
In the E-mail address textfield specify the address of the mailbox where any undeliverable
email will be sent.
3.
Once the alias is saved, you can test it by the Check address button available in the Aliases
section.
2.
Check option Users from IP address groups and select the Local Clients group which includes all private ranges of IP addresses.
3.
Enable option Users authenticated through SMTP for outgoing mail to allow users connected from the Internet send email.
Note
Authentication against the SMTP server must be set in the email client. Settings of some
popular clients are focused in chapter 4.2).
11
Details on security of the SMTP server can be found in chapter SMTP server of the Kerio
MailServer, Administrators Guide.
Antispam rating can be started and set on the Spam Rating tab. Default settings of this
tab can be kept.
2.
3.
Switch to the SpamAssassin tab and enable option Check every incoming message in Spam
URI Realtime Blocklist (SURBL) database.
4.
On tabs Caller ID and SPF, set control of e-mail policy records of the sender SMTP server
and set the spam score to 2 points. This control allows to filter out messages with fake
sender addresses.
5.
On the Spammer Repellent tab, enable SMTP connection delay. This filter efficiently stops
spam messages at the SMTP level which relieves the server from a remarkable volume of
spam testing.
Antispam filters of the SMTP server are focused in the Kerio MailServer, Administrators Guide,
chapter Antispam control of the SMTP server.
Antivirus
Antivirus check can be enabled under Configuration Content Filter Antivirus:
1.
Check that the Use the integrated McAfee antivirus engine option is running.
2.
3.
Under Configuration Content Filter Antivirus, enable option Use external antivirus
and select Clam AntiVirus in the menu.
12
The backup can be enabled by checking the Enable message store and configuration recovery backup option.
2.
In the Backup scheduling table, set one full backup for Sunday midnight so that the backup
does not burden the server within working hours.
3.
In the Backup directory entry, specify the path to the directory where backups will be
stored. The path must be entered in a way in accordance with convenience of the operating
system where Kerio MailServer is running.
4.
Enter your email address in the Email address field. Kerio MailServer will automatically
generate results of each backup and send it to the address defined.
Email archiving
Email archiving can be set on the Archiving tab:
1.
2.
3.
4.
Set the interval used for creating of new archive folders to one week.
Archiving folders will be displayed in the Kerio MailServers administrator mailbox. They can
be viewed, for example, in the Kerio WebMail interface.
13
Chapter 4
Users will connect to the server via the Kerio WebMail interface or use a supported MS Outlook (on Windows) or MS Entourage (on Mac OS X) clients. The following sections include
instructions on how to connect to Kerio WebMail and how to set email clients optimally.
2.
3.
Login to Kerio WebMail (see section 4.1) and select Integration with Windows in the Settings
menu.
14
4.
5.
Depending on your browser and its settings, the tool gets downloaded and launched automatically or it only gets downloaded and you can run it by double-clicking on the tools
icon.
6.
The script now runs MS Outlook, creates a new profile and preconfigures your Kerio account.
7.
For security reasons, enter only your user mailbox password. Once the password is set,
configuration of MS Outlook is completed.
2.
3.
Create a new email profile in the Start Settings Control Panel Mail menu.
4.
Enter a name for the new profile and in the new account wizard select Add a new email
account.
5.
On page two of the wizard, select Other server types and click on Next.
6.
The next step allows selection of a server type. Select Kerio MailServer.
7.
Now, set the Kerio Outlook Connector on the Kerio MailServer dialogs tabs:
Account on this tab, enter Internet name of the server where Kerio MailServer is
installed and username and password for the mailbox. If the user does not have
an account in the primary domain, it is necessary to use full username including
the domain name: username@domain. Click on Check connection to check whether
it is possible to establish connection to the server under the parameters having
been defined.
Advanced on this tab, it is possible to change ports for SMTP, IMAP and HTTP
services. Ports of non-secured versions of these services are set by default. This
implies that it is not necessary to change these ports in case that an account is
being set within the local network. If setting an account of the local network,
enable the Secured Connection (SSL) option.
15
A particular POP3 or IMAP account is set withing creation of the profile in MS Outlook:
2.
In the new account wizard, opened automatically upon setting a name of the new profile,
select POP3 or IMAP.
3.
Set the E-mail and Internet Settings section carefully. In the Name entry, specify first
and second name of the user, and enter the users address in the E-mail Address field.
Specify username in the Username entry. If the user does not have an account in
the primary domain, it is necessary to use full username including the domain name:
username@company.com. Specify Password that will be used for connection to Kerio
MailServer. Finally, enter the DNS name or IP address of the server where Kerio MailServer
is running in the Incoming mail server and Outgoing mail server (SMTP) entries.
4.
If the user connects from the Internet, it is necessary to set authentication in accordance
with the configuration of the SMTP server (see section 3.4). Click on Advanced settings.
This opens a dialog including several tabs where other parameters of the account can be
set. Switch to the Outgoing mail server tab, enable the My outgoing server (SMTP) requires
authentication option and select Use the same settings as my incoming mail server.
5.
2.
Login to Kerio WebMail (see section 4.1) and select Integration with MAC OS X in the Settings menu.
3.
4.
5.
The installation requires username and password for an account with administration
rights for the computer.
16
6.
Once installation is completed, an MS Entourage dialog is opened where you are supposed
to authenticate with your mailbox password. Enter the password and confirm the dialog.
7.
17
Appendix A
Legal Notices
R
R
R
R
R
Microsoft
, Windows
, Windows NT
, Windows Vista
, Internet Explorer
, Active DiR
R
R
R
rectory , Outlook , ActiveSync
and Windows Mobile
are registered trademarks of Microsoft Corporation.
R
R
R
R
Apple
, Mac OS
, Tiger TM, Panther
and Leopard
are registered trademarks or trademarks of Apple Computer, Inc.
R
Linux
is registered trademark of Linus Torvalds.
18
19