<commit_before>include_recipe 'postfix::vanilla'

%w{ libsasl2-2 sasl2-bin }.each do |p|
    package p
end

directory '/var/spool/postfix/var/run/saslauthd' do
    recursive true
end

link '/var/spool/postfix/var/run/saslauthd/mux' do
    to '/run/saslauthd/mux'
end

service 'saslauthd' do
    action [:enable, :start]
end

template '/etc/default/saslauthd' do
    mode '644'
    notifies :restart, 'service[saslauthd]'
end

template '/etc/postfix/sasl/smtpd.conf' do
    mode '644'
    notifies :restart, 'service[postfix]'
end<commit_msg>when using saslauthd postfix has to be in the group sasl to use the socket<commit_after>include_recipe 'postfix::vanilla'

%w{ libsasl2-2 sasl2-bin }.each do |p|
    package p
end

directory '/var/spool/postfix/var/run/saslauthd' do
    recursive true
end

link '/var/spool/postfix/var/run/saslauthd/mux' do
    to '/run/saslauthd/mux'
end

service 'saslauthd' do
    action [:enable, :start]
end

template '/etc/default/saslauthd' do
    mode '644'
    notifies :restart, 'service[saslauthd]'
end

template '/etc/postfix/sasl/smtpd.conf' do
    mode '644'
    notifies :restart, 'service[postfix]'
end

group 'sasl' do
    action :modify
    members 'postfix'
    append true
    notifies :restart, 'service[postfix]'
end
{'fraction_non_alphanumeric': 0.1227236737925574, 'fraction_numerical': 0.014251781472684086, 'mean_word_length': 3.6988847583643123, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '748260', 'n_tokens_mistral': 529, 'n_tokens_neox': 515, 'n_words': 122}