[Postfix-br] RES: RES: Postfix otimizado para envio de mala direta

Bruno Menoli brunomenoli em gmail.com
Quarta Julho 18 15:28:25 BRT 2012


Opa,


Muito obrigado pelo retorno. Pois é não me atentei pela mesma linha, 
copiar e colar as vezes é fogo!! Mas vamos lá, fiz a alteração, 
reiniciei e recebo erro agora, bem parecido:


Jul 18 15:24:16 XXXX dovecot: auth: Debug: 
pam(bruno em XXXXXXXXX,11111111111): lookup service=dovecot
Jul 18 15:24:16 XXXX dovecot: auth: Debug: 
pam(bruno em XXXXXXXXX,11111111111): #1/1 style=1 msg=Password:
Jul 18 15:24:19 XXXX dovecot: auth: pam(bruno em XXXXXXXXX,11111111111): 
unknown user
Jul 18 15:24:19 XXXX dovecot: auth: Debug: 
sql(bruno em XXXXXXXXX,11111111111): query: SELECT password FROM mailbox 
WHERE username = ‘bruno em XXXXXXXX’ AND active = ’1′
Jul 18 15:24:19 XXXX dovecot: auth: Error: mysql: Query failed, 
retrying: You have an error in your SQL syntax; check the manual that 
corresponds to your MySQL server version for the right syntax to use 
near '��bruno em smtpemb10.com.br’ AND active = ’1′' at line 1
Jul 18 15:24:19 XXXX dovecot: auth: Error: 
sql(bruno em XXXXXXXXX,11111111111): Password query failed: You have an 
error in your SQL syntax; check the manual that corresponds to your 
MySQL server version for the right syntax to use near 
'��bruno em XXXXXXXXX’ AND active = ’1′' at line 1
Jul 18 15:24:21 XXXX dovecot: auth: Debug: client out: 
FAIL#0111#011user=bruno em XXXXXXXX#011temp


Tem relaçao com a versao do MYSQL? estou usando a 5.5, tentei executar 
somente o select no banco de dados direto e deu o mesmo erro.




On 07/18/2012 03:13 PM, vic wrote:
> Em 2012-07-18 12:01, Bruno Menoli escreveu:
>> Abaixo a mensagem de erro:
>>
>> Jul 18 11:56:58 SERVIDOR dovecot: auth: Debug:
>> sql(bruno em xxxxxxxxx,IP): query: SELECT password FROM mailbox WHERE
>> username = ‘bruno em xxxxxxxxxxx’ AND active = ’1′ user_query = SELECT
>> maildir, 89 AS uid, 89 AS gid FROM mailbox WHERE username =
>>bruno em xxxxxxxxx’ AND active = ’1′
>> Jul 18 11:56:58 SERVIDOR dovecot: auth: Error: mysql: Query failed,
>> retrying: You have an error in your SQL syntax; check the manual that
>> corresponds to your MySQL server version for the right syntax to use
>> near '��bruno em XXXXXX’ AND active = ’1′ user_query = S' at line 1
>> Jul 18 11:56:58 SERVIDOR dovecot: auth: Error:
>> sql(bruno em xxxxxxxx,IP): Password query failed: You have an error in
>> your SQL syntax; check the manual that corresponds to your MySQL
>> server version for the right syntax to use near '��bruno em xxxxxxxxx>> AND active = ’1′ user_query = S' at line 1
>> Jul 18 11:57:00 SERVIDOR dovecot: auth: Debug: client out:
>> FAIL#0111#011user=bruno em xxxxxxxxx#011temp
>>
>>
>>
>> Abaixo o arquivo de conexão com o MYSQL:
>>
>> dovecot-mysql.conf
>>
>> driver = mysql
>> #Currently supported schemes include PLAIN, PLAIN-MD5, DIGEST-MD5,
>> and CRYPT. default_pass_scheme = CRYPT
>> connect = host=localhost dbname=XXXXX user=XXXXXX password=XXXXXXX
>> password_query = SELECT password FROM mailbox WHERE username = ‘%u’
>> AND active = ’1′ user_query = SELECT maildir, 89 AS uid, 89 AS gid
>> FROM mailbox WHERE username = ‘%u’ AND active = ’1′
>>
>> Já consigo receber a mensagem no servidor e enviar, com base nos
>> dados do postfixadmin. Problema agora é baixar via POP.
>>
>>
>> Obrigado.
>>
>
> Seu select está errado. Ou melhor ainda, sua configuração está errada.
>
> Falta um ENTER entre a configuração pasword_query e a configuração 
> user_query:
>
> password_query = SELECT password FROM mailbox WHERE username = ‘%u’
>  AND active = ’1′ ****** DAR UM ENTER AQUI *** user_query = SELECT 
> maildir, 89 AS uid, 89 AS gid
>  FROM mailbox WHERE username = ‘%u’ AND active = ’1′
>
> Você está precisando de café para manter os olhos abertos :P
>



More information about the Postfix-br mailing list