Answer the question
In order to leave comments, you need to log in
How to properly configure sending mail to cron for multisite?
Hello!
Input data:
VM Bitrix - 7.4.12
Main site - ext_kernel (site_master)
Additional site (mirror) - link (site_mirror) to the main one, one database, etc., minor visual changes.
Extract from dbconn.php
...
define("BX_CRONTAB_SUPPORT", true);
...
# smtp account configuration for site_master
account site_master
logfile /home/bitrix/msmtp_site_master.log
host smtp.yandex.ru
port 587
from почта@некий_домен
aliases /etc/aliases
keepbcc off
auth on
user некий_пользователь
password некий_пароль
tls on
tls_certcheck off
tls_starttls on
# smtp account configuration for site_mirror
account site_mirror
logfile /home/bitrix/msmtp_site_mirror.log
host smtp.yandex.ru
port 587
from почта@некий_домен
aliases /etc/aliases
keepbcc off
auth on
user некий_пользователь
password некий_пароль
tls on
tls_certcheck off
tls_starttls on
<Directory /home/bitrix/ext_www/site_master>
...
php_admin_value sendmail_path "msmtp -t -i -a site_master"
...
</Directory>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question