Hi, I have a problem with owncloud 10.0.10.4. It seems as it is trying to send mails with the user mail address instead of the address in smtp settings. My mail provider (Yandex) rejects this. Where can I change this behavior?
Steps to reproduce
- Specifiy a Yandex Mail as SMTP sender
- Create a new user (with another mail address)
- Set the password
Expected behaviour
The password should be changed, an email send to the user confirming the change.
Actual behaviour
The password is changed but an error appears that the mail could not be sent. In the log it seems as the Mail is intended to be sent with the userâs address and not with the address given in the SMTP settings page. Yandex rejects that
Server configuration
SMTP-Server: smtp.yandex.com
Port: 465
Authentication with Mail Address and App Password
Fresh install
Owncloud: 10.0.10.4
Are you using encryption: no
Logs
ownCloud log (data/owncloud.log)
{âreqIdâ:âXXXXâ,âlevelâ:3,âtimeâ:â2018-10-10T10:21:22+00:00â,âremoteAddrâ:âxxx.xxx.xx.xxxâ,âuserâ:"â",âappâ:âsettingsâ,âmethodâ:âPOSTâ,âurlâ:"/index.php/setpassword/926965384006339551257/user",âmessageâ:âException: {âExceptionâ:âSwift_TransportExceptionâ,âMessageâ:âExpected response code 250 but got code \â553\â, with message \â553 5.7.1 Sender address rejected: not owned by auth user.\r\n\ââ,âCodeâ:553,âTraceâ:â#0 \/home\/PATH\/TO\/OWNCLOUD\/lib\/composer\/swiftmailer\/swiftmailer\/lib\/classes\/Swift\/Transport\/AbstractSmtpTransport.php(281): Swift_Transport_AbstractSmtpTransport->_assertResponseCode(â553 5.7.1 SendeâŚâ, Array)\n#1 \/home\/PATH\/TO\/OWNCLOUD\/lib\/composer\/swiftmailer\/swiftmailer\/lib\/classes\/Swift\/Transport\/EsmtpTransport.php(270): Swift_Transport_AbstractSmtpTransport->executeCommand(âMAIL FROM:<useâŚâ, Array, Array)\n#2 \/home\/PATH\/TO\/OWNCLOUD\/lib\/composer\/swiftmailer\/swiftmailer\/lib\/classes\/Swift\/Transport\/EsmtpTransport.php(346): Swift_Transport_EsmtpTransport->executeCommand(âMAIL FROM:<useâŚâ, Array)\n#3 \/home\/PATH\/TO\/OWNCLOUD\/lib\/composer\/swiftmailer\/swiftmailer\/lib\/classes\/Swift\/Transport\/AbstractSmtpTransport.php(416): Swift_Transport_EsmtpTransport->_doMailFromCommand(âuser@example.comâ)\n#4 \/home\/PATH\/TO\/OWNCLOUD\/lib\/composer\/swiftmailer\/swiftmailer\/lib\/classes\/Swift\/Transport\/AbstractSmtpTransport.php(444): Swift_Transport_AbstractSmtpTransport->_doMailTransaction(Object(Swift_Message), âuser@example.comâ, Array, Array)\n#5 \/home\/PATH\/TO\/OWNCLOUD\/lib\/composer\/swiftmailer\/swiftmailer\/lib\/classes\/Swift\/Transport\/AbstractSmtpTransport.php(176): Swift_Transport_AbstractSmtpTransport->_sendTo(Object(Swift_Message), âuser@example.comâ, Array, Array)\n#6 \/home\/PATH\/TO\/OWNCLOUD\/lib\/private\/Mail\/Mailer.php(99): Swift_Transport_AbstractSmtpTransport->send(Object(Swift_Message), Array)\n#7 \/home\/PATH\/TO\/OWNCLOUD\/settings\/Controller\/UsersController.php(717): OC\\Mail\\Mailer->send(Object(OC\\Mail\\Message))\n#8 \/home\/PATH\/TO\/OWNCLOUD\/settings\/Controller\/UsersController.php(685): OC\\Settings\\Controller\\UsersController->sendNotificationMail(âuserâ)\n#9 \/home\/PATH\/TO\/OWNCLOUD\/lib\/private\/AppFramework\/Http\/Dispatcher.php(153): OC\\Settings\\Controller\\UsersController->setPassword(â926965384006339âŚâ, âuserâ, âPASSâ)\n#10 \/home\/PATH\/TO\/OWNCLOUD\/lib\/private\/AppFramework\/Http\/Dispatcher.php(85): OC\\AppFramework\\Http\\Dispatcher->executeController(Object(OC\\Settings\\Controller\\UsersController), âsetPasswordâ)\n#11 \/home\/PATH\/TO\/OWNCLOUD\/lib\/private\/AppFramework\/App.php(100): OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OC\\Settings\\Controller\\UsersController), âsetPasswordâ)\n#12 \/home\/PATH\/TO\/OWNCLOUD\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php(46): OC\\AppFramework\\App::main(âUsersControllerâ, âsetPasswordâ, Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)\n#13 \/home\/PATH\/TO\/OWNCLOUD\/lib\/private\/Route\/Router.php(342): OC\\AppFramework\\Routing\\RouteActionHandler->__invoke(Array)\n#14 \/home\/PATH\/TO\/OWNCLOUD\/lib\/base.php(909): OC\\Route\\Router->match(â\/setpassword\/92âŚâ)\n#15 \/home\/PATH\/TO\/OWNCLOUD\/index.php(54): OC::handleRequest()\n#16 {main}",âFileâ:"\/home\/PATH\/TO\/OWNCLOUD\/lib\/composer\/swiftmailer\/swiftmailer\/lib\/classes\/Swift\/Transport\/AbstractSmtpTransport.php",âLineâ:383}"}