How to lift the e-mail server

How to lift the e-mail server

Can seem to the beginning user of the PC and the Internet that e-mail is the quite simple system consisting of pair of modules which accept and send messages, however this opinion is wrong. Modern e-mail — a complex system which creation, setup and stable work requires not one hour of hard work and happy a large amount of theoretical knowledge.

It is required to you

  • - Postfix;
  • - Saslauthd;
  • - Cyrus.

Instruction

1. For a start install the Debian operating system based on Linux. Install also necessary software packages (postfix, cyrus, sasl). During the very first setup of a postfix package define a configuration for Internet Site. After that enter the name of your future e-mail server or leave everything by default. Configure service of authorization saslauthd for the purpose of use of a DB of sasldb2, having edited the file in directory/etc/default/saslauthd. After setup start service of authorization, using the console:/etc/init.d/saslauthd start.

2. As the saslauthd package is intended for authorization of users of the e-mail server, there is a need to move its "socket" to the main directory of server/var/spool/postfix/. The easiest way to make it consists in implementation in the necessary folder of a directory with already ready socket of a saslauthd package. After that restart the postfix-server check files regarding errors. Use the telnet utility for connection to the e-mail server. Then enter into the console the following command to force saslauthd and postfix packages to work jointly: adduser postfix sasl.

3. Install a Cyrus package which main objective — receiving mail from a postfix package of the subsequent its sorting. Edit the file in a directory/etc/imapd.conf. Also make sure that Cyrus will work with postfix jointly for what make them available each other. Give the chance of cyrus to obtain information at postfix and edit the file/etc/postfix/main.cf/: mailbox_transport = lmtp: unix: / var/run/cyrus/socket/lmtp. Also by means of the console do not forget to add the user to a DB: saslpasswd2 - with cyrus. Enter the password after necessary request and restart packages of the e-mail server.

Author: «MirrorInfo» Dream Team


Print