Setting Email Server problem

993 views
Skip to first unread message

eyal goltzman

unread,
Nov 29, 2015, 1:33:10 PM11/29/15
to gitblit
I set an SMTP TLS server in my gitblit properties as follows:

mail.server = smtp.office365.com
mail.port = 587
mail.debug = true
mail.smtps = false
mail.starttls = true
mail.username = ***@***********
mail.password = **************
mail.fromAddress = GitBlit
mail.adminAddresses = *****@**********

And I get his error:

2015-11-29 20:21:07 [INFO ] send: Re: [Ichilov/ObstacleControl] Check MAil Server (#2)
2015-11-29 20:21:21 [ERROR] Failed to send message
com.sun.mail.smtp.SMTPSendFailedException: 501 5.1.7 Invalid address
;
  nested exception is:
com.sun.mail.smtp.SMTPSenderFailedException: 501 5.1.7 Invalid address
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2133)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1630)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1132)
at javax.mail.Transport.send0(Transport.java:254)
at javax.mail.Transport.send(Transport.java:124)
at com.gitblit.service.MailService.run(MailService.java:275)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: com.sun.mail.smtp.SMTPSenderFailedException: 501 5.1.7 Invalid address
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1637)
... 11 more
2015-11-29 20:21:21 [INFO ] send: Re: [Ichilov/ObstacleControl] Check MAil Server (#2)

What is wrong?


James Moger

unread,
Nov 29, 2015, 1:36:40 PM11/29/15
to git...@googlegroups.com
mail.fromAddress is a suspect.  How about setting it to gitblit@********** ?

-J

--
You received this message because you are subscribed to the Google Groups "gitblit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gitblit+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

eyal goltzman

unread,
Nov 29, 2015, 3:43:05 PM11/29/15
to gitblit
Suspect convicted!
Thanks
Reply all
Reply to author
Forward
0 new messages