Giter VIP home page Giter VIP logo

ansible-playbooks's Introduction

Ansible Playbooks

Basic stuff for getting various personal servers running.

mailserver

Fill in a mailserver using the example-com inventory as an example. Populate files/mailserver.crt and files/mailserver.key with the server certificate and key.

To add a new user and password, update /etc/dovecot/users, which should be permissioned 640 dovecot:dovecot, with a username and password in the following format (ensuring that user matches a unix user on the system):

#user:password:uid:gid:(gecos):home:(shell):extra_fields

Get the password by running doveadm pw, and fill in relevant information, e.g.:

linda:{CRAM-MD5}63f73fd5c7d215dc84b3f55be69da501de920dd1a3db77968dd12e2880a037c3:500:500::/home/linda:

spamassassin, dovecot sieve

A few notes on configuration:

  1. spamassassin and dovecot sieve are installed and enabled, but will need some configuration. I chose not to include a default dovecot sieve file because Iโ€™d like to leave this up to personal preferences, but I would recommend putting a file at ~/.dovecot.sieve with the following, to filter things marked as spam into a spam folder:
require "fileinto";

if allof (
   header :contains "X-Spam-Status" "YES",
   not header :contains "X-Spam-Status" "No" )
{
        fileinto "spam";
}
  1. while spamassassin will update daily from the current setup here, it may be worthwhile to use sa-learn --spam on a folder of spam uncaught by spamassassin, and run sa-learn --ham on a folder like your inbox, to further train the filter.

ansible-playbooks's People

Contributors

rhwlo avatar

Stargazers

 avatar David Moore avatar Kristen avatar Tom O'Connor avatar em dan trim avatar

Watchers

James Cloos 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.