В настройках msmtp (файл /home/bitrix/.msmtprc) по умолчанию все шлется через аккаунт default
добавление другого аккаунта email2@site2.ru ни к чему не привело
все равно все шлется через аккаунт default
------------
попробовал согласно параметрам msmtp [url]http://msmtp.sourceforge.net/doc/msmtp.html[/url]
[QUOTE]3.3 Choosing an accountThere are three ways to choose the account to use. It depends on the circumstances which method is the best.[LIST=1][*]‘--account=account’
Use the given account. Command line settings override configuration file settings.[*]‘--host=hostname’
Use only the settings from the command line; do not use any configuration file data.[*]‘--from=address’ or ‘--read-envelope-from’
Choose the first account from the system or user configuration file that has a matching envelope-from address as specified by a ‘from’ command. This works only when neither ‘--account’ nor ‘--host’ is used.
[/LIST][/QUOTE]
указать в php.ini конкретный аргумент для msmtp, а именно прописал строку:
[B]sendmail_path = msmtp --account=site2 -t -i[/B]
но все равно шлет через дефолтный аккаунт,
может не там передаю параметр [B]--account=site2[/B] ?
добавление другого аккаунта email2@site2.ru ни к чему не привело
все равно все шлется через аккаунт default
------------
попробовал согласно параметрам msmtp [url]http://msmtp.sourceforge.net/doc/msmtp.html[/url]
[QUOTE]3.3 Choosing an accountThere are three ways to choose the account to use. It depends on the circumstances which method is the best.[LIST=1][*]‘--account=account’
Use the given account. Command line settings override configuration file settings.[*]‘--host=hostname’
Use only the settings from the command line; do not use any configuration file data.[*]‘--from=address’ or ‘--read-envelope-from’
Choose the first account from the system or user configuration file that has a matching envelope-from address as specified by a ‘from’ command. This works only when neither ‘--account’ nor ‘--host’ is used.
[/LIST][/QUOTE]
указать в php.ini конкретный аргумент для msmtp, а именно прописал строку:
[B]sendmail_path = msmtp --account=site2 -t -i[/B]
но все равно шлет через дефолтный аккаунт,
может не там передаю параметр [B]--account=site2[/B] ?