Manish, > How can I stop some users from sending any kind of attachments along with > their mails ? Further, I would like to block the attachment file extensions > selectively on a per user basis. Is it possible to do so ? I plan to use > Amavisd-new along with Postfix.
to block all outgoing attachments with amavisd you could maybe use $banned_filename_re = new_RE( [ qr'^\.[a-zA-Z0-9]*$' => 1 ], ); To allow or to block certain attachments types on a per user basis you can use a dedicated policy bank for this. Here you'll find some examples: http://www200.pair.com/mecham/spam/bypassing.html http://www.ijs.si/software/amavisd/amavisd-new-docs.html#pbanks If you use a sql database you could maybe use the field "banned_rulenames" in the table "policy". Then it's necassary that you define a set of banned rulenames for allowed and/or disallowed filetypes per user. See readme.sql-mysql: banned_rulenames varchar(64) default NULL -- comma-separated list of names mapped through %banned_rules to actual banned_filename tables Daniel ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/