I need to write shell script to get the INBOX folder count in Office 365 using below script.
{
echo "01 login ${IMAP_USER} ${IMAP_PASSWD}"
sleep 2
echo "03 STATUS INBOX MESSAGES"
sleep 2
echo "19 logout"
} | telnet outlook.office365.com 993 | tee ${LOG_DIR}/imap_status.log*
I am getting only below message in log file.
Trying 52.97.137.194...
Connected to outlook.office365.com (52.97.137.194).
Escape character is '^]'.
It is unable to login to mailbox using imap username & password.
Since it is O365, i gave complete mail id in username field.
I tested telnet command separately and that is also showing the same message. Before Office 365 migration, i was able to connect & login mailbox using telnet.
Do I need to perform any specific changes for Office 365?
Depending on what exactly you wish to do in the mailbox, you might be able to use the Office 365 Graph.
The graph uses simple http rest calls and allows you to do a lot of things on a users Office 365 account as rest commands (POST / GET / DELETE).
You can browse the categories such as Outlook Mail (which is the Office 365 Exchange e-mail) and see if you might be able to work in your functionality like that.
Another option would be PowerShell using the Exchange Online modules.
Get-MailboxFolderStatistics might get all you need in regards to folders.
If you login with a user account you can only view data from that user.
Using an Exchange Administrator account you can get the info from all users.
Related
When we try to login to a new windows computer (windows 10 & 11) using our office365 user, with our own domain email (user#ourdomain.com) we get the following error:
"Looks like this isn't a Microsoft account. Try another email or sign up for a new one."
When we try to create a new account we get the following error:
"You can't sign up here with a work or school email address. Use a personal email, such as Gmail or Yahoo!, or get a new Outlook email."
Anyone know how we can achieve that? Opened a few support tickets # Microsoft, but nobody could find a solution yet.
Thanks,
Are these PCs already joined to Azure Active Directory?
An administrator of your company's tenant needs to join the PCs to the O365 tenant.
Then it should be possible to login using the companys email/upn.
My user tries to access Microsoft Power Automate (Flow) approvals via email notifications that the Flow sends to them. When clicking on the approval, they get an error "Something went wrong. The requested approval is not accessible to the caller." When directly accessing their approvals at us.flow.microsoft.com > Action items > Approvals, they only see approvals up to January. The same approvals are working for other users. How do I fix approval access?
I tried having the user login via an incognito tab. I also checked whether the user still has MS PA licenses assigned to them, and they seem to be correct (the user has MS 365 E1, MS 365 Business Premium, and MS Power Automate Free).
Figured out the what was causing the issue for our user. The user had a duplicate enterprise microsoft account, so both were being sent the email notification about the approvals, but only the duplicate account was being given access to them. Removing the duplicate account fixed the issue.
If we had had two users with the same name & neither can be deleted, another solution would've been to change how the approvals are routed (ie. by email instead of name.)
Using Exchange 2016 on premises, I'm trying to logon to another users mailbox from my admin account using the RDOSession.LogonExchangeMailbox method. The admin account has impersonation access to all other mailboxes so should have rights to do this. After running the logon method the RDOSession object shows ExchangeConnectionMode as olCachedConnectedFull, but the RDOSession.CurrentUser.name shows as UNKNOWN. If I try to access the inbox using GetDefaultFolder I get a MAPI_E_LOGON_FAILED message. Can you suggest what I might be doing wrong, or haven't done to allow this ?
LogonExchangeMailbox always uses the identity of the current user to connect to the mailbox in the RPC mode (no longer supported by Exchange 2016). To open another mailbox, you can call RDOSession.GetSharedMailBox / GetSharedMailBoxEx.
You can also use LogonHostedExchangeMailbox - it takes explicit credentials instead of connecting as the current local user.
When the cron daemon sends an email after doing a task, where does it find the users email, if it has not been specified in MAILTO ?
Linux has a SMTP-Server pre-installed, where every user has a account by defalut. Also, there are other accounts like postmaster. To view all your accounts and their auto-forwarding, see /etc/aliases.
When cron wants to send a user an email, it just sends this mail to user#localhost. Then, you can view your mails by entering mail in your konsole. Also those mails are saved somewhere in /var/mail. After you viewed a message from that command, the mail is saved in %HOME%/mbox.
Usually you set up a mail transfer agent (mta) on you linux server (like postfix, exim etc). In the mta aliases file you can map linux users to emails.
My organization is in the process of switching to Google Apps for Education. I have successfully used Google Email Uploader to migrate my emails (as an admin of the domain). However, when I attempt to upload another users email, I encounter the following error:
Username or password not accepted
This domain does not allow users to access the Email Migration API.
Error 403
API Access has been enabled in the User Settings for our domain. Does this take some time to activate? Are there other steps I must take prior to migration? Thanks.
Administrators of Google Apps for Business/EDU domains always have the ability to migrate mail. However in order for users to be able to migrate mail to their own account, it must be enabled in the Control Panel. See Google's instructions for enabling user email migration.