Git Product home page Git Product logo

open-dmarc-analyzer-dockerbuilder's Introduction

Open-DMARC-Analyzer-dockerbuilder

A docker builder for Open-DMARC-Analyzer

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Please you must have docker or docker desktop installed to build the image. By default, we use traefik to deploy directly website to an local website. You can change traefik label to directly map to localport.

Installing

To prepare, the docker image first download need repository with

make install

Before build please edit the both config file

for Open-DMARC-Analyzer copy the example to code/config.php.pub and edit the following part

// Database Settings

define('DB_HOST', 'mysql');
define('DB_USER', 'root');
define('DB_PASS', 'root');
define('DB_NAME', 'dmarc');
define('DB_PORT', '3306'); // default port 3306, 5432 for pgsql
define('DB_TYPE', 'mysql'); // supported mysql and pgsql

and for dmarcts-report, edit the following file parser/dmarcts-report-parser.conf

# Supported types: mysql, Pg. If unset, defaults to mysql
$dbtype = 'mysql';
$dbname = 'dmarc';
$dbuser = 'root';
$dbpass = 'root';
$dbhost = 'mysql'; # Set the hostname if we can't connect to the local socket.
$dbport = '3306';

$imapserver       = 'IMAP SERVER';
$imapuser         = 'IMAP Account email';
$imappass         = 'IMAP Account PASS';
$imapport         = '143';
$imapssl          = '0';        # If set to 1, remember to change server port to 993 and disable imaptls.
$imaptls          = '1';        # Enabled as the default and best-practice.
$tlsverify        = '0';        # Enable verify server cert as the default and best-practice.
$imapignoreerror  = '0';          # set it to 1 if you see an "ERROR: message_string() 
                                # expected 119613 bytes but received 81873 you may 
  

after that to build image, type

make build

Edit WEB variable in Makefile to match your traefik url

VERSION=0.7
WEB=dmark.local.meyn.fr # <- match to your url
.PHONY: serve

And launch the image

make serve

Maybe to finish the install, type the install page : https://dmark.local.meyn.fr/install.php

and access to the website : https://dmark.local.meyn.fr/install.php

Important

The email inbox linked to the config must have the dmarc email in dmarc folder. You can launch the following command to force update

# force the imap folder dmarc processing
make force-update

Authors

  • Samuel M - Olopost - Initial work - Site

License

This project is licensed under the MIT License - see the LICENSE.md file for details

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.