Giter Club home page Giter Club logo

mailcatcher-formula's Introduction

mailcatcher Salt Formula

Install mailcatcher. Configure server to send ALL mail to mailcatcher so nothing escapes.

See the full Salt Formulas installation and usage instructions

Available states

mailcatcher

Install mailcatcher and start the service.

mailcatcher.gem

Install mailcatcher and its dependencies.

mailcatcher.php

Configure PHP to use mailcatcher.

mailcatcher.service

Start the service (after stopping any other mail service).

Configuration

All pillar values are optional, though you likely want to make sure we're catching mail from all the places you may be sending it.

Standalone PHP

mailcatcher:
  php_integration: True

The pillar setting above will update php.ini such that PHP uses mailcatcher to send mail.

Apache + PHP

mailcatcher:
  apache_integration: True
  php_integration: True

The pillar setting above will update php.ini such that PHP uses mailcatcher to send mail, and it will restart Apache so the changes take effect.

Nginx + PHP

mailcatcher:
  nginx_integration: True
  php_integration: True

The pillar setting above will update php.ini such that PHP uses mailcatcher to send mail, and it will restart Nginx so the changes take effect.

Note about Sendmail

Mailcatcher cannot run if Sendmail or exim is running. Thus it will STOP and DISABLE the existing sendmail service.

The name of the service is defined in the map.jinja, we guess it is exim4 on modern systems but who knows what yours is.

mailcatcher:
  lookup:
    smtp_service: custom_service_name

If you don't have any existing SMTP service running on your machine and you don't want us to constantly check that said non-existing service is dead, you can set a pillar like

mailcatcher:
  smtp_service: False

mailcatcher-formula's People

Contributors

johnkeates avatar nmadhok avatar

Watchers

James Cloos avatar  avatar

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.