configure input mail with office 365 for generate ticket
Added by gabriele be 17 days ago
Good morning everyone, I would need some urgent help unfortunately.
We recently switched to office 365 suite with enterprise emails, and I can no longer get it to read the emails in my mailbox to generate tickets automatically, I had created this script that was running every minute:
cd /usr/src/redmine/ rake redmine:email:receive_imap \ RAILS_ENV=production \ host=outlook.office365.com port=993 ssl=true \ username=a"ssistenza@smydomain" password="password" \ project=assistenza tracker=support \ unknown_user=accept no_permission_check=1
I have no idea how to make it read incoming emails to redmine, could you help me?
Thanks
Replies (3)
RE: configure input mail with office 365 for generate ticket - Added by gabriele be 17 days ago
my error is:
W, [2024-12-03T12:45:48.354706 #26496] WARN -- : Creating scope :system. Overwriting existing method Enumeration.system. W, [2024-12-03T12:45:48.430986 #26496] WARN -- : Creating scope :sorted. Overwriting existing method User.sorted. I, [2024-12-03T12:45:48.708886 #26496] INFO -- : Starting Extended Watchers plugin for Redmine W, [2024-12-03T12:45:48.901427 #26496] WARN -- : Creating scope :visible. Overwriting existing method Principal.visible. rake aborted! Net::IMAP::NoResponseError: LOGIN failed. (Net::IMAP::NoResponseError) /usr/local/bundle/gems/net-imap-0.3.7/lib/net/imap.rb:2170:in `get_tagged_response' /usr/local/bundle/gems/net-imap-0.3.7/lib/net/imap.rb:2224:in `block in send_command' /usr/local/bundle/gems/net-imap-0.3.7/lib/net/imap.rb:2206:in `send_command' /usr/local/bundle/gems/net-imap-0.3.7/lib/net/imap.rb:1074:in `login' /usr/src/redmine/lib/redmine/imap.rb:36:in `check' /usr/src/redmine/lib/tasks/email.rake:121:in `block (4 levels) in <top (required)>'
/usr/src/redmine/app/models/mailer.rb:650:in `with_synched_deliveries'
/usr/src/redmine/lib/tasks/email.rake:120:in `block (3 levels) in <top (required)>'
/usr/local/bundle/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'
Tasks: TOP => redmine:email:receive_imap
(See full trace by running task with --trace)
RE: configure input mail with office 365 for generate ticket - Added by gabriele be 15 days ago
in the meantime I did a bad thing, I created a forwarding for all the emails that come to assist@ and directed them to a gmail.
I read the gmail with this script:
cd /usr/src/redmine/ rake redmine:email:receive_imap \ RAILS_ENV=production \ host=imap.gmail.com port=993 ssl=true \ username=mail@gmail.com password="-----------" \ project=assistenza tracker=support \ unknown_user=accept no_permission_check=1
It would be nice though if you could get it connected directly to microsoft