I setup a web server, let's say example.com.

Email is handled through gmail, so only web traffic is going to example.com.

When this server sends email notices via php to anyone@example.com, it fails because it is looking locally.

Where can I tell the server to use the gmail servers for anyone@example.com ?