Howto Filter Mails

Meshbah Uddin Ahmed meshbah at gmail.com
Wed Sep 22 03:41:10 PDT 2004


Dear John,

thanks 4 ur help. i tried according to ur instruction. it works little bit. 

i add a line in main.cf

body_checks = pcre:/usr/local/etc/postfix/body_checks

then i create a file, name body_checks and add the following line-

/^xyz$/ REJECT Mail is Reject

in this way, postfix does not send this kind of mail which content is
"xyz". but in maillog it shows-

SYSERR(root):savemail: cannot save rejected email anywhere


On Tue, 21 Sep 2004 09:33:36 -0500, John Brooks <john at day-light.com> wrote:
> the name of the file is "header_checks" and it is located in the same
> directory that contains all of the postfix config files. "body_checks"
> is similar, but it must be created. all of the info needed is located
> in either the 'man' page or the 'header_checks' file itself. there are
> several 'sample' files included with the postfix documentation that may
> be of benefit.
> 
> --
> John Brooks
> john at day-light.com


More information about the freebsd-isp mailing list