Fwd: how to block jpg and gif attachements for some users

Hugo van der Kooij hvdkooij at vanderkooij.org
Thu Jun 26 09:47:58 IST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Indunil Jayasooriya wrote:

| I am running postfix, Spam Assassin, ClamAV, MailScanner on CentOS 5.
| Now, I need to  block jpg and gif attachements for some users . No
| rescritions for the rest of users .
|
| Can MailScanner  do it?

Piece of cake. Create a rules file for the attachments. Then use
different files to specify which things yuo do not wish to pass.

Allow Filenames =
Deny Filenames =
Filename Rules = %rules-dir%/filenames.rules


To:             hugo at vanderkooij
%etc-dir%/filename-strict.rules.conf
To:             hvdkooij at vanderkooij
%etc-dir%/filename-strict.rules.conf
FromOrTo:       default
%etc-dir%/filename.rules.conf


I guess you should be able to take it from there and bring it home

Hugo.

- --
hvdkooij at vanderkooij.org               http://hugo.vanderkooij.org/
PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc

	A: Yes.
	>Q: Are you sure?
	>>A: Because it reverses the logical flow of conversation.
	>>>Q: Why is top posting frowned upon?

Bored? Click on http://spamornot.org/ and rate those images.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFIY1e8BvzDRVjxmYERAphoAKCzkBnHfB7iirAX3ssg3esTpHQVygCfcQtw
3wqS7P+sl3Uz3BQJR/LmPWU=
=eCJh
-----END PGP SIGNATURE-----


More information about the MailScanner mailing list