<commit_before>#
# Cookbook Name:: postfix
# Attributes:: default
#
# Author:: <NAME> (<<EMAIL>>)
#
# Copyright 2013, <NAME>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

default['postfix']['base_dir'] = '/etc/postfix'

default['postfix']['main'] = {}
default['postfix']['main']['myhostname'] = node['fqdn']
default['postfix']['main']['mydomain'] = node['domain']
default['postfix']['main']['myorigin'] = '/etc/mailname'


default['postfix']['tables'] = {}


# default['postfix']['master'] for master.cf
default['postfix']['master'] = {}
default['postfix']['master']['inet:smtp'  ] = { :private => false, :command => 'smtpd' }
default['postfix']['master']['fifo:pickup'] = { :private => false, :wakeup => 60, :maxproc => 1 }
default['postfix']['master']['cleanup'    ] = { :private => false, :maxproc => 0 }
default['postfix']['master']['fifo:qmgr'  ] = { :private => false, :chroot => false, :wakeup => 300, :maxproc => 1 }
default['postfix']['master']['tlsmgr'     ] = { :wakeup => '1000?', :maxproc => 1 }
default['postfix']['master']['rewrite'    ][:command] = 'trivial-rewrite'
default['postfix']['master']['bounce'     ][:maxproc] = 0
default['postfix']['master']['defer'      ] = { :maxproc => 0, :command => 'bounce' }
default['postfix']['master']['trace'      ] = { :maxproc => 0, :command => 'bounce' }
default['postfix']['master']['verify'     ][:maxproc] = 1
default['postfix']['master']['flush'      ] = { :wakeup => '1000?', :maxproc => 0 }
default['postfix']['master']['proxymap'   ][:chroot] = false
default['postfix']['master']['proxywrite' ] = { :chroot => false, :command => 'proxymap' }
default['postfix']['master']['smtp'       ] = {}
default['postfix']['master']['relay'      ][:command] = 'smtp'
default['postfix']['master']['showq'      ][:private] = false
default['postfix']['master']['error'      ] = {}
default['postfix']['master']['retry'      ][:command] = 'error'
default['postfix']['master']['discard'    ] = {}
default['postfix']['master']['local'      ] = { :unpriv => false, :chroot => false }
default['postfix']['master']['virtual'    ] = { :unpriv => false, :chroot => false }
default['postfix']['master']['lmtp'       ] = {}
default['postfix']['master']['anvil'      ][:maxproc] = 1
default['postfix']['master']['scache'     ][:maxproc] = 1<commit_msg>attributes: define master services in a consistent way<commit_after>#
# Cookbook Name:: postfix
# Attributes:: default
#
# Author:: <NAME> (<<EMAIL>>)
#
# Copyright 2013, <NAME>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

default['postfix']['base_dir'] = '/etc/postfix'

default['postfix']['main'] = {}
default['postfix']['main']['myhostname'] = node['fqdn']
default['postfix']['main']['mydomain'] = node['domain']
default['postfix']['main']['myorigin'] = '/etc/mailname'


default['postfix']['tables'] = {}


# default['postfix']['master'] for master.cf
default['postfix']['master'] = {}
default['postfix']['master']['inet:smtp'  ] = { :private => false, :command => 'smtpd' }
default['postfix']['master']['fifo:pickup'] = { :private => false, :wakeup => 60, :maxproc => 1 }
default['postfix']['master']['cleanup'    ] = { :private => false, :maxproc => 0 }
default['postfix']['master']['fifo:qmgr'  ] = { :private => false, :chroot => false, :wakeup => 300, :maxproc => 1 }
default['postfix']['master']['tlsmgr'     ] = { :wakeup => '1000?', :maxproc => 1 }
default['postfix']['master']['rewrite'    ] = { :command => 'trivial-rewrite' }
default['postfix']['master']['bounce'     ] = { :maxproc => 0 }
default['postfix']['master']['defer'      ] = { :maxproc => 0, :command => 'bounce' }
default['postfix']['master']['trace'      ] = { :maxproc => 0, :command => 'bounce' }
default['postfix']['master']['verify'     ] = { :maxproc => 1 }
default['postfix']['master']['flush'      ] = { :wakeup => '1000?', :maxproc => 0 }
default['postfix']['master']['proxymap'   ] = { :chroot => false }
default['postfix']['master']['proxywrite' ] = { :chroot => false, :command => 'proxymap' }
default['postfix']['master']['smtp'       ] = {}
default['postfix']['master']['relay'      ] = { :command =>  'smtp' }
default['postfix']['master']['showq'      ] = { :private =>  false }
default['postfix']['master']['error'      ] = {}
default['postfix']['master']['retry'      ] = { :command => 'error' }
default['postfix']['master']['discard'    ] = {}
default['postfix']['master']['local'      ] = { :unpriv => false, :chroot => false }
default['postfix']['master']['virtual'    ] = { :unpriv => false, :chroot => false }
default['postfix']['master']['lmtp'       ] = {}
default['postfix']['master']['anvil'      ] = { :maxproc => 1 }
default['postfix']['master']['scache'     ] = { :maxproc => 1 }
{'fraction_non_alphanumeric': 0.23304562268803947, 'fraction_numerical': 0.011273559978862075, 'mean_word_length': 5.267108167770419, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 70, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6137999', 'n_tokens_mistral': 1811, 'n_tokens_neox': 1754, 'n_words': 398}