Hola he modificado dovecot.conf agregando lo que dice la documentación anterior pero, al iniciar el servicio me dio un error ya que había una configuración similar, así que he modificado para dejarlo tal que así:
Código:
# It's possible to export the authentication interface to other programs:
socket listen {
# master {
# Master socket provides access to userdb information. It's typically
# used to give Dovecot's local delivery agent access to userdb so it
# can find mailbox locations.
# path = /var/run/dovecot/auth-master
# mode = 0600
# Default user/group is the one who started dovecot-auth (root)
# user =
# group =
#}
client {
# The client socket is generally safe to export to everyone. Typical use
# is to export it to your SMTP server so it can do SMTP AUTH lookups
# using it.
# path = /var/run/dovecot/auth-client
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}
Luego he agregado las lineas en mail.cf:
Código:
# #################### ACTIVANDO SASL #########################
smtpd_sasl_application_name = smtpd
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $mydomain
smtpd_sasl_security_options = noanonymous
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
smtpd_client_restrictions = permit_sasl_authenticated, permit_mynetworks, reject
broken_sasl_auth_clients = yes
inet_interfaces = all
# smtp_sasl_password_maps = hash:/etc/sasldb2
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
Compruebo que está corriendo.
Código:
root 18880 0.0 0.9 9404 2384 ? S 22:31 0:00 dovecot-auth
dovecot 18884 0.0 0.6 3428 1552 ? S 22:31 0:00 pop3-login
dovecot 18885 0.0 0.6 3428 1552 ? S 22:31 0:00 pop3-login
dovecot 18886 0.0 0.6 3428 1552 ? S 22:31 0:00 pop3-login
dovecot 18887 0.0 0.6 3436 1572 ? S 22:31 0:00 imap-login
dovecot 18888 0.0 0.6 3436 1568 ? S 22:31 0:00 imap-login
dovecot 18889 0.0 0.6 3436 1568 ? S 22:31 0:00 imap-login
Recalco la linea que hace referente a la autenticación que imagino que está funcionando, hacemos un telnet vemos que está activado:
Código:
ehlo localhost
250-correo.terabitia.local
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN
250-AUTH=PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
Ahora intento enviar un correo desde telnet pero me encuentro que me deja enviar siendo un usuario anónimo y no me debería dejar puesto que lo he especificado en main.cf
Con lo que me queda duda que el servidor sea seguro contra los spammer.
Saludos.