Hem creat el servei de dovecot a la mateixa maquina que el postfix
Primer hem instal·lat el paquet de dovecot, i activat el servei
sudo dnf install dovecot telnet
sudo systemctl enable --now dovecot
Hem entrat als arxiu de configuració i hem des-comentat i canviat les línies següents:
- /etc/dovecot/dovecot.conf:
- protocols = imap pop3
- /etc/dovecot/conf.d/10-mail.conf:
- mail_location = maildir:~/Maildir
- /etc/dovecot/conf.d/10-auth.conf
- disable_plaintext_auth = no
- auth_mechanisms = plain login
hem activat el port del firewall i hem reinciciat els serveis
sudo firewall-cmd --permanent --add-service=pop3
sudo firewall-cmd --permanent --add-service=imap
sudo firewall-cmd --reload
sudo systemctl restart dovecot Ara per comprobar que funciona correctament usem telnet:
[vagrant@slave ~]$ telnet localhost 110
Trying ::1...
Connected to localhost.
Escape character is '^]'.
+OK Dovecot ready.
USER vagrant
+OK
PASS vagrant
+OK Logged in.
LIST
+OK 1 messages:
1 437
.
RETR 1
+OK 437 octets
Return-Path: <admin@illa1.net>
X-Original-To: vagrant@illa1.net
Delivered-To: vagrant@illa1.net
Received: from localhost (localhost [127.0.0.1])
by mail.illa1.net (Postfix) with SMTP id 986341002741
for <vagrant@illa1.net>; Mon, 12 Jan 2026 11:47:59 +0100 (CET)
Subject: Prueba correu
Message-Id: <20260112104821.986341002741@mail.illa1.net>
Date: Mon, 12 Jan 2026 11:47:59 +0100 (CET)
From: admin@illa1.net
Proba manual.
.