File tree Expand file tree Collapse file tree 3 files changed +33
-2
lines changed
Expand file tree Collapse file tree 3 files changed +33
-2
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ acl_check_rcpt:
134134
135135# Limit per email account for SMTP auhenticated users
136136 deny message = Email account $authenticated_id is sending too many emails - rate overlimit = $sender_rate / $sender_rate_period
137- set acl_c_msg_limit = ${if exists{/etc/exim4/domains/${lookup{$sender_address_domain}dsearch{/etc/exim4/domains/}}/limits} {${extract{1}{:}{${lookup{$sender_address_local_part@$sender_address_domain }lsearch{/etc/exim4/domains/${lookup{$sender_address_domain}dsearch{/etc/exim4/domains/}}/limits}}}}} {${readfile{/etc/exim4/limit.conf}}} }
137+ set acl_c_msg_limit = ${if exists{/etc/exim4/domains/${lookup{$sender_address_domain}dsearch{/etc/exim4/domains/}}/limits} {${extract{1}{:}{${lookup{$authenticated_id }lsearch{/etc/exim4/domains/${lookup{$sender_address_domain}dsearch{/etc/exim4/domains/}}/limits}}}}} {${readfile{/etc/exim4/limit.conf}}} }
138138 ratelimit = $acl_c_msg_limit / 1h / strict/ $authenticated_id
139139
140140 warn ratelimit = ${eval:$acl_c_msg_limit / 2} / 1h / strict / $authenticated_id
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ acl_check_rcpt:
138138
139139# Limit per email account for SMTP auhenticated users
140140 deny message = Email account $authenticated_id is sending too many emails - rate overlimit = $sender_rate / $sender_rate_period
141- set acl_c_msg_limit = ${if exists{/etc/exim4/domains/${lookup{$sender_address_domain}dsearch{/etc/exim4/domains/}}/limits} {${extract{1}{:}{${lookup{$sender_address_local_part@$sender_address_domain }lsearch{/etc/exim4/domains/${lookup{$sender_address_domain}dsearch{/etc/exim4/domains/}}/limits}}}}} {${readfile{/etc/exim4/limit.conf}}} }
141+ set acl_c_msg_limit = ${if exists{/etc/exim4/domains/${lookup{$sender_address_domain}dsearch{/etc/exim4/domains/}}/limits} {${extract{1}{:}{${lookup{$authenticated_id }lsearch{/etc/exim4/domains/${lookup{$sender_address_domain}dsearch{/etc/exim4/domains/}}/limits}}}}} {${readfile{/etc/exim4/limit.conf}}} }
142142 ratelimit = $acl_c_msg_limit / 1h / strict/ $authenticated_id
143143
144144 warn ratelimit = ${eval:$acl_c_msg_limit / 2} / 1h / strict / $authenticated_id
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Hestia Control Panel upgrade script for target version 1.6.0
4+
5+ # ######################################################################################
6+ # ###### Place additional commands below. #######
7+ # ######################################################################################
8+ # ###### Pass through information to the end user in case of a issue or problem #######
9+ # ###### #######
10+ # ###### Use add_upgrade_message "My message here" to include a message #######
11+ # ###### in the upgrade notification email. Example: #######
12+ # ###### #######
13+ # ###### add_upgrade_message "My message here" #######
14+ # ###### #######
15+ # ###### You can use \n within the string to create new lines. #######
16+ # ######################################################################################
17+
18+ upgrade_config_set_value ' UPGRADE_UPDATE_WEB_TEMPLATES' ' no'
19+ upgrade_config_set_value ' UPGRADE_UPDATE_DNS_TEMPLATES' ' no'
20+ upgrade_config_set_value ' UPGRADE_UPDATE_MAIL_TEMPLATES' ' no'
21+ upgrade_config_set_value ' UPGRADE_REBUILD_USERS' ' no'
22+ upgrade_config_set_value ' UPGRADE_UPDATE_FILEMANAGER_CONFIG' ' false'
23+
24+ # Fix exim rate limit send issue
25+ if [ " $MAIL_SYSTEM " = " exim4" ]; then
26+ acl=$( cat /etc/exim4/exim4.conf.template | grep ' ${extract{1}{:}{${lookup{$sender_address_local_part@$sender_address_domain}' )
27+ if [ ! -z " $acl " ]; then
28+ echo " [ * ] Fixed an issue with rate limits and alias mail addresses"
29+ sed -i ' s/${extract{1}{:}{${lookup{$sender_address_local_part@$sender_address_domain}/${extract{1}{:}{${lookup{$authenticated_id}/' /etc/exim4/exim4.conf.template
30+ fi
31+ fi
You can’t perform that action at this time.
0 commit comments