I'm trying to do this on another server, but I'm not having any luck.
It's running CentOS 5 with Plesk 9; qmail and postfix; although I'm not sure postfix is being used. I didn't setup the server from scratch, it's a VDS.
It's hosting "server.com" with a vhost for a subdomain of "example.com"; example.com is hosted elsewhere. So subdomain.example.com is a vhost on server.com
[root@server control]# echo hey | sendmail email@example.com
[root@server control]# echo hey | sendmail firstname.lastname@example.org
The 1st line works, the 2nd doesn't - I assume it's because I'm hosting subdomain.example.com on the vhost; at least that's my only guess.
I'd like to set it up to use gmail to handle all the incoming mail, so I only need to be able to send mail.
From reading about qmail, I thought the issue would be that local-host-names contained example.com. However, /etc/mail/local-host-names only lists server.com.
Edit: all the mail sent to example.com sits in the mail queue which is visible in plesk.