aboutsummaryrefslogtreecommitdiffstats
path: root/extras/filters/filter-regex/filter-regex.conf
blob: c449d73ddac9c39ce9853bd344d8e6bece58fd30 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# opensmptd-extras filter-regex configuration

# reject a host
#connect ^host\.example\.com$

# allow a specific hosts while rejecting the rest of the domain
#connect ! ^allow\.example\.net$
#connect ^.*\.example\.net$

# reject helo with leading or trailing dot, and without dots (non-FQDN) 
# skipping address literals
#helo ! ^\[
#helo ^\.
#helo \.$
#helo ^[^\.]*$

# reject some senders
#mail ^.*@example\.com$
#mail ^.*@example\.net$

# reject some recipients
#rcpt ^.*@example\.org$

# reject some content
#dataline ^Content-Type: application/x-msdownload; name="[a-z]*\.[a-z]*"
#dataline (Viagra|Cialis)