On Fri, Sep 20, 2002 at 12:01:14PM -0300, Edson Brandi wrote: > Ricardo, > > colocquei no meu main.cf: > > body_checks = regexp:/usr/local/etc/postfix/body_checks > > no body_checks eu coloquei as regexp que vc enviou, dei um postfix > reload, mandei um email com um exe atachado e o email foi aceito >:( , > alguma ideia ??? >
Apenas para corrigir umas informa��es sobre o "body_checks", do postfix: Ap�s alguns testes, percebi que eu estava testando com o postfix-1.1.11-20020918. E n�o funcionava mesmo. Depois de ler com calma a documenta��o, notei o par�metro "mime_header_checks". Para esta vers�o do postfix, deve-se usar este par�metro para bloquear mensagens com anexos. Quando testei no postfix-1.1.11, usando apenas o "body_checks", funcionou. No caso dos testes, em vez de rejeitar a mensagem, coloquei um 'warning', como explica o "sample-pcre-header.cf" (ou "sample-regexp-header.cf": # REJECT [optional text...] # Reject the entire message. The optional text is sent to # the originator and is logged to the maillog file. # IGNORE Silently ignore the message header. # WARN [optional text...] # Log the message header and the optional text. This is # useful for testing. When the pattern is OK, change the # WARN into a REJECT or into a DISCARD. # HOLD [optional text...] # Place the message on the hold queue. Mail on hold can # be inspected with the postcat command, and can be # destroyed or taken off hold (i.e. delivered) with the # postsuper command. The matched header is logged # together with the optional text. # DISCARD [optional text...] # Claim successful delivery and silently discard the # message. The matched header is logged together with # the optional text. # FILTER transport:nexthop # After the message is queued, send the entire # message through a content filter. This # requires different cleanup servers before # and after the filter, with header/body # checks turned off in the second cleanup # server. More information about content filters # is in the Postfix FILTER_README file. D� pra mandar para um filtro, tamb�m. � uma sa�da interessante. -- Ricardo Campos Passanezi - Administrador de Rede Chave PGP e GPG P�blica em: http://www.ige.unicamp.br/~riccp Instituto de Geoci�ncias - http://www.ige.unicamp.br - UNICAMP _______________________________________________________________ Sair da Lista: http://www2.fugspbr.org/mailman/listinfo/fugspbr Historico: http://www4.fugspbr.org/lista/html/FUG-BR/
