Skip to content

threetreeslight/qmail-cookbook

Repository files navigation

qmail Cookbook

This cookbook makes installing qmail.

Requirements

packages

  • cent os
  • ruby > 2.0.0
  • bundler
  • virtualbox
  • vagrant

Attributes

qmail::default

Key Type Description Default
['qmail']['domain'] String recieve host name and domain name.
use by qmail-send
mail.example.com
['qmail']['user'] String qmail use user

Usage

qmail::default, qmail::tcpserver

if you want only use qmail Just include qmail::default and qmail::tcpserver in your node's run_list:

{
  "run_list": [
    "recipe[qmail::default]",
    "recipe[qmail::tcpserver]"
  ]
}

qmail::maildir

if you want use maildir for any users, Just include qmail::maildir and set node['qmail']['user'] in your node's run_list:

{
  "qmail": { "user": ['hoge', 'foo'] } ,
  "run_list": [
    "recipe[qmail::maildir]"
  ]
}

sample email

Set up local node

# up to local server
$ vagrant up

# start qmail as background process
$ sudo qmail start

# send email
$ sudo echo to: vagrant@mail.example.com | /var/qmail/bin/qmail-inject

# check sended mail
$ sudo cat /var/qmail/alias/Mailbox

# alias ( use for mailing list )
$ vi $HOME/.qmail
&hoge@gmail.com

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write you 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

License MIT

About

qmail-cookbook

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published