[postfix-es] Traducción del mensaje de error

Claudia Burman cburman en elbolson.com
Jue Nov 27 17:05:52 CET 2008


Gracias a todos por las respuestas, sabía que esto se podía hacer en el 
nuevo Postfix aunque me faltaban los detalles (gracias Miguel)

El motivo de mi pregunta fue que estaba contestándole a una usuaria (la 
de "por qué no escriben en castellano hasta el final") diciéndole que no 
era posible, cuando se me ocurrió que tal vez sí, tal vez se había 
implementado algo para traducir automáticamente los mensajes que llegan 
de los otros servidores, del tipo "this user does not have a yahoo 
account" o "host not found" o "mailbox unavailable" o "Recipient address 
rejected: User unknown in local recipient table". Veo que no.

Saludos
Claudia Burman
El Bolsón - Patagonia Argentina

Miguel Angel Tormo Alfaro escribió:
> El Jueves, 27 de Noviembre de 2008 12:49:51 Claudia Burman escribió:
>   
>> Hola a todos,
>> Cuando instalé mi postfix hace ya como 4 años, modifiqué el código 
>> fuente para que al menos una parte del mensaje de error saliera en 
>> español. Quedó así:
>>
>> Bien, quería saber si alguien había desarrollado alguna solución para 
>> este problema, o como lo explican a sus usuarios sino.
>>     
>
> Con las nuevas versiones de postfix (creo que desde la 2.3, que ya tiene tiempo) se pueden personalizar estos mensajes sin necesidad de tocar el código.
> Ponemos en main.cf algo como:
> bounce_template_file = /etc/postfix/templates/bounce.cf
>
> En mi caso, lo que traduzco lo pongo en español e inglés. En mi caso, sólo he traducido el failure_template y el delay_template. Mi fichero queda así:
> # cat /etc/postfix/templates/bounce.cf
> failure_template = <<EOF
> Charset: utf-8
> From: MAILER-DAEMON (Mail Delivery System)
> Subject: Undelivered Mail Returned to Sender
> Postmaster-Subject: Postmaster Enclosed Copy: Undelivered Mail
>
> Esto es un mensaje generado automáticamente por el sistema de correo
> electrónico de $myhostname.
>
> Su mensaje dirigido a uno o más destinatarios no ha podido ser enviado
> a causa de errores irrecuperables. Adjunto a esta notificación podrá
> encontrar el mensaje.
>
> Contacte con postmaster en edicom.eu si tiene dudas al respecto de este
> problema.
>
>    Que tenga un buen día.
>
> ----------------------------------------------------------------------
>
> This is an automated message from the Mail Delivery
> System at $myhostname.
>
> Your message to one or more recipients has not been
> delivered due to permanent errors. You will find it
> attached to this message.
>
> If you think this is not correct, please contact
> postmaster en edicom.eu about this problem.
>
>   Have a nice day and better luck next time,
>
>
>
>           EDICOM Mail System
>
> EOF
>
> delay_template = <<EOF
> Charset: utf-8
> From: MAILER-DAEMON (Mail Delivery System)
> Subject: Mensaje retenido (aun se intenta enviar)
> Postmaster-Subject: Postmaster Warning: Delayed Mail
>
> Mensaje del sistema de correo del host $myhostname.
>
>  * ES SOLAMENTE UNA ADVERTENCIA. NO NECESITA REENVIAR SU MENSAJE *
>
> Su mensaje no ha podido ser enviado tras intentarlo más de $delay_warning_time_hours
> horas. Seguirá intentando enviarse hasta que su antigüedad supere los
> $maximal_queue_lifetime_days días.
>
> Si necesita asistencia, envíe un mensaje a postmaster en edicom.eu adjuntando
> esta notificación.
>
> --------------------------------------------------------------------
>
> This is the mail system at host $myhostname.
>
>  * THIS IS A WARNING ONLY.  YOU DO NOT NEED TO RESEND YOUR MESSAGE *
>
> Your message could not be delivered for more than $delay_warning_time_hours hours.
> It will be retried until it is $maximal_queue_lifetime_days days old.
>
> For further assistance, please send mail to postmaster en edicom.eu
>
> If you do so, please include this problem report. You can
> delete your own text from the attached returned message.
>
>                  
> EOF
>
> success_template = <<EOF
> Charset: utf-8
> From: MAILER-DAEMON (Mail Delivery System)
> Subject: Successful Mail Delivery Report
>
> This is the mail system at host $myhostname.
>
> Your message was successfully delivered to the destination(s)
> listed below. If the message was delivered to mailbox you will
> receive no further notifications. Otherwise you may still receive
> notifications of mail delivery errors from other systems.
>
> EOF
>
> verify_template = <<EOF
> Charset: utf-8
> From: MAILER-DAEMON (Mail Delivery System)
> Subject: Mail Delivery Status Report
>
> This is the mail system at host $myhostname.
>
> Enclosed is the mail delivery report that you requested.
>
> EOF
>
>
> Espero que te sirva. No comparto la postura de que 'los usuarios aprendan inglés', cuando la mayoría de las veces dichos usuarios son los que te están pagando.
>
>
> _______________________________________________
> List de correo postfix-es para tratar temas del MTA postfix en español
> postfix-es en lists.wl0.org
> http://lists.wl0.org/mailman/listinfo/postfix-es
>
>   



More information about the postfix-es mailing list