cookbook 'zeyple', '~> 3.0.0'
zeyple (6) Versions 3.0.0 Follow1
Installs/Configures Zeyple
cookbook 'zeyple', '~> 3.0.0', :supermarket
knife supermarket install zeyple
knife supermarket download zeyple
Zeyple Cookbook
This cookbook installs Zeyple from its APT repository and configures it with Postfix.
Requirements
- Chef or Cinc 18 or later
- Debian 12, Debian 13, Ubuntu 24.04 or Ubuntu 26.04 (the platforms tested in CI)
- Postfix (installed with the postfix cookbook 7.0 or later)
Usage
Configure the list of key IDs to encrypt email with:
"zeyple": { "gpg": { "keys": ["0xEEC73D5809A98A9B"] } }
Zeyple's package is kept up to date on every Chef run. To pin a version instead:
"zeyple": { "package_version": "3.0.0-1" }
By default Zeyple drops emails to recipients without a key, like the package's default configuration. To send them unencrypted instead:
"zeyple": { "force_encrypt": false }
Postfix takes a single content_filter, and Zeyple needs it, so the recipe stops if another filter is already set. To keep that filter, pass the emails on to it after Zeyple:
"zeyple": { "next_content_filter": "smtp-amavis:[127.0.0.1]:10024" }
Add the zeyple recipe to your run list:
"recipe[zeyple]"
The recipe plugs Zeyple into the postfix cookbook's postfix 'default' resource with edit_resource, declaring it if needed.
If another cookbook also configures Postfix with that resource (e.g. sanity), include the zeyple recipe after it so they share the same resource.
License
MIT
Zeyple CHANGELOG
v3.0.0
- Depend on the postfix cookbook ~> 7.0, which replaced its recipes and attributes with custom resources: plug Zeyple into the
postfix 'default'resource (shared with other cookbooks like sanity) instead of settingnode['postfix']attributes and includingpostfix::default - Install Zeyple 3.0.0 from its APT repository (https://deb.cyberbits.eu/zeyple/) instead of downloading the script (still at
/usr/sbin/zeyple); thedependenciesandupstream.scriptattributes are gone - Zeyple 3.0.0 requires Python 3 and
python3-gpginstead ofpython-gpgme - Fetch keys from keyserver.ubuntu.com since the SKS keyserver pool behind keys.gnupg.net is gone
- Fix the reinjection service in
master.cf, whose unindented lines kept Postfix from starting - Set
zeyple_destination_recipient_limit = 1so Postfix runs Zeyple once per recipient - Install the Zeyple script and config as root so the zeyple user, which handles the emails, can't modify them
- Make the log
zeyple:adm0640 like the package does, so the two don't flip it on every run - Set
force_encrypt = 1by default like the package (newforce_encryptattribute): recipients without a key no longer get unencrypted emails - Stop instead of replacing another Postfix
content_filter, and chain it after Zeyple with the newnext_content_filterattribute - Let the package create the zeyple user and group instead of the recipe
- Drop the
selinuxrecipe and theversionandupstream.selinuxattributes: Debian and Ubuntu use AppArmor, not SELinux - Test on Debian 12, Debian 13, Ubuntu 24.04 and Ubuntu 26.04 with GitHub Actions instead of Travis CI
v2.0.0
- Require Chef 18 and depend on the postfix cookbook ~> 6.0
- Drop CentOS support
- Test with Test Kitchen and Docker (kitchen-dokken) instead of Vagrant
v1.2.2
- Update cookbook for Zeyple 1.2.2
v1.2.1
- Update cookbook for Zeyple 1.2.1
v1.1.0
- Update checksum for Zeyple 1.1.0
v1.0.0
- Initial release