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

Miguel Angel Tormo Alfaro mlists en edicom.eu
Jue Nov 27 16:29:21 CET 2008


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.




More information about the postfix-es mailing list