Commit Graph

32 Commits

Author SHA1 Message Date
Felipe Zipitria
a28bd05b85
fix(deps): fixes ordering where postmap requires sane main.cf
Moved maps generation to config, and added dependency on main.cf generation. Solves centos8 problems.

Signed-off-by: Felipe Zipitria <fzipitria@perceptyx.com>
2020-06-07 23:35:20 -03:00
Felipe Zipitria
067bcf636f
fix(opensuse): fixes config files generation in opensuse
Signed-off-by: Felipe Zipitria <fzipitria@perceptyx.com>
2020-06-07 20:28:24 -03:00
Alexander Weidinger
75358e03e0 fix(service): restart service on package change
This also provides an ID to be used in a watch_in statement.
2019-07-25 22:15:57 +02:00
Andreas Thienemann
9281c79aec Fix table type for proxy tables
http://www.postfix.org/DATABASE_README.html#types specifies the lookup
table types postfix understands.

Most are defined as type:/path/to/table which is currently supported
by the postfix formula.

This does break though as soon as the proxy table type is used which is
a prefix to a normal table definition to indicate caching is requested.

This PR changes the code to discard the proxy prefix to ensure that the
usual logic applies again.
2018-10-07 13:48:13 +02:00
Andreas Thienemann
44210a1fe8 Reload postfix service by default.
The postfix service is currently being restarted whenever a
config item changes.
This is unnecessary as the postfix service can reload a new
config.

Set reload: True to prevent unnecessary restarts of the service.
The old behavior can be restored by setting the pillar key
reload_service to False.
2018-09-26 17:33:14 -07:00
Felipe Zipitria
7ede7609f7 Force batch in FreeBSD 2018-07-24 14:38:10 +01:00
Alexander Weidinger
f4a10a2843 re-enable Pillar postfix:aliases:content 2017-12-28 21:42:23 +01:00
Florian Ermisch
136e02a61c check for absolute file_paths for maps 2017-08-24 13:03:22 +02:00
Florian Ermisch
d51f60647a add optional context variable "colon" to mapping.j2 for aliases file 2017-08-24 13:03:10 +02:00
Florian Ermisch
099d84ab73 Template paths and groups to make them work on FreeBSD, too. 2017-08-24 13:02:46 +02:00
Heinz Wiesinger
e290d36699 Add option to manage mail aliases using alias states. 2017-05-08 16:55:14 +02:00
Gilles Dartiguelongue
961c1e10c4 Allow alias_database file type to be respected for running newaliases
See github issue #50.
2017-02-22 23:32:04 +01:00
Gilles Dartiguelongue
b2fc0f1c0b Add support for default_database_type configuration option
See github issue #50.
2016-12-29 12:34:11 +01:00
Gilles Dartiguelongue
7ce8798709 Run postmap on a specific set of file types
According to postfix documentation [1], only some types of file require running
postmap, others must be left alone.

See github issue #50.

[1] http://www.postfix.org/postmap.1.html
2016-12-29 11:33:44 +01:00
Gilles Dartiguelongue
4c780c184e Handle smtp/lmtp password maps file mode
Do not hardcode the key name, even if there is only two at the moment
2016-06-20 18:41:43 +02:00
Gilles Dartiguelongue
62ab827c34 Replace postmap_macro by generic handling of map files
Merge existing handling of postfix lookup table/map files into a single
template. Mappings are read from pillar in `postfix:mapping`.
Configuration is written to the file pointed to by the relevant
directive in `postfix:config`. A single target file is supported at the
moment. The file is postmap'ed if needed.

The pillar accepts a dict or an OrderedDict.
2016-06-20 18:41:43 +02:00
Forrest
d167e4fb13 Merge pull request #38 from danoe/relay_domains
manage relay_domains file from pillar
2016-05-19 11:42:37 -07:00
Daniel Oetken
ac7b5e1a8d option to make postfix service enabled or disabled 2016-05-18 19:29:37 +02:00
Daniel Oetken
8c4c5e7a0a manage relay_domains file from pillar 2016-05-18 18:38:46 +02:00
Gilles Dartiguelongue
81e9a4894a Do not leak passwords 2015-12-29 11:28:35 +01:00
Seth Miller
d702dd4e7f Fixing file mode bug in init.sls 2015-11-23 17:49:13 -06:00
Gilles Dartiguelongue
00d7bb582a Add a macro to deal with postmap'ed files, closes: #29 2015-10-02 23:12:37 +02:00
Scott Reid
9326095571 enable creation of smtp_sasl_password_maps file from pillar 2015-09-02 11:59:57 -07:00
Richard Clark
83c0a448fe - Fix virtual handling - can't just dump json to virtual
- Add in handling for sender_canonical
- Add examples to pillar
2015-08-31 16:34:51 -04:00
Gilles Dartiguelongue
197c85bc1c Simplify postfix package handling
It is only one package for all listed distributions.
2015-08-22 13:26:46 +02:00
Gilles Dartiguelongue
36f627aad8 Add support for using distribution's aliases 2015-08-22 12:14:21 +02:00
Marc Schiffbauer
6f85a25336 added map.jinja support 2015-02-26 16:19:08 +01:00
david
5c6b07869f add spf handling 2015-02-05 09:57:18 +01:00
Seth House
8c5a3adfe6 Change states to use short-dec style 2014-12-13 00:19:59 -07:00
skyler
755c7b64ba Make postfix.config state work with latest changes 2014-08-19 18:42:08 -07:00
David J. M. Karlsen
1fa5b49a10 extend template, shamelessly stolen from: http://russell.ballestrini.net/postfix-salt-state-formula/ 2014-04-23 21:02:09 +02:00
Thomas S Hatch
9a83284412 Add postfix install 2013-06-12 23:55:32 -06:00