Correction of number of recipients

This commit is contained in:
myvesta 2020-08-23 18:44:22 +02:00 committed by GitHub
commit 83a643dbd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -187,7 +187,7 @@ if [ ! -f "/usr/local/vesta/data/upgrades/limit_max_recipients" ]; then
if [ "$check_grep" -eq 0 ]; then
echo "=== Limit max recipients per email to 15, in order to prevent mass spamming"
FIND="acl_smtp_mime = acl_check_mime"
REPLACE="recipients_max = 2\nrecipients_max_reject = true"
REPLACE="recipients_max = 15\nrecipients_max_reject = true"
sed -i "s#$FIND#$FIND\n\n$REPLACE#g" /etc/exim4/exim4.conf.template
systemctl restart exim4
fi