cookbook 'msmtp', '~> 2.0.0'
msmtp (3) Versions 2.0.0 Follow1
Installs and configures msmtp MTA
cookbook 'msmtp', '~> 2.0.0', :supermarket
knife supermarket install msmtp
knife supermarket download msmtp
msmtp cookbook
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
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
Collaborator Number Metric
2.0.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
2.0.0 passed this metric
No Binaries Metric
2.0.0 passed this metric
Testing File Metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
2.0.0 failed this metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
2.0.0 passed this metric
No Binaries Metric
2.0.0 passed this metric
Testing File Metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
2.0.0 passed this metric
2.0.0 passed this metric
Testing File Metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
2.0.0 failed this metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number