Limitar adjuntos en Postfix mediante expresiones regulares

Instalamos el postfix-pcre apt-get install postfix-pcre En el main.cf ponemos: mime_header_checks = pcre:/etc/postfix/adjuntos y en el fichero «adjuntos» ponemos esto: /filename=.*\.(rar|tar.gz|zip)/ OK /filename=.*\.*/ REJECT Solo se aceptan archivos adjuntos compactados con extencion rar, zip, tar.gz Luego reiniciamos el postfix y ya está. Solo podemos recibir adjuntos rar, zip y tar.gz. Reiniciando postfix: # /etc/init.d/postfix restart … Sigue leyendo Limitar adjuntos en Postfix mediante expresiones regulares