We're sending e-mail from our ASP.NET application (we'll call it @example.com). We use Google Apps for Business to send and receive e-mail sent to xxxx@example.com.
Problem is, Delivery Status Notification messages and other failure messages are received at our Google Apps for Business accounts. If I could get these messages (and only these) to deliver instead to our servers' SMTP /badmail/ folder, I could process them from there to take the appropriate action (notify the sender, remove e-mail from our database, etc).
Is there something I can do with DNS / MX records to send the bounce messages back to the server rather than going to Google / Gmail? Or perhaps filter messages received at Gmail and send them to the server by IP address?
Our MX records look like this right now:
example.com 1800 MX priority: 20 alt1.aspmx.l.google.com
example.com 1800 MX priority: 20 alt2.aspmx.l.google.com
example.com 1800 MX priority: 10 aspmx.l.google.com
example.com 1800 MX priority: 30 aspmx2.googlemail.com
example.com 1800 MX priority: 30 aspmx3.googlemail.com
example.com 1800 MX priority: 30 aspmx4.googlemail.com
example.com 1800 MX priority: 30 aspmx5.googlemail.com
Thanks!