Remove password expiration Office 365

Remove password expiration Office 365

I wrote this powershell script to remove password expiration for all users, so that the users password not expires

Password_expiration.ps1

Change Retention Policy – Office 365

Change Retention Policy – Office 365

I wrote this powershell script to remove the Retention Policy that delete all emails in Users Deleted Items folder that are older then 30 days

Retention_Policy.ps1

Create office 365 mail relay connector

Create office 365 mail relay connector

go to https://outlook.office365.com/ecp/ login as global administrator

step 1: click Mailflow
step 2: click Connectors
step 3: click Add

Office365AddRelayConnector1

step 4: Give the connector a name (eg. AllowRelay)
step 5: Select On-Premise
step 6: Select Restrict domains by IP addresses
step 7: Set sender domain to *
step 8: Set sender ip to your own Wan ip/public ip (Only static ips is allowed)
step 9: Set Accepted domains to your office 365 domain

Office365AddRelayConnector2

now you can use your own mx record eg. youdomain-com.mail.protection.outlook.com as relay server/smarthost without login, and on port 25
Source: http://technet.microsoft.com/en-us/library/dn554323.aspx