https://github.com/infertux/chef-msmtp
Chef cookbook for msmtp
https://github.com/infertux/chef-msmtp
chef chef-cookbook msmtp smtp
Last synced: 11 months ago
JSON representation
Chef cookbook for msmtp
- Host: GitHub
- URL: https://github.com/infertux/chef-msmtp
- Owner: infertux
- License: mit
- Created: 2017-07-14T18:19:37.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-08-22T14:47:49.000Z (almost 7 years ago)
- Last Synced: 2025-02-12T10:56:00.504Z (over 1 year ago)
- Topics: chef, chef-cookbook, msmtp, smtp
- Language: Ruby
- Size: 7.81 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
msmtp cookbook
================
[](https://supermarket.getchef.com/cookbooks/msmtp)
[](https://travis-ci.org/infertux/chef-msmtp)
The msmtp cookbook installs the SMTP client msmtp.
## Platform Support
* Debian
## Attributes
* node['msmtp']['host'] - String. SMTP smarthost.
* node['msmtp']['port'] - Integer. override the mail submission port instead of SMTP port 25.
* node['msmtp']['auth'] - String. authentication enabled. Valid configurations "on", "off".
* node['msmtp']['user'] - String. user to authenticate as to SMTP server.
* node['msmtp']['password'] - String. This stores the password directly in the file. It's generally not recommended to store passwords in plain text files.
* node['msmtp']['from'] - String. Envelope-from address.
* node['msmtp']['aliases'] - Hash. List of forwarding email address.
## Recipes
* `msmtp::default` - Installs msmtp-mta package, configures `/etc/msmtprc` and `/etc/aliases.msmtp`.
## Usage
### `msmtp::default` recipe
Include the `msmtp::default` in your run_list and in your wrapper cookbook ensure that you have the appropriate attributes configured.
```
"msmtp": {
"host": "localhost",
"port": 587,
"auth": "on", # on|off
"user": "mailer",
"password": "changeme",
"from": "mailer@localhost",
"aliases": {
"root": "admin@example.net"
}
}
```
License
-------
MIT