Skip to content

Instantly share code, notes, and snippets.

@jkullick
Last active January 17, 2017 15:14
Show Gist options
  • Save jkullick/4320dca93045619a1eb81fcd3e78ccaf to your computer and use it in GitHub Desktop.
Save jkullick/4320dca93045619a1eb81fcd3e78ccaf to your computer and use it in GitHub Desktop.
S25R Anti-Spam-System in Postfix
postconf -e "smtpd_client_restrictions = check_client_access regexp:/etc/postfix/client_restrictions"

cat > /etc/postfix/client_restrictions << EOF
/^(dhcp|dialup|ppp|adsl|pool)[^.]*[0-9]/  550 S25R6 check
EOF

postfix reload

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment