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

Re: Exim, mysql - solution



Dur dur, voilà la solution.

Les variables EXIM ne doivent pas dépasser 23 caractères de long !


> Bonjour,
> 
> Quelqu'un aurait-il déjà eu ce problème ? Je n'ai rien trouvé dans les news.
> 
> J'ai sur une machine patato, un exim 3.12-10 compilé avec de support de
> mysql 3.22.30-4.
> 
> Chaque fois que j'utilise une commande sql dans exim, à la fin de ma
> commande sql le système ajoute des caractères (INS dans mon exemple). Ceci
> provoque bien sûr une erreur de syntaxe sql.
> 
> J'envoi :
> 
> MYSQL_SEARCH_RELAY_DOMAINS = SELECT rd_domains FROM relay_domains WHERE
> rd_domains='$key'
> 
> relay_domains = "mysql;MYSQL_SEARCH_RELAY_DOMAINS"
> 
> Et le système ajoute un INS à la fin de la requête.
> 
> J'ai une autre machine avec la même config (et le même binaire d'exim aussi)
> et cela marche sans problème. J'ai réinstallé mysql, exim, etc. Cela ne
> change rien.
> 
> Morceau du log via -d9 :
> ------------------------------
> SMTP<< RCPT TO:<testspam@leclerc-stephane.nom.fr>
> leclerc-stephane.nom.fr in local_domains? no (end of list)
> search_open: mysql "NULL"
> search_find: file="NULL"
> key="SELECT rd_domains FROM relay_domains WHERE
> rd_domains='leclerc-stephane.nom.fr'INS" partial=-1
> LRU list:
> internal_search_find: file="NULL"
> type=mysql key="SELECT rd_domains FROM relay_domains WHERE
> rd_domains='leclerc-stephane.nom.fr'INS"
> database lookup required for SELECT rd_domains FROM relay_domains WHERE
> rd_domains='leclerc-stephane.nom.fr'INS
> MYSQL query: SELECT rd_domains FROM relay_domains WHERE
> rd_domains='leclerc-stephane.nom.fr'INS
> MYSQL new connection: host=localhost port=0 database=antispam user=antispam
> password=xxxx
> MYSQL: query failed: You have an error in your SQL syntax near 'INS' at line
> 1
> 
> lookup deferred
> LOG: 0 MAIN PANIC DIE
> lookup of "leclerc-stephane.nom.fr" in "mysql;SELECT rd_domains FROM
> relay_domains WHERE rd_domains='$key'INS" failed to complete
> 421 Unexpected failure, please try later
> SMTP<< QUIT
> ------------------------------
> 
> ..........................................................
> .  Linux - Debian - php4 - Apache - MySQL - Infogerance  .
> .   email: info@actionweb.fr - http://www.actionweb.fr   .
> .     Tel: (0)141 906 100    -    Fax: (0)141 906 101    .
> ..........................................................
> 
> 
> --  
> To UNSUBSCRIBE, email to debian-french-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 


..........................................................
.  Linux - Debian - php4 - Apache - MySQL - Infogerance  .
.   email: info@actionweb.fr - http://www.actionweb.fr   .
.     Tel: (0)141 906 100    -    Fax: (0)141 906 101    .
..........................................................



Reply to: