Un documento buenísimo, pero en postfix, me va perfecto y es muy fácil y rápido:
SMTP Auth/SMTP over SSL - Debian Woody 3.0 1.. From a fresh Debian Woody install we will apt-get the appropriate packages -- apt-get install postfix-tls libsasl-dev libsasl-digestmd5-plain libsasl-gssapi-mit libsasl-modules-plain libsasl7 sasl-bin 2.. Debian will ask some basic questions setting postfix on your computer. Choose 'internet site'. 3.. Edit /etc/postfix/main.cf and add to the bottom: smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous, noplaintext smtpd_sasl_local_domain = $myhostname smtpd_recipient_restrictions = permit_sasl_authenticated Note: The only email we will send are from users that have authenticated against the sasl database. If you can add permit_mynetworks to smtpd_recipient_restrictions to still allow mail to be sent from a local network 192.168.254.0/24, for example. 4.. There are many ways to authenticate over SMTP. We will use a separate password database for SMTP AUTH. Create a /etc/postfix/sasl/smtpd.conf file with the following line: pwcheck_method: sasldb 5.. Now, we will create a user. saslpasswd -c -u `postconf -h myhostname` user will then prompt for a password for user. 6.. Since Debian keeps Postfix in a chroot, we have to copy /etc/sasldb over to /var/spool/postfix/etc/sasldb owned by root. Postfix needs read permission so we will chgrp postfix sasldb and chmod 640 the file. (Is there a better way?) > Zapo wrote: > > > > Hola a todos. > > > > Tengo instalado como servidor de correo Sendmail. > > Lo que necesito es que los usuairos SMTP se validen con login y pass > > ¿Alguna idea de como empezar? > > ¿Paquete a instalar? > > ¿HowTo a leer? > > > > Gracias y saludos. > > > > -- > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > Hola, > > En debian es sencillo hacerlo. Tienes que ejecutar el script > /usr/share/sendmail/update_auth. Si tienes los paquetes que se > necesitan, se instala sin ningún problema (no dice nada). En caso > contrario, te saldrá el mensaje. > > "To install sasl, get sasl-bin, libsasl-modules-plain, ..." > > Simplemente hay que hacer caso a este mensaje e instalar los paquetes > solicitados: > > apt-get install sasl-bin libsasl-modules-plain > > Cuando estén instalados, vuelves a ejecutar el script y ya está. Luego > rearranca el sendmail. > > Para comprobar si ya funciona, ejecuta: telnet 0 25, el servidor de > correo te contestará con: "220 ... ", luego escribe "ehlo localhost", el > servidor debería responderte con varias líneas que comienzan por 250, en > una de ellas deberías ver "250-AUTH ...". Si esa línea existe, ya está > todo hecho. Si la línea no existe, hay algún problema que debes > solucionar. Comprueba el syslog (o como lo tengas configurado) de tal > manera que no tengas ningún mensaje de "safesasl -> Worl writable > directory". Mira los permisos de /etc/mail y de /etc y comprueba que > sólo haya permiso de escritura para el propietario. > > Por defecto, no hay ningún usuario que pueda autenticarse. Tienes que > añadir los usuarios con el comando: saslpasswd (del paquete sasl-bin). > > > Un saludo, > -- > Miguel Angel García Blázquez > E-mail: [EMAIL PROTECTED] > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > >