There is a mail processing script on example.com that processes emails sent to addresses like: [email protected]
The mail server has a catch-all for example.com and processes the email into the appropriate account.
For users who have setup up a forwarding rule from another email address I'm having trouble finding the right header to check for the account. For example if the user with account1234 has a gmail rule that forwards certain emails sent to [email protected] to [email protected] then the processing script will find [email protected] in the To: header and [email protected] in the Delivered-To: header.
Is that Delivered-To: header guaranteed to be there or is this specific to the mail server doing the forwarding?