How To Raise A Mail Server

Table of contents:

How To Raise A Mail Server
How To Raise A Mail Server

Video: How To Raise A Mail Server

Video: How To Raise A Mail Server
Video: How to setup a mail server 2024, March
Anonim

It may seem to a novice user of a PC and the Internet that e-mail is a fairly simple system, consisting of a couple of modules that receive and send messages, but this opinion is erroneous. Modern e-mail is a complex system, which will require more than one hour of hard work and a fairly large amount of theoretical knowledge to create, configure and stable work.

How to raise a mail server
How to raise a mail server

Necessary

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

Instructions

Step 1

First, install the Linux-based Debian operating system. Also install the required software packages (postfix, cyrus, sasl). During the very first setup of the postfix package, define the configuration for the Internet Site. After that, specify the name of your future mail server, or leave everything as default. Configure the saslauthd authorization service to use the sasldb2 database by editing the file in the / etc / default / saslauthd directory. After configuration, start the authorization service using the console: /etc/init.d/saslauthd start.

Step 2

Since the saslauthd package is intended for authorizing mail server users, it becomes necessary to move its "socket" to the main server directory / var / spool / postfix /. The easiest way to do this is to inject the directory with the ready-made socket of the saslauthd package into the required folder. After that restart the postfix server and check the files for errors. Use the telnet utility to connect to the mail server. Then enter the following command in the console to make the saslauthd and postfix packages work together: adduser postfix sasl.

Step 3

Install the Cyrus package, the main purpose of which is to receive mail from the postfix package and then sort it. Edit the file in the /etc/imapd.conf directory. Also make sure that Cyrus and postfix will work together by making them available to each other. Make it possible for cyrus to receive information from postfix and edit the file /etc/postfix/main.cf/:mailbox_transport = lmtp: unix: / var / run / cyrus / socket / lmtp. Also, do not forget to add the user to the database via the console: saslpasswd2 -c cyrus Enter the password after the required prompt and restart the mail server packages.

Recommended: