|
| 1 | +# |
| 2 | +# vim: syntax=ruby:expandtab:shiftwidth=2:softtabstop=2:tabstop=2 |
| 3 | +# |
| 4 | +# Copyright (c) 2025-present, Meta Platforms, Inc. |
| 5 | +# Copyright (c) 2025-present, Phil Dibowitz |
| 6 | +# All rights reserved. |
| 7 | +# |
| 8 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 9 | +# you may not use this file except in compliance with the License. |
| 10 | +# You may obtain a copy of the License at |
| 11 | +# |
| 12 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | +# |
| 14 | +# Unless required by applicable law or agreed to in writing, software |
| 15 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | +# See the License for the specific language governing permissions and |
| 18 | +# limitations under the License. |
| 19 | +# |
| 20 | + |
| 21 | +rundir = '/run/opendkim' |
| 22 | + |
| 23 | +default['fb_opendkim'] = { |
| 24 | + 'manage_packages' => true, |
| 25 | + 'config' => { |
| 26 | + 'Syslog' => 'yes', |
| 27 | + 'SyslogSuccess' => 'yes', |
| 28 | + 'Canonicalization' => 'relaxed/simple', |
| 29 | + 'OversignHeaders' => 'From', |
| 30 | + 'UserID' => 'opendkim', |
| 31 | + 'UMask' => '007', |
| 32 | + 'Socket' => "local:#{rundir}/opendkim.sock", |
| 33 | + 'PidFile' => '/run/opendkim/opendkim.pid', |
| 34 | + 'TrustAnchorFile' => '/usr/share/dns/root.key', |
| 35 | + }, |
| 36 | + 'sysconfig' => { |
| 37 | + 'rundir' => '/run/opendkim', |
| 38 | + # if you specify a socket here, it'll override the config |
| 39 | + # since it's _required_ in the config, put it only there and |
| 40 | + # not here. |
| 41 | + 'user' => 'opendkim', |
| 42 | + 'group' => 'opendkim', |
| 43 | + 'pidfile' => '$RUNDIR/$NAME.pid', |
| 44 | + }, |
| 45 | +} |
0 commit comments