Blocking mail based on it's content or attachment

Hugo van der Kooij hvdkooij at vanderkooij.org
Tue Mar 25 06:24:05 GMT 2008


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

Andrew Chester wrote:

| I would like to know if there is a way to block mail for a certain
| domain, (with MailScanner sitting on a mail gateway being used for
| multiple domains) based on the mail's content and attachment. Basically,
| the owners of the domain don't want certain file types and certain mail
| content to be received by the users, and thus want it automatically
| blocked at gateway level. We are using Postfix as the MTA on the gateway.

Please read you config file help on the following sections:

# Attachment Filename Checking

You want to use rulesets there instead of rules so you pick and choose
what to for each domain.

More explicit examples can be found in the archives of this mailinglist.

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)

iD8DBQFH6JqDBvzDRVjxmYERAt6VAJ9uOAYSwt52TLSi7X+T4fVVVeoV3QCgqIM0
IoQUMT8PHW7sDejR21ELfs0=
=MSDs
-----END PGP SIGNATURE-----


More information about the MailScanner mailing list