Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
FILTER-REGEX(8)		  BSD System Manager's Manual	       FILTER-REGEX(8)

NAME
     filter-regex -- smtpd filter for regular expression filtering

SYNOPSIS
     filter-regex [-dv]	[-l limit] [file]

DESCRIPTION
     filter-regex is a filter for smtpd(8) which can be	used to	filter mails
     using regular expressions matching	SMTP session parameters.

     The options are as	follows:

     -d	       Debug mode, if this option is specified,	filter-regex will run
	       in the foreground and log to stderr.

     -l	limit  Set the number of bytes limit after which the regular expres-
	       sion processing is stopped and the mail is accepted.  The ac-
	       cepted values are within	the range of 1 and SIZE_MAX.

	       The default limit value is 0 (unlimited).

     -v	       Produce more verbose output.

     filter-regex runs by default in a chroot.

     The debug and verbose options given with the smtpd(8) invocation are in-
     tially passed to filter-regex.

     Depending if one of the regular expressions matches mails are either ac-
     cepted or rejected	with a SMTP 554	reply.	Non-matching mails are always
     accepted.

FILES
     /usr/local/etc/mail/filter-regex.conf  Default filter-regex configuration
					    file.

SEE ALSO
     filter_api(3), regex(3), filter-regex.conf(5), smtpd.conf(5),
     re_format(7), smtpd(8)

HISTORY
     The first version of filter-regex was written in 2015.

AUTHORS
     filter-regex was intially written by Armin	Wolfermann
     <armin@wolfermann.org> and	further	improved by Joerg Jung
     <jung@openbsd.org>.

BSD				 May 16, 2016				   BSD

NAME | SYNOPSIS | DESCRIPTION | FILES | SEE ALSO | HISTORY | AUTHORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=filter-regex&sektion=8&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help