Problems with Postfix and smtp auth
Kevin Jones
kevin at intheleadllc.com
Thu Jul 12 12:15:32 UTC 2007
Sergio Belkin wrote:
> --- El Mar 10 Jul 2007, Kevin Jones encontró un teclado y tipeó lo siguiente:
>
>> KJ: Sergio Belkin wrote:
>> KJ: > In Ubuntu 7.04 I have problems with Postfix+Dovecot+Sasl
>> KJ: >
>> KJ: >
>> KJ: > I got these messages from /var/log/mail.log
>> KJ: >
>> KJ: >
>> KJ: > Jul 9 21:10:04 ubuntu postfix/smtpd[15991]: warning: SASL: Connect
>> to KJ: > smtpd failed: No such file or directory
>> KJ: > Jul 9 21:10:04 ubuntu postfix/smtpd[15991]: fatal: no SASL
>> KJ: > authentication mechanisms
>> KJ: > Jul 9 21:10:05 ubuntu postfix/master[15951]: warning: process
>> KJ: > /usr/lib/postfix/smtpd pid 15991 exit status 1
>> KJ: > Jul 9 21:10:05 ubuntu postfix/master[15951]: warning:
>> KJ: > /usr/lib/postfix/smtpd: bad command startup -- throttling
>> KJ: > Jul 9 21:27:34 ubuntu postfix/smtpd[16363]: warning: SASL: Connect
>> to KJ: > smtpd failed: No such file or directory
>> KJ: > Jul 9 21:27:34 ubuntu postfix/smtpd[16363]: fatal: no SASL
>> KJ: > authentication mechanisms
>> KJ: > Jul 9 21:27:35 ubuntu postfix/master[15951]: warning: process
>> KJ: > /usr/lib/postfix/smtpd pid 16363 exit status 1
>> KJ: > Jul 9 21:27:35 ubuntu postfix/master[15951]: warning:
>> KJ: > /usr/lib/postfix/smtpd: bad command startup -- throttling
>> KJ: > Jul 9 21:33:34 ubuntu postfix/smtpd[16486]: warning: SASL: Connect
>> to KJ: > smtpd failed: No such file or directory
>> KJ: > Jul 9 21:33:34 ubuntu postfix/smtpd[16486]: fatal: no SASL
>> KJ: > authentication mechanisms
>> KJ: > Jul 9 21:33:36 ubuntu postfix/master[15951]: warning: process
>> KJ: > /usr/lib/postfix/smtpd pid 16486 exit status 1
>> KJ: > Jul 9 21:33:36 ubuntu postfix/master[15951]: warning:
>> KJ: > /usr/lib/postfix/smtpd: bad command startup -- throttling
>> KJ: > Jul 9 21:50:25 ubuntu postfix/smtpd[16628]: warning: SASL: Connect
>> to KJ: > smtpd failed: No such file or directory
>> KJ: > Jul 9 21:50:27 ubuntu postfix/smtpd[16628]: fatal: no SASL
>> KJ: > authentication mechanisms
>> KJ: > Jul 9 21:50:27 ubuntu postfix/master[15951]: warning: process
>> KJ: > /usr/lib/postfix/smtpd pid 16628 exit status 1
>> KJ: > Jul 9 21:50:27 ubuntu postfix/master[15951]: warning:
>> KJ: > /usr/lib/postfix/smtpd: bad command startup -- throttling
>> KJ: >
>> KJ: >
>> KJ: > This is my /etc/default/saslauthd
>> KJ: > START=yes
>> KJ: >
>> KJ: > PARAMS="-m /var/spool/postfix/var/run/saslauthd -r"
>> KJ: >
>> KJ: > MECHANISMS="shadow"
>> KJ: >
>> KJ: >
>> KJ: >
>> KJ: > My /etc/postfix/sasl/smtpd.conf:
>> KJ: > saslauthd_path: /var/run/saslauthd/mux
>> KJ: > pwcheck_method: saslauthd
>> KJ: > mech_list: plain login
>> KJ: >
>> KJ: >
>> KJ: > This is my main.cf (I included only smtpdauth relative to be
>> shorther) KJ: > #Seccion agregada por Sergio Belkin para lograr
>> autenticacion mediante SASL KJ: > #Habilito autenticacion del servidor
>> mediante SASL
>> KJ: > smtpd_sasl_auth_enable = yes
>> KJ: > # Permite el relay desde redes confiables y aquellos usuarios
>> autenticados KJ: > smtpd_recipient_restrictions =
>> permit_sasl_authenticated,
>> KJ: > permit_mynetworks, reject_unauth_destination
>> KJ: > # Para recibir el nombre del usuario autenticado a partir del
>> encabezado KJ: > smtpd_sasl_authenticated_header = yes
>> KJ: > # Para evitar problemas con clientes viejos de Microsoft
>> KJ: > broken_sasl_auth_clients = yes
>> KJ: > # Le digo que voy a usar SASL con Dovecot
>> KJ: > smtpd_sasl_type = dovecot
>> KJ: > #smtpd_sasl_path = private/auth
>> KJ: > smtpd_sasl_security_options = noanonymous
>> KJ: > smtpd_sasl_local_domain =
>> KJ: >
>> KJ: >
>> KJ: > If I try with telnet:
>> KJ: >
>> KJ: > telnet 10.1.1.253 25
>> KJ: > Trying 10.1.1.253...
>> KJ: > Connected to 10.1.1.253.
>> KJ: > Escape character is '^]'.
>> KJ: > Connection closed by foreign host.
>> KJ: >
>> KJ: > I can't see where is the problem :( could you help me?
>> KJ: >
>> KJ: > Thanks in advance!!
>> KJ: >
>> KJ: >
>> KJ:
>> KJ: Try uncommenting the "smtd_sasl_path" entry in your main.cf, then
>> reload KJ: your postfix config with "/etc/init.d/postfix reload". The error
>> message KJ: you're getting about the "no such file or directory" is because
>> it is KJ: looking for the path to 'auth', but you have the path commented
>> out. KJ:
>>
> Problem remains even uncommenting that line :(
>
>
>
ok, the private/auth should be located under /var/spool/postfix. Check
to make sure the permissions are such that the 'postfix' user can access it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3257 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20070712/56eb2a22/attachment.bin>
More information about the ubuntu-users
mailing list