Skip to content

Commit 64b2a9c

Browse files
author
floria030
committed
the path for the dkim-keys is automaticly creaed by the server-plugin, the path could be empty in the interface, and the amavis-template for gentoo was updated
1 parent 738c3d4 commit 64b2a9c

27 files changed

+48
-43
lines changed

install/dist/tpl/gentoo/amavisd-ispconfig.conf.master

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,22 @@ $LOGFILE = "/var/log/amavis.log"; # (defaults to empty, no log)
9393
# Set the log_level to 5 for debugging
9494
$log_level = 0; # (defaults to 0)
9595

96+
$inet_socket_port = [10024,10026];
97+
$forward_method = 'smtp:[127.0.0.1]:10025';
98+
$notify_method = 'smtp:[127.0.0.1]:10027';
99+
$interface_policy{'10026'} = 'ORIGINATING';
100+
$policy_bank{'ORIGINATING'} = {
101+
originating => 1,
102+
smtpd_discard_ehlo_keywords => ['8BITMIME'],
103+
forward_method => 'smtp:[127.0.0.1]:10027',
104+
};
105+
@mynetworks = qw(0.0.0.0/8 127.0.0.0/8 10.0.0.0/8 172.16.0.0/12
106+
192.168.0.0/16);
107+
$signed_header_fields{'received'} = 0; # turn off signing of Received
108+
$enable_dkim_verification = 1;
109+
$enable_dkim_signing = 1;
110+
@dkim_signature_options_bysender_maps = (
111+
{ '.' => { ttl => 21*24*3600, c => 'relaxed/simple' } } );
96112

97113
#------------ Do not modify anything below this line -------------
98114
1; # insure a defined return

install/tpl/amavisd_user_config.master

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,18 @@ $LOGFILE = "/var/log/amavis.log"; # (defaults to empty, no log)
7575
# Set the log_level to 5 for debugging
7676
$log_level = 0; # (defaults to 0)
7777

78+
$inet_socket_port = [10024,10026];
79+
$forward_method = 'smtp:[127.0.0.1]:10025';
80+
$notify_method = 'smtp:[127.0.0.1]:10027';
81+
$interface_policy{'10026'} = 'ORIGINATING';
82+
$policy_bank{'ORIGINATING'} = {
83+
originating => 1,
84+
smtpd_discard_ehlo_keywords => ['8BITMIME'],
85+
forward_method => 'smtp:[127.0.0.1]:10027',
86+
};
87+
@mynetworks = qw(0.0.0.0/8 127.0.0.0/8 10.0.0.0/8 172.16.0.0/12
88+
192.168.0.0/16);
89+
7890
# DKIM
7991

8092
$enable_dkim_verification = 1;

interface/lib/classes/validate_dkim.inc.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,6 @@ function check_private_key($field_name, $field_value, $validator) {
5757
}
5858
}
5959

60-
61-
/**
62-
* Validator function for DKIM Path
63-
* @return boolean - true when the dkim-path exists and is writeable
64-
*/
65-
function check_dkim_path($field_name, $field_value, $validator) {
66-
if(empty($field_value)) return $this->get_error($validator['errmsg']);
67-
if (substr(sprintf('%o', fileperms($field_value)), -3) <= 600)
68-
return $this->get_error($validator['errmsg']);
69-
}
70-
71-
7260
/**
7361
* Check function for DNS-Template
7462
*/

interface/web/admin/form/server_config.tform.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -303,15 +303,19 @@
303303
'datatype' => 'VARCHAR',
304304
'formtype' => 'TEXT',
305305
'default' => '/var/lib/amavis/dkim',
306-
'validators' => array ( 0 => array ('type' => 'CUSTOM',
307-
'class' => 'validate_dkim',
308-
'function' => 'check_dkim_path',
309-
'errmsg'=> 'dkim_path_error'),
310-
),
311306
'value' => '',
312307
'width' => '40',
313308
'maxlength' => '255'
314309
),
310+
'relayhost_password' => array(
311+
'datatype' => 'VARCHAR',
312+
'formtype' => 'TEXT',
313+
'default' => '',
314+
'value' => '',
315+
'width' => '40',
316+
'maxlength' => '255'
317+
),
318+
315319
'pop3_imap_daemon' => array(
316320
'datatype' => 'VARCHAR',
317321
'formtype' => 'SELECT',

interface/web/admin/lib/lang/ar_server_config.lng

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ $wb['munin_password_txt'] = 'Munin Password';
190190
$wb['munin_url_error_regex'] = 'Invalid Munin URL';
191191
$wb['munin_url_note_txt'] = 'Placeholder:';
192192
$wb["dkim_path_txt"] = 'DKIM Path';
193-
$wb["dkim_path_error"] = 'DKIM Path not found or not writeable.';
194193
$wb['backup_delete_txt'] = 'Delete backups on domain/website delete';
195194
$wb["v6_prefix_txt"] = 'IPv6 Prefix';
196195
$wb["vhost_rewrite_v6_txt"] = 'Rewrite IPv6 on Mirror';

interface/web/admin/lib/lang/bg_server_config.lng

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ $wb['munin_password_txt'] = 'Munin Password';
190190
$wb['munin_url_error_regex'] = 'Invalid Munin URL';
191191
$wb['munin_url_note_txt'] = 'Placeholder:';
192192
$wb["dkim_path_txt"] = 'DKIM Path';
193-
$wb["dkim_path_error"] = 'DKIM Path not found or not writeable.';
194193
$wb['backup_delete_txt'] = 'Delete backups on domain/website delete';
195194
$wb["v6_prefix_txt"] = 'IPv6 Prefix';
196195
$wb["vhost_rewrite_v6_txt"] = 'Rewrite IPv6 on Mirror';

interface/web/admin/lib/lang/br_server_config.lng

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ $wb['munin_password_txt'] = 'Munin Password';
190190
$wb['munin_url_error_regex'] = 'Invalid Munin URL';
191191
$wb['munin_url_note_txt'] = 'Placeholder:';
192192
$wb["dkim_path_txt"] = 'DKIM Path';
193-
$wb["dkim_path_error"] = 'DKIM Path not found or not writeable.';
194193
$wb['backup_delete_txt'] = 'Delete backups on domain/website delete';
195194
$wb["v6_prefix_txt"] = 'IPv6 Prefix';
196195
$wb["vhost_rewrite_v6_txt"] = 'Rewrite IPv6 on Mirror';

interface/web/admin/lib/lang/cz_server_config.lng

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ $wb['monit_user_txt'] = 'Monit User';
184184
$wb['monit_password_txt'] = 'Monit Password';
185185
$wb['monit_url_error_regex'] = 'Invalid Monit URL';
186186
$wb["dkim_path_txt"] = 'DKIM Path';
187-
$wb["dkim_path_error"] = 'DKIM Path not found or not writeable.';
188187
$wb['backup_delete_txt'] = 'Delete backups on domain/website delete';
189188
$wb['monit_url_note_txt'] = 'Placeholder:';
190189
$wb['munin_url_txt'] = 'Munin URL';

interface/web/admin/lib/lang/de_server_config.lng

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ $wb['module_txt'] = 'Modul';
2020
$wb['maildir_path_txt'] = 'Maildir Pfad';
2121
$wb['homedir_path_txt'] = 'Homedir Pfad';
2222
$wb['dkim_path_txt'] = 'DKIM Pfad';
23-
$wb['dkim_path_error'] = 'DKIM Pfad nicht gefunden oder nicht beschreibbar.';
2423
$wb['mailuser_uid_txt'] = 'Mailbenutzer UID';
2524
$wb['mailuser_gid_txt'] = 'Mailbenutzer GID';
2625
$wb['mailuser_name_txt'] = 'Mailbenutzer Name';

interface/web/admin/lib/lang/en_server_config.lng

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ $wb["module_txt"] = 'Module';
3131
$wb["maildir_path_txt"] = 'Maildir Path';
3232
$wb["homedir_path_txt"] = 'Homedir Path';
3333
$wb["dkim_path_txt"] = 'DKIM Path';
34-
$wb["dkim_path_error"] = 'DKIM Path not found or not writeable.';
3534
$wb["mailuser_uid_txt"] = 'Mailuser UID';
3635
$wb["mailuser_gid_txt"] = 'Mailuser GID';
3736
$wb["mailuser_name_txt"] = 'Mailuser Name';

0 commit comments

Comments
 (0)