Skip to content

Commit 80d3a53

Browse files
author
Marius Burkard
committed
Merge branch '6346-send-email-to-reseller-when-quota-is-reached' into 'develop'
Resolve "Send email to reseller when quota is reached" Closes #6346 See merge request ispconfig/ispconfig3!1608
2 parents 401fb92 + 323428f commit 80d3a53

30 files changed

+218
-7
lines changed

install/tpl/server.ini.master

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ mailbox_quota_stats=y
6060
realtime_blackhole_list=zen.spamhaus.org
6161
overquota_notify_threshold=90
6262
overquota_notify_admin=y
63+
overquota_notify_reseller=y
6364
overquota_notify_client=y
6465
overquota_notify_freq=7
6566
overquota_notify_onok=n
@@ -103,6 +104,7 @@ enable_sni=y
103104
skip_le_check=n
104105
enable_ip_wildcard=y
105106
overtraffic_notify_admin=y
107+
overtraffic_notify_reseller=y
106108
overtraffic_notify_client=y
107109
nginx_cgi_socket=/var/run/fcgiwrap.socket
108110
php_fpm_init_script=php5-fpm
@@ -121,10 +123,12 @@ php_ini_check_minutes=1
121123
overtraffic_disable_web=y
122124
overquota_notify_threshold=90
123125
overquota_notify_admin=y
126+
overquota_notify_reseller=y
124127
overquota_notify_client=y
125128
overquota_notify_freq=7
126129
overquota_db_notify_threshold=90
127130
overquota_db_notify_admin=y
131+
overquota_db_notify_reseller=y
128132
overquota_db_notify_client=y
129133
overquota_notify_onok=n
130134
logging=yes

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,12 @@
758758
'default' => 'y',
759759
'value' => array(0 => 'n', 1 => 'y')
760760
),
761+
'overquota_notify_reseller' => array(
762+
'datatype' => 'VARCHAR',
763+
'formtype' => 'CHECKBOX',
764+
'default' => 'y',
765+
'value' => array(0 => 'n', 1 => 'y')
766+
),
761767
'overquota_notify_client' => array(
762768
'datatype' => 'VARCHAR',
763769
'formtype' => 'CHECKBOX',
@@ -1082,6 +1088,12 @@
10821088
'default' => 'y',
10831089
'value' => array(0 => 'n', 1 => 'y')
10841090
),
1091+
'overtraffic_notify_reseller' => array(
1092+
'datatype' => 'VARCHAR',
1093+
'formtype' => 'CHECKBOX',
1094+
'default' => 'y',
1095+
'value' => array(0 => 'n', 1 => 'y')
1096+
),
10851097
'overtraffic_notify_client' => array(
10861098
'datatype' => 'VARCHAR',
10871099
'formtype' => 'CHECKBOX',
@@ -1112,6 +1124,12 @@
11121124
'default' => 'y',
11131125
'value' => array(0 => 'n', 1 => 'y')
11141126
),
1127+
'overquota_notify_reseller' => array(
1128+
'datatype' => 'VARCHAR',
1129+
'formtype' => 'CHECKBOX',
1130+
'default' => 'y',
1131+
'value' => array(0 => 'n', 1 => 'y')
1132+
),
11151133
'overquota_notify_client' => array(
11161134
'datatype' => 'VARCHAR',
11171135
'formtype' => 'CHECKBOX',
@@ -1136,6 +1154,12 @@
11361154
'default' => 'y',
11371155
'value' => array(0 => 'n', 1 => 'y')
11381156
),
1157+
'overquota_db_notify_reseller' => array(
1158+
'datatype' => 'VARCHAR',
1159+
'formtype' => 'CHECKBOX',
1160+
'default' => 'y',
1161+
'value' => array(0 => 'n', 1 => 'y')
1162+
),
11391163
'overquota_db_notify_client' => array(
11401164
'datatype' => 'VARCHAR',
11411165
'formtype' => 'CHECKBOX',

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,14 @@ $wb['mailbox_quota_stats_txt'] = 'Mailbox quota statistics';
192192
$wb['enable_ip_wildcard_txt'] = 'Enable IP wildcard (*)';
193193
$wb['web_folder_protection_txt'] = 'Make web folders immutable (extended attributes)';
194194
$wb['overtraffic_notify_admin_txt'] = 'Send overtraffic notification to admin';
195+
$wb['overtraffic_notify_reseller_txt'] = 'Send overtraffic notification to reseller';
195196
$wb['overtraffic_notify_client_txt'] = 'Send overtraffic notification to client';
196197
$wb['overtraffic_disable_web_txt'] = 'Disable websites that exceed traffic limit';
197198
$wb['rbl_error_regex'] = 'Please specify valid RBL hostnames.';
198199
$wb['overquota_notify_threshold_txt'] = 'Quota warning usage level';
199200
$wb['overquota_notify_threshold_error'] = 'Quota warning usage level must be between 0-100%';
200201
$wb['overquota_notify_admin_txt'] = 'Send quota warnings to admin';
202+
$wb['overquota_notify_reseller_txt'] = 'Send quota warnings to reseller';
201203
$wb['overquota_notify_client_txt'] = 'Send quota warnings to client';
202204
$wb['overquota_notify_onok_txt'] = 'Send quota ok message to client';
203205
$wb['overquota_notify_freq_txt'] = 'Send quota warning each X days';
@@ -279,6 +281,7 @@ $wb['do_not_try_rescue_mongodb_txt'] = 'Disable MongoDB monitoring';
279281
$wb['backup_dir_mount_cmd_txt'] = 'Mount command, if backup directory not mounted';
280282
$wb['overquota_db_notify_threshold_txt'] = 'DB quota warning usage level';
281283
$wb['overquota_db_notify_admin_txt'] = 'Send DB quota warnings to admin';
284+
$wb['overquota_db_notify_reseller_txt'] = 'Send DB quota warnings to reseller';
282285
$wb['overquota_db_notify_client_txt'] = 'Send DB quota warnings to client';
283286
$wb['php_handler_txt'] = 'Default PHP Handler';
284287
$wb['php_fpm_default_chroot_txt'] = 'Default chrooted PHP-FPM';

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,14 @@ $wb['web_folder_protection_txt'] = 'Make web folders immutable (extended attribu
192192
$wb['website_autoalias_txt'] = 'Website auto alias';
193193
$wb['website_autoalias_note_txt'] = 'Placeholders:';
194194
$wb['overtraffic_notify_admin_txt'] = 'Send overtraffic notification to admin';
195+
$wb['overtraffic_notify_reseller_txt'] = 'Send overtraffic notification to reseller';
195196
$wb['overtraffic_notify_client_txt'] = 'Send overtraffic notification to client';
196197
$wb['overtraffic_disable_web_txt'] = 'Disable websites that exceed traffic limit';
197198
$wb['rbl_error_regex'] = 'Please specify valid RBL hostnames.';
198199
$wb['overquota_notify_threshold_txt'] = 'Quota warning usage level';
199200
$wb['overquota_notify_threshold_error'] = 'Quota warning usage level must be between 0-100%';
200201
$wb['overquota_notify_admin_txt'] = 'Send quota warnings to admin';
202+
$wb['overquota_notify_reseller_txt'] = 'Send quota warnings to reseller';
201203
$wb['overquota_notify_client_txt'] = 'Send quota warnings to client';
202204
$wb['overquota_notify_onok_txt'] = 'Send quota ok message to client';
203205
$wb['overquota_notify_freq_txt'] = 'Send quota warning each X days';
@@ -279,6 +281,7 @@ $wb['do_not_try_rescue_mongodb_txt'] = 'Disable MongoDB monitoring';
279281
$wb['backup_dir_mount_cmd_txt'] = 'Mount command, if backup directory not mounted';
280282
$wb['overquota_db_notify_threshold_txt'] = 'DB quota warning usage level';
281283
$wb['overquota_db_notify_admin_txt'] = 'Send DB quota warnings to admin';
284+
$wb['overquota_db_notify_reseller_txt'] = 'Send DB quota warnings to reseller';
282285
$wb['overquota_db_notify_client_txt'] = 'Send DB quota warnings to client';
283286
$wb['php_handler_txt'] = 'Default PHP Handler';
284287
$wb['php_fpm_default_chroot_txt'] = 'Default chrooted PHP-FPM';

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,14 @@ $wb['mailbox_quota_stats_txt'] = 'Estatísticas das cotas para contas de email';
199199
$wb['enable_ip_wildcard_txt'] = 'Habilitar curingas IP (*)';
200200
$wb['web_folder_protection_txt'] = 'Tornar pastas Web imutáveis (atributos estendidos)';
201201
$wb['overtraffic_notify_admin_txt'] = 'Enviar notificação de tráfego excedido para o administrador';
202+
$wb['overtraffic_notify_reseller_txt'] = 'Send overtraffic notification to reseller';
202203
$wb['overtraffic_notify_client_txt'] = 'Enviar notificação de tráfego excedido para o cliente';
203204
$wb['overtraffic_disable_web_txt'] = 'Disable websites that exceed traffic limit';
204205
$wb['rbl_error_regex'] = 'Por favor, insira nomes de host válidos para RBLs.';
205206
$wb['overquota_notify_threshold_txt'] = 'Quota warning usage level';
206207
$wb['overquota_notify_threshold_error'] = 'Quota warning usage level must be between 0-100%';
207208
$wb['overquota_notify_admin_txt'] = 'Enviar alerta da cota para o administrador';
209+
$wb['overquota_notify_reseller_txt'] = 'Send quota warnings to reseller';
208210
$wb['overquota_notify_client_txt'] = 'Enviar alerta da cota para o cliente';
209211
$wb['overquota_notify_onok_txt'] = 'Enviar mensagem da cota para o cliente';
210212
$wb['overquota_notify_freq_txt'] = 'Enviar alerta da cota a cada N dias';
@@ -229,6 +231,7 @@ $wb['backup_dir_mount_cmd_txt'] = 'Comando mount, se o diretório não está mon
229231
$wb['backup_delete_txt'] = 'Remover backups de domínios/site';
230232
$wb['overquota_db_notify_threshold_txt'] = 'DB quota warning usage level';
231233
$wb['overquota_db_notify_admin_txt'] = 'Enviar alerta da cota do Banco de Dados para o administrador';
234+
$wb['overquota_db_notify_reseller_txt'] = 'Send DB quota warnings to reseller';
232235
$wb['overquota_db_notify_client_txt'] = 'Enviar alerta da cota do Banco de Dados para o cliente';
233236
$wb['monitor_system_updates_txt'] = 'Verificar por atualizações do sistema';
234237
$wb['php_handler_txt'] = 'Manipulador padrão PHP';

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,14 @@ $wb['mailbox_quota_stats_txt'] = 'Mailbox quota statistics';
195195
$wb['enable_ip_wildcard_txt'] = 'Enable IP wildcard (*)';
196196
$wb['web_folder_protection_txt'] = 'Make web folders immutable (extended attributes)';
197197
$wb['overtraffic_notify_admin_txt'] = 'Send overtraffic notification to admin';
198+
$wb['overtraffic_notify_reseller_txt'] = 'Send overtraffic notification to reseller';
198199
$wb['overtraffic_notify_client_txt'] = 'Send overtraffic notification to client';
199200
$wb['overtraffic_disable_web_txt'] = 'Disable websites that exceed traffic limit';
200201
$wb['rbl_error_regex'] = 'Please specify valid RBL hostnames.';
201202
$wb['overquota_notify_threshold_txt'] = 'Quota warning usage level';
202203
$wb['overquota_notify_threshold_error'] = 'Quota warning usage level must be between 0-100%';
203204
$wb['overquota_notify_admin_txt'] = 'Send quota warnings to admin';
205+
$wb['overquota_notify_reseller_txt'] = 'Send quota warnings to reseller';
204206
$wb['overquota_notify_client_txt'] = 'Send quota warnings to client';
205207
$wb['overquota_notify_onok_txt'] = 'Send quota ok message to client';
206208
$wb['overquota_notify_freq_txt'] = 'Send quota warning each X days';
@@ -225,6 +227,7 @@ $wb['backup_dir_mount_cmd_txt'] = 'Mount command, if backup directory not mounte
225227
$wb['backup_delete_txt'] = 'Delete backups on domain/website delete';
226228
$wb['overquota_db_notify_threshold_txt'] = 'DB quota warning usage level';
227229
$wb['overquota_db_notify_admin_txt'] = 'Send DB quota warnings to admin';
230+
$wb['overquota_db_notify_reseller_txt'] = 'Send DB quota warnings to reseller';
228231
$wb['overquota_db_notify_client_txt'] = 'Send DB quota warnings to client';
229232
$wb['monitor_system_updates_txt'] = 'Check for Linux updates';
230233
$wb['php_handler_txt'] = 'Default PHP Handler';

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,14 @@ $wb['mailbox_quota_stats_txt'] = 'Statistika kvóty poštovní schránky';
178178
$wb['enable_ip_wildcard_txt'] = 'Aktivovat IP wildcard (*)';
179179
$wb['web_folder_protection_txt'] = 'Make web folders immutable (extended attributes)';
180180
$wb['overtraffic_notify_admin_txt'] = 'Při překročení limitu přenesených dat, poslat oznámení adminovi';
181+
$wb['overtraffic_notify_reseller_txt'] = 'Send overtraffic notification to reseller';
181182
$wb['overtraffic_notify_client_txt'] = 'Při překročení limitu přenesených dat, poslat oznámení klientovi';
182183
$wb['overtraffic_disable_web_txt'] = 'Disable websites that exceed traffic limit';
183184
$wb['rbl_error_regex'] = 'Please specify valid RBL hostnames.';
184185
$wb['overquota_notify_threshold_txt'] = 'Quota warning usage level';
185186
$wb['overquota_notify_threshold_error'] = 'Quota warning usage level must be between 0-100%';
186187
$wb['overquota_notify_admin_txt'] = 'Poslat varování o překročení nebo vyčerpání kvót adminovi';
188+
$wb['overquota_notify_reseller_txt'] = 'Send quota warnings to reseller';
187189
$wb['overquota_notify_client_txt'] = 'Poslat varování o překročení nebo vyčerpání kvót klientovi';
188190
$wb['overquota_notify_onok_txt'] = 'Poslat zprávu klientovi, že kvóta je již v pořádku';
189191
$wb['overquota_notify_freq_txt'] = 'Poslat varování o kvótách každý X dní';
@@ -275,6 +277,7 @@ $wb['backup_dir_mount_cmd_txt'] = 'Mount command, if backup directory not mounte
275277
$wb['backup_delete_txt'] = 'Odstranit zálohy pokud byla smazána doména/webové stránky';
276278
$wb['overquota_db_notify_threshold_txt'] = 'DB quota warning usage level';
277279
$wb['overquota_db_notify_admin_txt'] = 'Poslat varování o překročení nebo vyčerpání DB kvót adminovi';
280+
$wb['overquota_db_notify_reseller_txt'] = 'Send DB quota warnings to reseller';
278281
$wb['overquota_db_notify_client_txt'] = 'Poslat varování o překročení nebo vyčerpání DB kvót klientovi';
279282
$wb['php_handler_txt'] = 'Výchozí PHP obslužná rutina';
280283
$wb['php_fpm_default_chroot_txt'] = 'Default chrooted PHP-FPM';

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,14 @@ $wb['mailbox_quota_stats_txt'] = 'E-Mailkonto Beschränkung Statistiken';
198198
$wb['enable_ip_wildcard_txt'] = 'IP Adressen Wildcard (*) aktivieren';
199199
$wb['web_folder_protection_txt'] = 'Webverzeichnis unveränderlich machen (erweiterte Attribute)';
200200
$wb['overtraffic_notify_admin_txt'] = 'Überschreiten des Datentransfer Limits an den Administrator senden';
201+
$wb['overtraffic_notify_reseller_txt'] = 'Send overtraffic notification to reseller';
201202
$wb['overtraffic_notify_client_txt'] = 'Überschreiten des Datentransfer Limits an den Kunden senden';
202203
$wb['overtraffic_disable_web_txt'] = 'Disable websites that exceed traffic limit';
203204
$wb['rbl_error_regex'] = 'Bitte geben Sie gültige RBL-Hostnamen an.';
204205
$wb['overquota_notify_threshold_txt'] = 'Quota warning usage level';
205206
$wb['overquota_notify_threshold_error'] = 'Quota warning usage level must be between 0-100%';
206207
$wb['overquota_notify_admin_txt'] = 'Quota-Warnungen an den Administrator senden';
208+
$wb['overquota_notify_reseller_txt'] = 'Send quota warnings to reseller';
207209
$wb['overquota_notify_client_txt'] = 'Quota-Warnungen an den Kunden senden';
208210
$wb['overquota_notify_onok_txt'] = 'Meldung an den Kunden senden, wenn Belegung wieder ok';
209211
$wb['overquota_notify_freq_txt'] = 'Quota-Warnung alle X Tage versenden';
@@ -282,6 +284,7 @@ $wb['cron_wget_error_regex'] = 'Invalid cron wget path.';
282284
$wb['network_filesystem_txt'] = 'Netzwerk-Dateisystem';
283285
$wb['overquota_db_notify_threshold_txt'] = 'DB quota warning usage level';
284286
$wb['overquota_db_notify_admin_txt'] = 'Datenbank-Quota-Warnungen an den Administrator senden';
287+
$wb['overquota_db_notify_reseller_txt'] = 'Send DB quota warnings to reseller';
285288
$wb['overquota_db_notify_client_txt'] = 'Datenbank-Quota-Warnungen an den Kunden senden';
286289
$wb['php_ini_check_minutes_txt'] = 'Prüfe php.ini alle X Minuten auf Änderungen';
287290
$wb['php_ini_check_minutes_error_empty'] = 'Bitte geben Sie einen Wert an, wie oft die php.ini auf Änderungen geprüft werden soll.';

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,14 @@ $wb['mailbox_quota_stats_txt'] = 'Postboks kvota statistik';
181181
$wb['enable_ip_wildcard_txt'] = 'Enable IP wildcard (*)';
182182
$wb['web_folder_protection_txt'] = 'Gør web mapper immume (udvidede attributter)';
183183
$wb['overtraffic_notify_admin_txt'] = 'Send over-trafik meddelelse til admin';
184+
$wb['overtraffic_notify_reseller_txt'] = 'Send overtraffic notification to reseller';
184185
$wb['overtraffic_notify_client_txt'] = 'Send over-trafik meddelelse til kunde';
185186
$wb['overtraffic_disable_web_txt'] = 'Disable websites that exceed traffic limit';
186187
$wb['rbl_error_regex'] = 'Angiv gyldige RBL værtsnavne.';
187188
$wb['overquota_notify_threshold_txt'] = 'Quota warning usage level';
188189
$wb['overquota_notify_threshold_error'] = 'Quota warning usage level must be between 0-100%';
189190
$wb['overquota_notify_admin_txt'] = 'Send kvote advarsler til admin';
191+
$wb['overquota_notify_reseller_txt'] = 'Send quota warnings to reseller';
190192
$wb['overquota_notify_client_txt'] = 'Send kvote advarsler til kunde';
191193
$wb['overquota_notify_onok_txt'] = 'Send kvote ok meddelelse til kunde';
192194
$wb['overquota_notify_freq_txt'] = 'Send kvote advarsler X dage';
@@ -278,6 +280,7 @@ $wb['backup_dir_mount_cmd_txt'] = 'Mount command, if backup directory not mounte
278280
$wb['backup_delete_txt'] = 'Delete backups on domain/website delete';
279281
$wb['overquota_db_notify_threshold_txt'] = 'DB quota warning usage level';
280282
$wb['overquota_db_notify_admin_txt'] = 'Send DB quota warnings to admin';
283+
$wb['overquota_db_notify_reseller_txt'] = 'Send DB quota warnings to reseller';
281284
$wb['overquota_db_notify_client_txt'] = 'Send DB quota warnings to client';
282285
$wb['php_handler_txt'] = 'Default PHP Handler';
283286
$wb['php_fpm_default_chroot_txt'] = 'Default chrooted PHP-FPM';

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,14 @@ $wb['mailbox_quota_stats_txt'] = 'Mailbox quota statistics';
192192
$wb['enable_ip_wildcard_txt'] = 'Enable IP wildcard (*)';
193193
$wb['web_folder_protection_txt'] = 'Make web folders immutable (extended attributes)';
194194
$wb['overtraffic_notify_admin_txt'] = 'Send overtraffic notification to admin';
195+
$wb['overtraffic_notify_reseller_txt'] = 'Send overtraffic notification to reseller';
195196
$wb['overtraffic_notify_client_txt'] = 'Send overtraffic notification to client';
196197
$wb['overtraffic_disable_web_txt'] = 'Disable websites that exceed traffic limit';
197198
$wb['rbl_error_regex'] = 'Please specify valid RBL hostnames.';
198199
$wb['overquota_notify_threshold_txt'] = 'Quota warning usage level';
199200
$wb['overquota_notify_threshold_error'] = 'Quota warning usage level must be between 0-100%';
200201
$wb['overquota_notify_admin_txt'] = 'Send quota warnings to admin';
202+
$wb['overquota_notify_reseller_txt'] = 'Send quota warnings to reseller';
201203
$wb['overquota_notify_client_txt'] = 'Send quota warnings to client';
202204
$wb['overquota_notify_onok_txt'] = 'Send quota ok message to client';
203205
$wb['overquota_notify_freq_txt'] = 'Send quota warning each X days';
@@ -279,6 +281,7 @@ $wb['backup_dir_mount_cmd_txt'] = 'Mount command, if backup directory not mounte
279281
$wb['backup_delete_txt'] = 'Delete backups on domain/website delete';
280282
$wb['overquota_db_notify_threshold_txt'] = 'DB quota warning usage level';
281283
$wb['overquota_db_notify_admin_txt'] = 'Send DB quota warnings to admin';
284+
$wb['overquota_db_notify_reseller_txt'] = 'Send DB quota warnings to reseller';
282285
$wb['overquota_db_notify_client_txt'] = 'Send DB quota warnings to client';
283286
$wb['php_handler_txt'] = 'Default PHP Handler';
284287
$wb['php_fpm_default_chroot_txt'] = 'Default chrooted PHP-FPM';

0 commit comments

Comments
 (0)