virtualcenter


Our IT journal

SMTP – Using Office 365 email account with Postfix relay on Ubuntu

In this case we wanted to use an email account from Office 365 to send emails via postfix, to use as the native mail function for WordPress This is based on Ubuntu 20.04 LTS sudo apt-get update sudo apt-get install postfix mailutils In the menu, just use the default entry (Internet Site) Configuring postfix sudo nano /etc/postfix/main.cf Here we need … Read More


Autodiscovery doesn’t work after migrating from Google Suite to Office 365

We have found this new problem when migrating a client from Google Suite over to Office 365, affecting mainly the Outlook service. Back in the day, just pointing the autodiscovery CNAME record would do the trick. Nowadays, they base this on a secondary service that was called ampli.net, nowadays outlookmobile.com. This caches MX records of the domain and autofills as … Read More


Change Active Directory users country code via PowerShell

In order to have correct information in Office 365 when using Azure AD, your users need to have a country code in Active Directory, specially when configuring self-service password reset: $Users = Get-ADUser -Filter {samaccountname -like “*”} foreach ($User in $Users) { Set-ADUser -Identity $User -Country “US” } Get-ADUser -Filter {countrycode -eq 0} | Set-ADUser -Replace @{countrycode=1}  


Can’t Create an Office 365 group

I was getting ready to create an Office 365 group for a client, using a global administrator account. However, this user had no license, and it was just to manage users. No matter what, I couldn’t create an Office 365 group from the group section.   Once you assign a temporary license to the user and log back in, it … Read More


Enabling DKIM on Office 365 for spoofing protection

DKIM (Domain Key Identified Mail) is used to detect email spoofing. The recipient validates the signature against the public key registered on the DNS for the sender. To enable DKIM on Office 365, access your portal and go to the exchange admin center. On the main screen, select “dkim”, and then select the domain you want to work on. On the … Read More


Setting up a catch-all address in Office 365

While this is very straightforward on other platforms, we need to go the extra mile with Office 365. Sometimes we want to receive each misspelled emails or even those sent to nonexistent addresses. e.g. someone sends a message to jonh instead of john, the catch-all address will receive this email. In order to achieve this, we will set up a delivery … Read More


Receive alerts when users try sending undeliverable emails or fails to receive emails in Office 365

Using the admin portal in Office 365, go into Admin – Exchange. Then Protection – Malware Filter – and edit the default rule. Under Administrator Notifications, you will be able to select being notified for inbound and outbound emails.    


Changing the default language and timezone for OWA users in Office 365

Connect to O365 via Powershell We will have to define the Language and Timezone first.   get-mailbox | Set-MailboxRegionalConfiguration -Language -TimeZone   For the timezone, select the middle value:   To apply the desired language and timezone for all the mailboxes on your tenant, use the following syntax: get-mailbox | Set-MailboxRegionalConfiguration -Language 1033 -TimeZone “S.A. Eastern Standard Time”     … Read More


Changing the time-out period for Office 365

Connect to O365 Sometimes we may have the need to change the time-out period for our OWA sessions while using O365. O365 supports 15 minutes (00:15:00) at its lowest setting, up to 8 hours (08:00:00), with the default being 6 hours. Set-OrganizationConfig -ActivityBasedAuthenticationTimeoutEnabled $true -ActivityBasedAuthenticationTimeoutInterval 00:15:00 -ActivityBasedAuthenticationTimeoutWithSingleSignOnEnabled $true Disabling the time-out period for Office 365 is currently not supported.


Connecting to Office 365 via Powershell

Install-Module -Name AzureAD $UserCredential = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection Import-PSSession $Session