mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
Fixing Roundcube to send via authenticated SMTP user instead via php
This commit is contained in:
parent
95a8046e60
commit
fb5a3da3de
1 changed files with 9 additions and 0 deletions
|
@ -198,6 +198,15 @@ if [ ! -f "/usr/local/vesta/data/upgrades/limit_max_recipients" ]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
# Fixing Roundcube to send via authenticated SMTP user instead via php
|
||||
if [ ! -f "/usr/local/vesta/data/upgrades/roundcube_smtp_auth" ]; then
|
||||
touch /usr/local/vesta/data/upgrades/roundcube_smtp_auth
|
||||
if [ -f "/etc/roundcube/defaults.inc.php" ]; then
|
||||
echo "=== Fixing Roundcube to send via authenticated SMTP user instead via php"
|
||||
sed -i "s#^\$config\['smtp_user'\].*#\$config\['smtp_user'\] = '%u';#g" /etc/roundcube/defaults.inc.php
|
||||
sed -i "s#^\$config\['smtp_pass'\].*#\$config\['smtp_pass'\] = '%p';#g" /etc/roundcube/defaults.inc.php
|
||||
fi
|
||||
fi
|
||||
|
||||
# Run custom triggers
|
||||
if [ -x "/root/vesta-patch.sh" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue