AGENTE MUA
Instalar
el agente MUA: apt-get install mailutils o mailx
Enviar
un mensaje: echo “mensaje”
| mail -s “Asunto”
egibide@localhost
SERVIDOR
MTA
Instalar
el servidor postfix: apt-get install postfix o desde Sistema >
Administración > Gestor de paquetes Synaptic
AGENTE MDA
(POP3)
- Instalar el servidor POP3: apt-get
install dovecot-pop3d
- Editar el archivo: nano
/etc/dovecot/dovecot.conf e introducir la siguiente línea:
mail_location =
mbox:~/mail:INBOX=/var/mail/%u
- Reiniciar el servidor POP3:
/etc/init.d/dovecot restart
- telnet localhost 110
- Introducir usuario: USER pepe (crear
previamente el usuario)
- Introducir
contraseña: PASS Jm12345
- Listar los
mensajes: LIST
- Ver el contenido
de cada mensaje: RETR 1 (crear previamente un mensaje)
- Borrar un
mensaje: DELE 1
- Cerrar la conexión: QUIT
SMTP
CON TELNET
telnet localhost 25
HELO localhost
MAIL FROM:dinux@localhost
RCPT TO:correo_del_profesor@gmail.com
RCPT
TO:correo_de_un_alumno@gmail.com
DATA
cuerpo del mensaje que tiene que acabar con un
.
SUBJECT: asunto del correo
QUIT