PO Buddy

PO Buddy / Guides

Forwarding invoices to PO Buddy from Microsoft 365

A setup guide for your IT administrator. It lets one mailbox, such as invoices@, pass supplier invoices on to PO Buddy. Forwarding stays off for every other mailbox. It takes about 10 minutes.

Before you start

You need these two addresses. The PO Buddy one is in PO Buddy under Settings → Supplier invoices.

Your invoices mailbox
invoices@yourbusiness.com.au
Your PO Buddy address
yourbusiness-xxxx@poinbox.com.au

You also need the Exchange Administrator role (or Global Administrator) in Microsoft 365. The invoices mailbox can be a shared mailbox, which needs no licence.

Why this is needed: Microsoft 365 blocks automatic forwarding to outside addresses by default. Without step 1, forwarded invoices bounce back to the supplier with error 5.7.520 Access denied.

Step 1: Allow forwarding for this mailbox only

Create an outbound spam policy that turns forwarding on just for the invoices mailbox. Your default policy, which blocks it for everyone else, stays as it is.

  1. Open the Microsoft Defender portal at security.microsoft.com/antispam (Email & collaboration → Policies & rules → Threat policies → Anti-spam).
  2. Choose Create policy, then Outbound.
  3. Name it Allow forwarding to PO Buddy and choose Next.
  4. Under Users, add the invoices mailbox (invoices@yourbusiness.com.au). Leave groups and domains empty. Choose Next.
  5. Under Forwarding rules, set Automatic forwarding rules to On – Forwarding is enabled. Leave the other settings as they are. Choose Next.
  6. Choose Create.

Custom policies take priority over the default, so only this mailbox is affected. Allow up to an hour for it to take effect.

Step 2: Forward the mailbox to PO Buddy

  1. Open the Exchange admin center at admin.exchange.microsoft.com and go to Recipients → Mailboxes.
  2. Select the invoices mailbox to open its details.
  3. On the Mailbox tab, under Mail flow, choose Manage email forwarding.
  4. Turn on Forward all emails sent to this mailbox.
  5. For the forwarding address, enter yourbusiness-xxxx@poinbox.com.au.
  6. Tick Keep a copy of forwarded email in this mailbox, so your team still has every original.
  7. Choose Save.

Microsoft sometimes moves these menus. If yours look different, the PowerShell commands below do the same thing.

Step 3: Check remote domains

Most organisations can skip this, but some block forwarding here as well.

  1. In the Exchange admin center, go to Mail flow → Remote domains and open Default.
  2. Under Email reply types, check that Allow automatic forwarding is ticked.
  3. If your organisation keeps it off on purpose, add a remote domain for poinbox.com.au with automatic forwarding allowed instead.

Also check that no mail flow (transport) rule blocks or redirects automatically forwarded messages.

Step 4: Test it

  1. From any email account, send a PDF invoice to invoices@yourbusiness.com.au.
  2. Within a few minutes it shows in PO Buddy under Invoices, read and matched if it quotes a PO number.
  3. The original stays in the invoices mailbox.

Once it works, set Settings → Supplier invoices → Invoice email shown on POs in PO Buddy to your invoices mailbox. Your POs then tell suppliers to use your own address.

Using PowerShell instead

The same setup with the Exchange Online PowerShell module. Run these as an Exchange administrator.

Connect-ExchangeOnline

New-HostedOutboundSpamFilterPolicy -Name "Allow forwarding to PO Buddy" `
  -AutoForwardingMode On
New-HostedOutboundSpamFilterRule -Name "Allow forwarding to PO Buddy" `
  -HostedOutboundSpamFilterPolicy "Allow forwarding to PO Buddy" `
  -From "invoices@yourbusiness.com.au"

Set-Mailbox -Identity "invoices@yourbusiness.com.au" `
  -ForwardingSmtpAddress "smtp:yourbusiness-xxxx@poinbox.com.au" `
  -DeliverToMailboxAndForward $true

To check it: Get-Mailbox "invoices@yourbusiness.com.au" | Format-List ForwardingSmtpAddress,DeliverToMailboxAndForward

If it doesn't work

The supplier gets a bounce: 5.7.520 Access denied, Your organization does not allow external forwarding The policy from step 1 isn't applying yet. Check that the invoices mailbox is listed under its users and that forwarding is set to On. Wait up to an hour after creating it.
The invoice arrives in the mailbox but never reaches PO Buddy Check the forwarding address in step 2 letter for letter, and that a remote domain or mail flow rule (step 3) isn't blocking it.
It reaches PO Buddy but shows "no invoice attached" The supplier sent a link instead of a file. Download the invoice from their link and upload it in PO Buddy, or ask them to attach a PDF.
It worked, then stopped Someone may have changed the mailbox's forwarding or the outbound policy. Run the check command above.

What PO Buddy can see

Only the emails sent to the invoices mailbox, as forwarded copies. PO Buddy has no access to the mailbox itself, to other mailboxes or to your Microsoft 365 account. Forwarding can be turned off at any time in step 2.

PO Buddy reads the attachments to find the supplier, invoice number, amounts and PO number, and keeps the email so your team can see where each invoice came from.

Questions about this setup: info@drhtechnologies.com.au. To keep a copy, print this page or save it as a PDF.