Does anyone know how can I do this with postfix mechanisms? Or maybe with amavisd-new / clamav / spamassassin ?
I use the following configuration to stop some file types from entering the server: main.cf file: Code: mime_header_checks = regexp:/etc/postfix/mime_header_checks /etc/postfix/mime_header_checks file: And many oder file extensions. This is affectign every user from all domains. how can I do that on a per-user basis? Or perhaps, per-domain.
You could use procmail for it. Take a look at Code: man procmailex and http://www.howtoforge.com/procmail_tips_recipes