[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Postfix-BR] Postfix + SASL2



Descobri o que é:

Dentro do arquivo /etc/pam.d/smtp
a configuração deve ser esta:

auth required /lib/security/pam_unix.so service=system-auth
account required /lib/security/pam_unix.so service=system-auth
password required /lib/security/pam_unix.so service=system-auth

Agora, só preciso resolver o problema das permissões
para /var/run/saslauthd

[]'s

Em Sex, 2005-02-11 às 05:38 -0200, Rodrigo escreveu:
> starta o saslauthd praver se funciona
> ----- Original Message ----- 
> From: "Christian Reichel" <christian.reichel@aberium.com>
> To: "Lista Debian-User-Portuguese" <debian-user-portuguese@lists.debian.org>
> Cc: <postfix-br@listas.softwarelivre.org>
> Sent: Friday, February 11, 2005 5:36 PM
> Subject: [Postfix-BR] Postfix + SASL2
> 
> 
> > Olá Pessoas da lista.
> > Alguém já logrou sucesso em configurar a solução:
> >
> > Postfix + SASL2 (autenticando PAM) ?
> >
> > Eu instalei os pacotes corretamente:
> >
> > ii  postfix     2.1.5-5 A high-performance mail transport agent
> > ii  postfix-tls 2.1.5-5 TLS and SASL support for Postfix
> > ii  libsasl2    2.1.19-1.5 Authentication abstraction library
> > ii  libsasl2-modul 2.1.19-1.5 Pluggable Authentication Modules for SASL
> > ii  sasl2-bin  2.1.19-1.5 Programs for manipulating the SASL users dat
> >
> > Já configurei o o postfix, estou utilizando a configuração dos arquivos
> > assim:
> >
> > ---
> >
> > /etc/postfix/sasl/smtpd.conf
> > saslauthd_version: 2
> > pwcheck_method: saslauthd
> > mech_list: plain login
> >
> > ------------------------------------
> >
> > /etc/postfix/main.cf
> > smtpd_sasl_auth_enable = yes
> > smtpd_sasl_local_domain =
> > smtpd_sasl_security_options = noanonymous
> > broken_sasl_auth_clients = yes
> >
> > smtpd_recipient_restrictions = permit_sasl_authenticated,
> > reject_unauth_destination, check_relay_domains, permit
> >
> > ------------------------------------
> >
> > /etc/pam.d/smtp
> > #%PAM-1.0
> > auth required /lib/security/pam_stack.so service=system-auth
> > account required /lib/security/pam_stack.so service=system-auth
> > password required /lib/security/pam_stack.so service=system-auth
> >
> > ------------------------------------
> >
> > O smtpd não está com chroot.
> >
> > Quando tento enviar um e-mail, fazendo a autenticação, o mail.log diz:
> >
> > Feb 11 15:25:27 maggie postfix/smtpd[32716]: warning: SASL
> > authentication failure: cannot connect to saslauthd server: Permission
> > denied
> > Feb 11 15:25:27 maggie postfix/smtpd[32716]: warning: SASL
> > authentication failure: Password verification failed
> >
> > Descobri que o que está com permissão incorreta é o diretório:
> >
> > /var/run/saslauthd
> > drwx--x---   2 root sasl 136 Feb 11 15:25 .
> > drwxr-xr-x  10 root root 472 Feb 11 14:10 ..
> > srwxrwxrwx   1 root root   0 Feb 11 15:25 mux
> > -rw-------   1 root root   0 Feb 11 15:25 mux.accept
> > -rw-------   1 root root   6 Feb 11 15:25 saslauthd.pid
> >
> > Eu inicio os serviços, dou um chmod -R 777 /var/run/saslauthd
> > (eu sei que não é esta as permissão correta, mas é só para fazer
> > funcionar).
> >
> > Quando essa alteração é feita, aparece este erro:
> > Feb 11 15:25:27 maggie postfix/smtpd[32716]: warning: SASL
> > authentication failure: Password verification failed
> > Feb 11 15:25:27 maggie postfix/smtpd[32716]: warning:
> > sp_200_200_200_200.datacenter1.com.br[200.200.200.200]: SASL PLAIN
> > authentication failed
> >
> > Alguém pode me apontar alguma falha, ou dica para fazer funcionar.
> >
> > Obrigado.
> >
> > Christian Reichel
> >
> >
> >
> > _______________________________________________
> > Postfix-BR mailing list
> > Postfix-BR@listas.softwarelivre.org
> > http://listas.softwarelivre.org/mailman/listinfo/postfix-br
> >
> 
> _______________________________________________
> Postfix-BR mailing list
> Postfix-BR@listas.softwarelivre.org
> http://listas.softwarelivre.org/mailman/listinfo/postfix-br



Reply to: