Skip to content

Commit 4e5e9b5

Browse files
author
Marius Cramer
committed
Merge branch 'master' into 'master'
add dkim to templates See merge request !210
2 parents e296394 + b1ae8f9 commit 4e5e9b5

File tree

3 files changed

+16
-11
lines changed

3 files changed

+16
-11
lines changed

install/dist/lib/fedora.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ public function configure_dovecot()
355355
exec ("postconf -M dovecot.unix", $out, $ret);
356356
$add_dovecot_service = @($out[0]=='')?true:false;
357357
} else { //* fallback - postfix < 2.9
358-
$content = rf($config_dir'/master.cf');
358+
$content = rf($config_dir.'/master.cf');
359359
$add_dovecot_service = @(!stristr($content, "dovecot/deliver"))?true:false;
360360
}
361361
if($add_dovecot_service) {

install/tpl/fedora_amavisd_conf.master

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ $nanny_details_level = 2; # nanny verbosity: 1: traditional, 2: detailed
4848

4949
@local_domains_maps = ( [".$mydomain"] ); # list of all local domains
5050

51-
@mynetworks = qw( 127.0.0.0/8 [::1] [FE80::]/10 [FEC0::]/10
51+
@mynetworks = qw( 00.0.0.0/8 127.0.0.0/8 [::1] [FE80::]/10 [FEC0::]/10
5252
10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 );
5353

5454
$unix_socketname = "$MYHOME/amavisd.sock"; # amavisd-release or amavis-milter
5555
# option(s) -p overrides $inet_socket_port and $unix_socketname
5656

57-
$inet_socket_port = 10024; # listen on this local TCP port(s)
58-
# $inet_socket_port = [10024,10026]; # listen on multiple TCP ports
57+
# $inet_socket_port = 10024; # listen on this local TCP port(s)
58+
$inet_socket_port = [10024,10026]; # listen on multiple TCP ports
5959

6060
$policy_bank{'MYNETS'} = { # mail originating from @mynetworks
6161
originating => 1, # is true in MYNETS by default, but let's make it explicit
@@ -146,8 +146,8 @@ $defang_by_ccat{+CC_BADH.",6"} = 1; # header field syntax error
146146

147147
# $myhostname = 'host.example.com'; # must be a fully-qualified domain name!
148148

149-
# $notify_method = 'smtp:[127.0.0.1]:10025';
150-
# $forward_method = 'smtp:[127.0.0.1]:10025'; # set to undef with milter!
149+
$notify_method = 'smtp:[127.0.0.1]:10027';
150+
$forward_method = 'smtp:[127.0.0.1]:10025'; # set to undef with milter!
151151

152152
# $os_fingerprint_method = 'p0f:127.0.0.1:2345'; # to query p0f-analyzer.pl
153153

@@ -786,4 +786,9 @@ $LOGFILE = "/var/log/amavis.log"; # (defaults to empty, no log)
786786
$log_level = 0; # (defaults to 0)
787787

788788

789+
$enable_dkim_verification = 1;
790+
$enable_dkim_signing = 1; # load DKIM signing code
791+
$signed_header_fields{'received'} = 0; # turn off signing of Received
792+
@dkim_signature_options_bysender_maps = (
793+
{ '.' => { ttl => 21*24*3600, c => 'relaxed/simple' } } );
789794
1; # insure a defined return

install/tpl/opensuse_amavisd_conf.master

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ $nanny_details_level = 2; # nanny verbosity: 1: traditional, 2: detailed
4848

4949
@local_domains_maps = ( [".$mydomain"] ); # list of all local domains
5050

51-
@mynetworks = qw( 127.0.0.0/8 [::1] [FE80::]/10 [FEC0::]/10
51+
@mynetworks = qw( 0.0.0.0/8 127.0.0.0/8 [::1] [FE80::]/10 [FEC0::]/10
5252
10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 );
5353

5454
$unix_socketname = "$MYHOME/amavisd.sock"; # amavisd-release or amavis-milter
5555
# option(s) -p overrides $inet_socket_port and $unix_socketname
5656

57-
$inet_socket_port = 10024; # listen on this local TCP port(s)
58-
# $inet_socket_port = [10024,10026]; # listen on multiple TCP ports
57+
#$inet_socket_port = 10024; # listen on this local TCP port(s)
58+
$inet_socket_port = [10024,10026]; # listen on multiple TCP ports
5959

6060
$policy_bank{'MYNETS'} = { # mail originating from @mynetworks
6161
originating => 1, # is true in MYNETS by default, but let's make it explicit
@@ -145,8 +145,8 @@ $defang_by_ccat{+CC_BADH.",6"} = 1; # header field syntax error
145145

146146
$myhostname = 'linux-jfp8.site';
147147

148-
# $notify_method = 'smtp:[127.0.0.1]:10025';
149-
# $forward_method = 'smtp:[127.0.0.1]:10025'; # set to undef with milter!
148+
$notify_method = 'smtp:[127.0.0.1]:10027';
149+
$forward_method = 'smtp:[127.0.0.1]:10025'; # set to undef with milter!
150150

151151
# $final_virus_destiny = D_DISCARD;
152152
# $final_banned_destiny = D_BOUNCE;

0 commit comments

Comments
 (0)