receiving email issue
Added by rony f about 2 years ago
I have been using below scripts to run per sec for email receving to create new ticket after user sent email sinc 2018. but recently in Oct, the script jobs was failed with below:
-------------------
set SSL_CERT_FILE=C:\path\cacert.pem
set Path=C:\Bitnami-new\redmine-3.4.4-1\ruby\bin
cd C:\Bitnami-new\redmine-3.4.4-1\apps\redmine\htdocs
bundle exec rake redmine:email:receive_pop3 RAILS_ENV="production" host=smtp.office365.com username=support.it@hunterdouglas.asia password=xxxx ssl=1 project=hda tracker=all allow_override=all
exit
--------------------------------
the current error as below:
-------------------------------------------
C:\Bitnami\redmine>redmine-hda-live.bat
C:\Bitnami\redmine>set SSL_CERT_FILE=C:\path\cacert.pem
C:\Bitnami\redmine>set Path=C:\Bitnami-new\redmine-3.4.4-1\ruby\bin
C:\Bitnami\redmine>cd C:\Bitnami-new\redmine-3.4.4-1\apps\redmine\htdocs
C:\Bitnami-new\redmine-3.4.4-1\apps\redmine\htdocs>bundle exec rake redmine:emai
l:receive_pop3 RAILS_ENV="production" host=smtp.office365.com username=support.i
t@hunterdouglas.asia password=xxx ssl=1 project=hda tracker=all allow_over
ride=all
rake aborted!
Net::POPAuthenticationError: ERR Logon failure: unknown user name or bad passwo
rd.
C:/Bitnami-new/redmine-3.4.4-1/apps/redmine/htdocs/lib/redmine/pop3.rb:43:in `ch
eck'
C:/Bitnami-new/redmine-3.4.4-1/apps/redmine/htdocs/lib/tasks/email.rake:148:in `
block (4 levels) in <top (required)>'
C:/Bitnami-new/redmine-3.4.4-1/apps/redmine/htdocs/app/models/mailer.rb:433:in `
with_synched_deliveries'
C:/Bitnami-new/redmine-3.4.4-1/apps/redmine/htdocs/lib/tasks/email.rake:147:in `
block (3 levels) in <top (required)>'
C:/Bitnami-new/redmine-3.4.4-1/apps/redmine/htdocs/vendor/bundle/ruby/2.3.0/gems
/rake-12.3.0/exe/rake:27:in `<top (required)>'
Tasks: TOP => redmine:email:receive_pop3
(See full trace by running task with --trace)
------------------------------------------
checking from mine:
1. The password for the email is correct and never changed. i can' login the mailbox with the current credentials.
2. tried to change host to outlook.office365.com .but didn't work. with error below:
-------------------------------------------------------
C:\Bitnami-new\redmine-3.4.4-1\apps\redmine\htdocs>bundle exec rake redmine:emai
l:receive_imap RAILS_ENV="production" host=outlook.office365.com username=suppor
t.it@hunterdouglas.asia password=xxx ssl=1 project=hda tracker=all allow_o
verride=all
rake aborted!
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv2/v3 read serve
r hello A: unknown protocol
C:/Bitnami-new/redmine-3.4.4-1/apps/redmine/htdocs/lib/redmine/imap.rb:30:in `ne
w'
C:/Bitnami-new/redmine-3.4.4-1/apps/redmine/htdocs/lib/redmine/imap.rb:30:in `ch
eck'
C:/Bitnami-new/redmine-3.4.4-1/apps/redmine/htdocs/lib/tasks/email.rake:117:in `
block (4 levels) in <top (required)>'
C:/Bitnami-new/redmine-3.4.4-1/apps/redmine/htdocs/app/models/mailer.rb:433:in `
with_synched_deliveries'
C:/Bitnami-new/redmine-3.4.4-1/apps/redmine/htdocs/lib/tasks/email.rake:116:in `
block (3 levels) in <top (required)>'
C:/Bitnami-new/redmine-3.4.4-1/apps/redmine/htdocs/vendor/bundle/ruby/2.3.0/gems
/rake-12.3.0/exe/rake:27:in `<top (required)>'
Tasks: TOP => redmine:email:receive_imap
(See full trace by running task with --trace)
------------------------------------------------
I am using office365 global version.
Did anyone encounter the same issue and share the solution to us ?
Can community help to fix?
Appreciate.
Replies (2)
RE: receiving email issue - Added by Yves Blatti about 2 years ago
Hi,
We're experiencing the same problem since last week.
(IMAP host used : outlook.office365.com)
Any updates ?
Thanks for your reply!
RE: receiving email issue - Added by Yves Blatti about 2 years ago
Microsoft is retiring basic auth, we should move to OAuth 2.0
There is multiple treads about it on this forum. And an issue #37688