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]
>
>
>