mailtrap

Mailtrap is a honeypot suite for gathering blacklist information.

Download Version 0.5.1

How to Setup:

  • create a database for mailtrap and grant select, insert, update, delete Privileges
  • create tables from table_definitions file
  • make
    • to build both, daemon and cli just type make
    • to build daemon only type make server
    • to build cli only type make client
  • files will be installed to /usr/local/bin
  • config will be copied to /etc
  • edit /etc/mailtrap.conf
  • select port daemon will bind to
  • set database credentials
  • deceide if mailtrap should respond with temporary or permanent SMTP error
    • code=hard => respond with error code: 552 5.5.2 Requested mail action aborted: exceeded storage allocation
    • code=soft => respond with error code: 451 4.3.0 Error: queue file write error
  • start daemon

Using client Interface:

  • USAGE: mailtrap-cli <ip> reports match or no Match
  • USAGE: mailtrap-cli <ip> -e enables extented reporting of last 20 delivery attempts