Mail bandwidth not being counted under the correct domains

We’re running ubuntu 12.04 and installed using the install gpl version via the install script. We’ve had bandwidth monitoring enabled for a while and recently tried to have the bandwidth monitoring include sent email messages. I went into the bandwidth monitoring setup and set the path to the mail log. We have many virtual servers, but all of the email traffic shows up under our in house domain and not in the individual domains.

In our case, all email traffic is being sent by php (fcgi) and “Run CGI scripts as domain owner” is checked, so in the logs they are appearing as being from Which is probably why all of the traffic is being counted for our virtual server.

Is there someway I can make the bandwidth monitoring include the in the customer_username virtual server and not the inhousedomain virutal server?