|
| 1 | +# blacklist_helo - after permit_sasl, used to stop common spammers/misconfigurations |
| 2 | +# |
| 3 | +# This file can be used to block hostnames used in smtp HELO command which are known bad. |
| 4 | +# Occasionally you will run into legitimate mail servers which are misconfigured and end |
| 5 | +# up blocked here, so this is not enabled by default, but it is useful if you are prepared |
| 6 | +# to address those cases. .local is particularly problematic, and commented out by default. |
| 7 | +# |
| 8 | +# Note that any server hitting this check is misconfigured, all of the names below are bogus |
| 9 | +# and not allowed per RFC 2821. |
| 10 | +# |
| 11 | +# If your own users are blocked by this, they are not authenticating to your server when |
| 12 | +# sending (this check is after permit_sasl, which permits authenticated senders). |
| 13 | +# |
| 14 | +# Instructions: |
| 15 | +# |
| 16 | +# Copy this file to /usr/local/ispconfig/server/conf-custom/install/blacklist_helo.master, |
| 17 | +# as well as /etc/postfix/blacklist_helo, so your changes are not overwritten with ispconfig |
| 18 | +# updates. |
| 19 | + |
| 20 | +# probably just put REJECT lines in here, |
| 21 | +# as OK lines will bypass a lot of other checks you may want done |
| 22 | +# (use DUNNO instead of OK) |
| 23 | +# |
| 24 | + |
| 25 | +# common for spammers (check https://data.iana.org/TLD/tlds-alpha-by-domain.txt and remove valid tld's occasionally) |
| 26 | +/.*\.administrator$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 27 | +/.*\.admin$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 28 | +/.*\.adsl$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 29 | +/.*\.arpa$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 30 | +/.*\.bac$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 31 | +/.*\.coma$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 32 | +/.*\.dhcp$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 33 | +/.*\.dlink$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 34 | +/.*\.dns$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 35 | +/.*\.domain$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 36 | +/.*\.dynamic$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 37 | +/.*\.dyndns\.org$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 38 | +/.*\.dyn$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 39 | +/.*\.firewall$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 40 | +/.*\.gateway$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 41 | +/.*\.home$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 42 | +/.*\.internal$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 43 | +/.*\.intern$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 44 | +/.*\.janak$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 45 | +/.*\.kornet$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 46 | +/.*\.lab$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 47 | +/.*\.lan$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 48 | +/.*\.localdomain$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 49 | +/.*\.localhost$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 50 | + |
| 51 | +# .local is used by spammers a lot, but too many otherwise legit servers hit it |
| 52 | +# (instead of REJECT, should send to greylisting) |
| 53 | +#/.*\.local$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 54 | + |
| 55 | +/.*\.loc$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 56 | +/.*\.lokal$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 57 | +/.*\.mail$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 58 | +/.*\.nat$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 59 | +/.*\.netzwerk$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 60 | +/.*\.pc$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 61 | +/.*\.privat$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 62 | +/.*\.private$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 63 | +/.*\.router$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 64 | +/.*\.setup$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 65 | + |
| 66 | +/.*\.119$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 67 | +/.*\.beeline$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 68 | +/.*\.cici$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 69 | +/.*\.gt_3g$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 70 | +/.*\.gt-3g$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 71 | +/.*\.hananet$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 72 | +/.*\.skbroadband$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 73 | +/.*\.tbroad$/ REJECT HELO hostname is using a top level domain that does not exist. See RFC 2821 section 3.6. |
| 74 | + |
0 commit comments