On Thu, 05 Dec 2013 14:32:39 +0000, niuriel wrote:
necesito que mi postfix envie una nota x en los mensajes salientes he
buscado en google ,pero no encuentro nada satisfactorio

Aparentemente los desarrolladores de Postfix no han facilitado algo para esto, porque agregar algo a un mensaje puede romper la codificación MIME y especialmente trae conflicto con los mensajes firmados. En sus propias palabras, segun una FAQ armada de la lista de Postfix [1]:

11. How can I add or append a disclaimer (or other text) to the bottom of every email that gets sent from my mail server?

By design this is not implemented in Postfix directly. It's not the job of an MTA, and it's not as simple a problem as it seems because of MIME and digital signatures. MIME messages have a structure that can be very complex. Digital signatures attest to the fact that a signed message has not been modified. Adding a footer to the bottom of a message, breaks both of these. Some people add short text to the headers of email messages, but the text is not likely to be seen by most users. The real solution is to configure your clients to add whatever text is required.

Having said that, it is possible to configure a content filter that appends the text for you. Follow the directions for configuring Postfix to work with a content filter. Your filter should be MIME aware, and you should be aware that digital signatures will no longer work.

De modo que como verás, ellos recomiendan que mejor se use una firma en el cliente de correo, porque de lo contrario puede haber problemas con la codificación MIME y especialmente con los mensajes firmados digitalmente. De todas maneras como dicen puede hacerse, aqui tienes un par de mensajes de la lista de Postfix que tratan justamente sobre esto:

----- [pregunta] -----

my config,

master.cf
serverml1:smtp inet n - n - - smtpd
-o content_filter=dfilt:

dfilt unix - n n - - pipe
 flags=Rq user=filter argv=/etc/postfix/footer.sh -f ${sender} --
${recipient}

using altermime

to

/usr/local/bin/altermime --input=in.$$
--disclaimer=/etc/postfix/footer.txt |

to append txt to end of outbound mails

Now this appends the footer to ALL outbound mails.

is it possible to restrict this to certain outbound mails by thier mail
from: or reply to: address ?

----- [respuesta] -----

Use the FILTER action in an access map (e.g. check_sender_access)
or in header_checks.

main.cf:
header_checks = pcre:/path/to/file

/path/to/file:
/^Reply-To: blah blah/ FILTER dfilt:

---------------------------

Falko hizo un tutorial que quizas te interese [2] y además encontré otro sitio que hace algo parecido [3], suerte.


Saludos, Hugo


[1] http://www.seaglass.com/postfix/faq.html#dsc
[2] http://www.howtoforge.com/add-disclaimers-to-outgoing-emails-with-altermime-postfix-debian-etch
[3] http://www.pank.org/blog/archives/000324.html

--
Este mensaje ha sido analizado por MailScanner
en busca de virus y otros contenidos peligrosos,
y se considera que est� limpio.

______________________________________________________________________
Lista de correos del Grupo de Usuarios de Tecnologías Libres de Cuba.
Gutl-l@jovenclub.cu
https://listas.jovenclub.cu/cgi-bin/mailman/listinfo/gutl-l

Responder a