Gmail's SMTP servers are what's adding the received header with your IP address, not Apple Mail.