DNS sobre Linux

Intranet - Installing a mail server

 

Introduction to installation

The most commonly used e-mail server in Linux is Sendmail; however, as it is very hard to configure, we will use Qmail, an alternative e-mail server, instead.

Qmail is made up of a group of programs that work with different UID/GIDs, in order to minimise intrusions.

Packages needed for installation

In order to install Qmail, the following packages are required:

  • functions-2-1.i386.rpm
  • daemontools-0.53-16-i386.rpm
  • ucspi-tcp-0.84-1.i386.rpm
  • qmail-1.03-14ucspi.i386.rpm
  • checkpassword-0.81-2.i386.rpm

They may be downloaded from the website RPMFind.net.

Installing Qmail

To install Qmail, you must first install all these RPM packages:

rpm -ivh functions-2-1.i386.rpm
rpm -ivh daemontools-0.53-16-i386.rpm
rpm -ivh ucspi-tcp-0.84-1.i386.rpm
rpm -ivh qmail-1.03-14ucspi.i386.rpm
rpm -ivh checkpassword-0.81-2.i386.rpm
Once these packages are installed, configuration files are created, as well as two user groups, seven new users, and the following directories:
  • /var/qmail: main directory
  • \_ alias/: for storing "special" accounts (like root)
  • \_ bin/: Qmail distribution binaires
  • \_ control/: configuration files
  • \_ defaultdelivery/: configuration files for mailbox formatting
  • \_ man/: pages in the manual
  • \_ doc/: documentation
  • \_ queue/: the queue file
  • \_ users/: address map (super-file of aliases)
The Qmail documentation is found in the directory /var/qmail/doc. To be able to use the pages in the Qmail manual, you have to manually add the path to them in the MANPATH variables using the following syntax:
export MANPATH=$MANPATH:/var/qmail/man

Redirecting the superuser's mail

With Qmail, for security reasons, the superuser (or root) cannot receive mail directly. His/her email must therefore be redirected to a special account, by editing the file .qmail-root (all files whose name begins with a full stop are hidden files) located in the directory /var/qmail/alias:

cd /var/qmail/alias
cat > .qmail-root
your_user_account
^D
It is also possible to redirect mail for other users.

Choosing the mailbox format

With Qmail, you can choose a mailbox format, meaning the way that users' messages are stored. The format "Maildir" is used for storing users' messages directly into their work directory (hence the reason for creating Maildir in the skeleton).

Thus, in order to use this mailbox format, you must enter the following commands:

cd /var/defaultdelivery
cp -f mdir rc

Configuring Qmail

In order to be able to use Qmail, it still has to be configured, particularly the control files found in the directory /var/qmail/control :

  • me
    contains the name of the email server
  • defaultdomain
    contains the default domain name
  • locals
    contains all names/aliases on the mail server
  • rcpthosts
    contains the name of the domains authorised to use the mail server to send email
Here are the commands to enter to configure these files:
  • cd /var/qmail/control
  • cat > me
    tuxserver
    ^D
  • cat > me
    tuxserver
    ^D
  • cat > defaultdomain
    tuxdomain
    ^D
  • cat > locals
    tuxserver
    tuxserver.tuxdomain
    smtp
    smtp.tuxdomain
    ^D
  • cat > rcpthosts
    tuxdomain
    .tuxdomain
    ^D
The basic configuration of the server is finished, and now the mail server can be launched.

Launching services

The following commands are used to manually launch the services required by the email server:

/etc/rc.d/init.d/qmail.init start 
/etc/rc.d/init.d/qmail-smtpd.init start
/etc/rc.d/init.d/qmail-pop3d.init start
Here are the commands for automatically starting (and ending) these services each time the system reboots:
chkconfig --level 345 qmail on 
chkconfig --level 345 qmail-smtpd on
chkconfig --level 345 qmail-pop3d on
chkconfig --level 0126 qmail off
hkconfig --level 0126 qmail-smtpd off
chkconfig --level 0126 qmail-pop3d off

Michel Maudet

Última actualización el jueves, 16 de octubre de 2008, 15:43:14 .Este documento intitulado « Intranet - Installing a mail server » de Kioskea (es.kioskea.net) esta puesto a diposición bajo la licencia Creative Commons. Puede copiar, modificar bajo las condiciones puestas por la licencia, siempre que esta nota sea visible.

Mejores respuestas para « Intranet Installing a mail server » en :
Instalar un servidor FTP bajo Windows Ver Método rápido Configurar el servidor FTP Método más conveniente Enlaces de interés Accerder al servidor FTP desde cualquier parte del mundo Notas Método rápido Si necesita instalar un servidor FTP urgentemente, entonces siga estos...
Instalar un servidor FTP bajo Ubuntu Ver Índice: 1. Instalar el servidor FTP 2. Configurar el servidor FTP 2.1 Denegar los accesos FTP anónimos 2.2 Permitir a los usuarios locales conectarse al servidor FTP 2.3 Permitir a los usuario subir ficheros 2.3 Elegir la interfaz 3....
Intranet - Instalación de un DNS Ver Paquetes necesarios para la instalación Un DNS (servidor de nombre de dominio) es un servidor que vincula nombres con las direcciones IP de un equipo dentro de una red. Para configurar dicho servidor, es necesario instalar los software bind y named....
Instalar un servidor proxy HTTP (Squid) VerIndice: 1. Instalar el proxy 2. Configurar el proxy 2.1 Nombrar el proxy 2.2 Elegir el puerto 2.3 Elegir la interfaz 2.4 Definir los derechos de acceso 2.5 Autorizar al grupo 2.6 Autorizar los puertos no estándar 3. Iniciar el...
Instalar un servidor ssh bajo Ubuntu VerUn servidor ssh nos permite acceder de manera remota a nuestro equipo. De este modo accederemos a la consola remota (similar a telnet, pero mucho más seguro), y podremos transferir archivos (similar a FTP, pero mucho más...
Instalar NX Server Ver¿Qué es NX? NX es un programa que nos permite acceder a nuestro PC de forma remota, al igual que si utilizáramos VNC o Windows Remote Desktop. Pero NX tiene varias ventajas. ¿Por qué NX? NX es gratuito Es seguro (utiliza ssh) No necesita que...
Descargar ArgoSoft Mail Server VerCuando necesitamos utilizar nuestra PC como servidor de correo electrónico, el cual no facilitará en la gestión de los mensajes. Este programa soporta los protocolos SMTP, POP3 y Finger. Puedes utilizar Outlook, Thunderbird, Eudora, etc. como...
Descargar Windows XP Service Pack 3 (SP3) VerWindows XP Service Pack 3 (SP3) es una actualización libre para Windows Xp SP3 incluye todas las actualizaciones previamente lanzadas de Windows Xp, incluyendo actualizaciones de la seguridad, hotfixes, etc. Esta actualización también incluye una...
Intranet - Instalación de la distribución Linux Mandrake VerIntroducción a la instalación El servidor puede funcionar con cualquier distribución Linux, pero elegimos utilizar la distribución Mandrake ya que posee la ventaja de ser fácil de instalar e incluye una gran cantidad de aplicaciones ya instaladas. Se...
Servidores proxy y servidores de proxy inversos VerServidores proxy Un servidor proxy es en principio un equipo que actúa como intermediario entre los equipos de una red de área local (a veces mediante protocolos, con excepción del protocolo TCP/IP) e Internet. Generalmente el servidor proxy se...
Instalación de un servidor VPN en Windows XP VerVentajas de una VPN La configuración de una red privada virtual (VPN) garantiza que los equipos remotos se conecten a través de una conexión confiable (Internet), como si estuvieran en la misma red de área local. Este proceso es utilizado por una...