Lance Albertson
7208c3f559
Fix OpenSUSE installation issues
...
OpenSUSE runs a script which builds the main.cf file automatically if a file
doesn't exist. This breaks idempotency so go ahead and touch the file via Chef.
In addition, postfix is built with incorrect default settings for `setgid_group`
and `daemon_directory`, so set it properly in the config.
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-10-11 10:44:22 -07:00
Lance Albertson
11eada3c0c
Remove EL 6 testing
...
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-10-11 10:03:37 -07:00
Lance Albertson
e937c83d4f
Cookstyle fixes
...
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-10-11 10:03:37 -07:00
Cookstyle Bot
04439af12e
Cookstyle Bot Auto Corrections with Cookstyle 6.18.8
...
This change is automatically generated by the Cookstyle Bot using the latest version of Cookstyle (6.18.8). Adopting changes suggested by Cookstyle improves cookbook readability, avoids common coding mistakes, and eases upgrades to newer versions of the Chef Infra Client.
### Style/Encoding
- **/recipes/maps.rb:1**: Unnecessary utf-8 encoding comment.
- **/test/integration/sasl_auth_multiple/serverspec/sasl_auth_multiple_spec.rb:1**: Unnecessary utf-8 encoding comment.
- **/test/integration/sasl_auth_one/serverspec/sasl_auth_one_spec.rb:1**: Unnecessary utf-8 encoding comment.
Signed-off-by: Cookstyle <cookbooks@chef.io>
2020-09-17 12:26:32 -07:00
Tim Smith
b204ea814b
Only use multi-package on *nix
...
Signed-off-by: Tim Smith <tsmith@chef.io>
2020-08-26 12:04:14 -07:00
Tim Smith
38af4293d9
Simplify platform check logic
...
Signed-off-by: Tim Smith <tsmith@chef.io>
2019-12-12 16:51:16 -08:00
David MacMillan
e47c889763
Merge branch 'master' into master
2019-11-18 14:08:07 -04:00
Tim Smith
632191521e
Update copyrights
...
Signed-off-by: Tim Smith <tsmith@chef.io>
2019-11-10 18:11:24 -08:00
David MacMillan
a5fd0f7acd
fixed transports not using /usr/sbin on RHEL
...
Signed-off-by: David MacMillan <dmac134@gmail.com>
2019-11-01 10:30:14 -03:00
Tim Smith
684b407157
Cookstyle fixes
...
Signed-off-by: Tim Smith <tsmith@chef.io>
2019-01-20 11:45:35 -08:00
105325
0dd7bc851b
Fixed sbin issue with Chef13 \nSigned-off-by: Scott Marshall <scott.marshall@johnmuirhealth.com>
2018-06-25 15:24:27 -07:00
Tim Smith
c547cd9b9e
Merge pull request #146 from ledgr/packages_names_in_attributes
...
Add `packages` attribute so different postfix packages can be installed
2018-05-23 13:29:33 -05:00
Joshua Colson
42b4078369
add ability to set network connection port for a remote relayhost
...
Signed-off-by: Joshua Colson <joshua.colson@gmail.com>
2018-05-23 08:08:23 -07:00
Edgaras Lukoševičius
13741814f1
Add packages
attribute so different postfix packages can be installed
...
Signed-off-by: Edgaras Lukoševičius <edgaras.lukosevicius@gmail.com>
2018-05-23 13:17:05 +03:00
Jaymala Sinha
797e19dae9
Do not run service restart for solaris
...
Signed-off-by: Jaymala Sinha <jsinha@chef.io>
2017-11-22 10:28:28 -05:00
Ryan Hass
518f982af3
Properly support FreeBSD
...
We now disable all sendmail services and periodic services on FreeBSD
before attempting to start postfix. Additionally, this updates
mailer.conf mappings to use postfix applications rather than sendmail.
2017-11-16 17:22:13 -08:00
Markus Wagner
9f917c5e27
lazy evaluation of the template variables
...
Signed-off-by: Markus Wagner <markus.wagner@open-xchange.com>
2017-08-07 08:52:45 +02:00
Tim Smith
a6fd99b064
Merge pull request #139 from crowdworks/fix_amazon_support
...
Fix support for Amazon Linux
2017-07-28 09:09:21 -07:00
Bram Gillemon
ca7b0033e9
allows to rewrite outgoing address.
...
In my development env i want to make sure nobody can send a mail to a wrong address. So all outgoing mails are changed.
Signed-off-by: Bram Gillemon <bram@gillemon.be>
2017-07-28 16:17:09 +02:00
AkiraFukushima
e818f0687b
Fix support for Amazon Linux
...
Signed-off-by: AkiraFukushima <akira.fukushima@crowdworks.co.jp>
2017-07-28 18:03:06 +09:00
Tom Parker
daca56f8c9
Correct attribute line for use_relay_restrictions_maps
...
Signed-off-by: Tom Parker <palfrey@tevp.net>
2017-06-20 22:50:00 +01:00
Jennifer Davis
94a68b1773
Fixes Issue #135 (use_relay_restrictions_maps fix)
...
Signed-off-by: Jennifer Davis <iennae@gmail.com>
2017-05-15 09:55:05 -07:00
Tim Smith
6d9defeba5
Update copyrights
...
Signed-off-by: Tim Smith <tsmith@chef.io>
2017-04-05 22:23:03 -07:00
Tim Smith
fe19de29ce
Cookstyle fixes
...
Signed-off-by: Tim Smith <tsmith@chef.io>
2017-01-17 23:51:50 -08:00
Tim Smith
3ea284d576
Merge branch 'master' of git://github.com/voroniys/postfix into voroniys-master
2017-01-17 23:50:55 -08:00
Seth Thomas
d9c3923f4a
Cookstyle hotfix should fix builds
2016-12-22 22:08:08 -05:00
Tim Smith
2ffa7386b8
Update copyright headers
...
Signed-off-by: Tim Smith <tsmith@chef.io>
2016-11-25 11:41:14 -08:00
Tim Smith
4d071581fa
Remove encoding
...
There's no need for this
Signed-off-by: Tim Smith <tsmith@chef.io>
2016-09-08 10:12:47 -07:00
Tim Smith
43633409a7
Use node.normal vs. node.set to avoid deprecation warnings
...
Signed-off-by: Tim Smith <tsmith@chef.io>
2016-09-07 21:56:11 -07:00
Tim Smith
10375cf989
Resolve rubocop warnings
2016-04-01 11:53:36 -07:00
Stanislav Voroniy
0c0580f7e5
Make foodcritic and rubocop happy again
2015-10-06 10:17:11 +02:00
Stanislav Voroniy
525d67394a
Support for any kind of postfix lookup tables
2015-09-30 09:54:46 +02:00
Tim Smith
770e65103f
Rubocop fixes
2015-09-24 15:07:56 -07:00
Stanislav Voroniy
3b2a268d6d
Fully customizable master.cf file
2015-09-12 11:12:08 +02:00
Stanislav Voroniy
52a675d1c8
Manage any hash: tables for postfix with hash_maps recipe
2015-09-11 15:02:18 +02:00
Stanislav Voroniy
c9613ac670
Fixes for Travis CI
2015-09-11 14:56:12 +02:00
Matthieu Vachon
3445567364
Using node.default_unless instead of node.default in _attributes
...
* Wrapper cookbook usually uses default level to override attributes
of the wrapped cookbook. Here, we had a problem because if the
wrapper cookbook was enabling sasl and was setting a relayhost
and a user/password combination using the default level, this was
not working because _attributes resets those attributes.
To fix this, we now use node.default_unless which will set the
attribute only if it's not already set ensuring that wrapper
cookbook overriden attributes using default level are correctly
kept when computing derived attributes.
2015-08-27 17:17:30 -04:00
Thom May
5c8bbc90e5
fix spelling of restriction
2015-06-23 15:27:27 +01:00
Joris van Lieshout
2cbe7c42b4
Adding functionality to restrict 'rcpt to' domains
2015-06-23 14:53:15 +01:00
Nathan L Smith
689345ac5c
make password file resource sensitive
2015-05-03 23:10:24 -05:00
Sean OMeara
aa1f845864
opscode2chef
2015-02-18 15:49:35 -05:00
drag00n
ea93c2b0a5
Fix several rubocop errors.
...
Deleted extra blank space, used 2 spaces instead of 3, use parens
instead of curly braces
2014-11-14 23:22:26 -05:00
Craig Lewis
957bc02016
Rubocop fixes.
2014-10-31 16:09:46 -07:00
Craig Lewis
fbeb44dae1
Fix FreeBSD isms in Postfix.
2014-10-31 16:00:52 -07:00
Chase Bolt
17cb0d866d
Fix logic around include_recipe 'postfix::virtual_aliases_domains'
...
Signed-off-by: Sean OMeara <someara@opscode.com>
2014-10-28 16:36:14 -04:00
Sean OMeara
c0678ed475
Merge pull request #85 from chasebolt/attributes_conditionals
...
moving conditional attributes to a recipe
2014-09-11 14:27:04 -04:00
Chase Bolt
fabbaeba4a
restart postfix after updating virtual alias templates #86
2014-09-09 16:32:33 -07:00
Chase Bolt
d972e58fa4
moving conditional attributes to a recipe so they can be modified via other cookbook attributes
2014-09-09 11:11:30 -07:00
Chase Bolt
7b5096f715
moving virtual domain usage into a use_virtual_aliases_domains block to mimic use_virtual_aliases
2014-08-20 13:46:03 -07:00
Chase Bolt
7fd9784867
adding the usage of virtual_domains along with other file types other than hash
2014-08-20 13:29:55 -07:00