This cookbook makes installing qmail.
cent os
ruby > 2.0.0
bundler
virtualbox
vagrant
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 |
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]"
]
}
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]"
]
}
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
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write you change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
License MIT