Giter Club home page Giter Club logo

el7-spamtrap's Introduction

EL7 spamtrap setup

This installs a high interactive email honeypot style spamtrap. So take the needed pre-caution! Even though it is high interactive it is configured to not send mail.

This is based on https://github.com/0x6d696368/el7-server.

Follow the install instructions of el7-server to install:

  • 01_install_base.sh (make sure to follow the instructions in https://github.com/0x6d696368/el7-server for SSH pub key placement)
  • 02_install_ns1.sh without running any post install configuration (to setup a local DNS for RBL queries)
  • 02_install_mx.sh without running any post install configuration

Then run 03_install_spamtrap.sh from this repo.

This disables email sending from your mail server as well as sets up your mail server to receive all mails send to whatever recipients into spamtrap.invalid. The standard email addresses, e.g., hostmaster@, etc. are send to root, see /etc/postfix/vmaps for where special emails addresses are send.

Then run /usr/local/sbin/el7-mx_config steelservicescorp.com to configure your mail domain as steelservicescorp.com.

The spam mails will then land in /home/vmail/spamtrap.invalid/spamtrap/new/.

Optionally, you can run /usr/local/sbin/el7-mx_add_user [email protected] then you can connect via POP3s as user [email protected] with the password you configured in that command. If you connect to POP3s via IP only you must change the local_name <domain> { line to local <ip> {. This way dovecot will find and server the SSL certificate for SSL connections to the IP.

tl;dr:

Basically you run:

01_install_base.sh # from https://github.com/0x6d696368/el7-server
02_install_ns1.sh # from https://github.com/0x6d696368/el7-server
02_install_mx.sh # from https://github.com/0x6d696368/el7-server
03_install_spamtrap.sh # from this repo
/usr/local/sbin/el7-mx_config steelservicescorp.com

Then the spam ends up in /home/vmail/spamtrap.invalid/spamtrap/new/.

For logging and debugging of the mail system see instructions in https://github.com/0x6d696368/el7-server.

Issues

  • Because the el7-server project script el7-mx_add_user doesn't use regex in vhosts and vmaps you receive a warning warning: regexp map /etc/postfix/vmaps, line xx: ignoring unrecognized request. This can be ignored, or you can remove the added (non-regex) lines from vhosts and vmaps. Because there is already a catch all the entries aren't needed anyway.

el7-spamtrap's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.