Ver Mensaje Individual
  #7 (permalink)  
Antiguo 02/10/2009, 07:35
Wudrus
 
Fecha de Ingreso: septiembre-2007
Mensajes: 44
Antigüedad: 16 años, 7 meses
Puntos: 2
No consigo activar SASL en Postfix

Buenas gente estoy peleándome con Postfix, quiero habilitar SASL en Ubuntu Server 8.10 pero no consigo que este funcione, me explico. Estoy mirando varias guías pero nada, al comprobar haciendo telnet a localhost al puerto 25 obtengo lo siguiente.


Código:
telnet localhost 25
Trying 172.16....
Connected to localhost.
Escape character is '^]'.
220 localhost ESMTP Postfix (Ubuntu)
ehlo localhost
250-LOCALHOST
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
Como podéis ver el soporte TLS está activado, pero no así SASL.

Pego la configuración de main.cf:


Código:
# TLS parameters
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.pem
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.pem
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_CAfile = /etc/postfix/ssl/smtpd.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
smtpd_tls_auth_only = yes
Código:
# Aquí lo referente a SASL

smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
broken_sasl_auth_clients = yes
smtp_sasl_password_maps = hash:/etc/sasldb2
smtpd_sasl_local_domain =
He consultado en varios manuales que debe de introducirse en /etc/postfix/sasl/smtpd.conf unas lineas. Dicho archivo no estaba creado así que lo cree yo y contiene lo siguiente.

Código:
pwcheck_method: saslauthd
mech_list: plain login
Por otro lado tengo configurado /etc/default/saslauthd de la siguiente forma:


Código:
# Should saslauthd run automatically on startup? (default: no)
START=yes
Código:
# Agrego esta linea ya que postfix trabaja en chroot
PWDIR="/var/spool/postfix/var/run/saslauthd"
PARAMS="-m ${PWDIR}"
PIDFILE="${PWDIR}/saslauthd.pid"
Así que no se que más me hace falta hacer o bien he hecho algo mal, estoy atascado. ¿Alguien me echa una mano?