Grails yay eklentisi (https://grails.org/plugin/mail), yaylar güvenlik eklentisi için yapılandırmaya çalışırken sürekli olarak aşağıdaki hata iletisini alıyorum.İstemci bu gönderen olarak göndermek için izinlere sahip değil (office 365, grails)
Burada, benim yapılandırma şimdiye kadar görünüyor
grails { mail { host = "smtp.office365.com" port = 587 username = "[email protected]" password = "password" props = ["mail.smtp.starttls.enable":"true", "mail.smtp.port":"587"] } } grails.mail.default.from = "[email protected]"
Ve burada benim yığın-izidir.
.......| Error 2015-04-17 11:59:39,184 [http-bio-8080-exec-8] ERROR errors.GrailsExceptionResolver - MailSendException occurred when processing request: [POST] /retouch/register/forgotPassword - parameters: username: customer Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.60 SMTP; Client does not have permissions to send as this sender . Stacktrace follows: Message: Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.60 SMTP; Client does not have permissions to send as this sender Line | Method ->> 131 | sendMessage in grails.plugin.mail.MailMessageBuilder - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 55 | sendMail in grails.plugin.mail.MailService | 59 | sendMail . . . in '' | 156 | forgotPassword in grails.plugin.springsecurity.ui.RegisterController | 198 | doFilter . . . in grails.plugin.cache.web.filter.PageFragmentCachingFilter | 63 | doFilter in grails.plugin.cache.web.filter.AbstractFilter | 53 | doFilter . . . in grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter | 49 | doFilter in grails.plugin.springsecurity.web.authentication.RequestHolderAuthenticationFilter | 82 | doFilter . . . in grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor | 615 | run . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker ^ 745 | run in java.lang.Thread
Not: Sorun yalnızca Grails yayı güvenlik eklentisinde bulunur. = "[email protected]"
grails.mail.default.from = "[email protected]"
kullanıcı adı e-posta
Bu çözüm benim için çalışıyor. Teşekkür ederim. – Balkrishna
ayrıca grails.plugin.springsecurity.ui.forgotPassword.emailFrom = '[email protected]' satırını da eklemelisiniz. – Aasiz
Yukarıdaki 2 satırlık "springsecurity" ye ihtiyacım yoktu. Office365.com'a erişmek için sadece "grails.mail.default.from" kısmını kaçırdım. (Bu bir GMail gönderen hesabı kullanılarak gerekli değildi) –