malsony / mailonacircle

entire postfix+dovecot+dkim+spamassassin+postgrey+clamav +postscreen centos 7 only selinux=ENABLED chef-solo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mailonacircle Cookbook

There is a LOT TO DO, but it works for me so far. This was created because there is mailinabox for ubuntu, but nothing for centos

This cookbook is a side project that does the following:

  • Installs and configures:
    • postfix
    • dovecot
    • mariadb
    • spamassassin
    • postgrey-milter
    • clamav-milter
    • opendkim
    • postscreen

Manual Steps:

  • After installing postfixadmin, you have to go to:
    • https://yoursite.com/setup.php and let it set things up, and copy the hash to
      • /var/www/html/postfixadmin/config.inc.php
    • Setup your domains/mailboxes in postfixadmin (or direct sql)
    • Copy opendkim keys to your DNS TXT records
    • Ensure EPEL Repo is setup on your server

Quick Setup (I don't care about the things):

 rpm -ivh https://opscode-omnibus-packages.s3.amazonaws.com/el/7/x86_64/chef-12.5.1-1.el7.x86_64.rpm
 mkdir .chef
 mkdir cookbooks
 echo 'cookbook_path "/root/cookbooks"' > .chef/solo.rb
 git clone https://github.com/drewlander/mailonacircle.git
 mv mailonacircle cookbooks
 chef-solo -c .chef/solo.rb -o recipe[mailonacircle]
  • go to "https://sitename/setup.php"
  • Copy the key to vim /var/www/html/postfixadmin/config.inc.php
    • paste it into setup_password
  • Create a new admin
  • Login as the new admin
  • Create a domain and mailbox in postfixadmin

Requirements

  • Centos 7
  • desginged to be run by chef-solo (currently)
  • assumues selinux is at least in permissive (enforcing recommended)

packages

  • toaster - mailonacircle needs toaster to brown your bagel.

Attributes

TODO: List your cookbook attributes here. OK

mailonacircle::default

Key Type Description Default
['mailonacircle']['turkeybacon'] Boolean whether to include turkeybacon true

Usage

mailonacircle::default

TODO: Write usage instructions for each cookbook.

e.g. Just include mailonacircle in your node's run_list:

{
  "name":"my_node",
  "run_list": [
    "recipe[mailonacircle]"
  ]
}

Contributing

Contributions are welcome! This is a side project.

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

License and Authors

Authors: drewlander drewski@drewstud.com

About

entire postfix+dovecot+dkim+spamassassin+postgrey+clamav +postscreen centos 7 only selinux=ENABLED chef-solo


Languages

Language:HTML 84.3%Language:Ruby 15.7%