|
Sendmail trying to send to local accounts instead of external
Hi,
First post here, so here goes...
I've just got a VPS setup and handling my websites nicely. I've setup google mail to handle my mail for one domain being hosted on that machine, and have updated the MX records accordingly, which is all working fine.
I have a couple of other domains on that machine (and therefore setup in BIND), but I want to setup email forwarding for a couple of accounts under those domains to the one being handled by google, so I've made entries in /etc/mail/virtusertable (I'm using sendmail).
When I send a mail locally to a email that should be forwarded to gmail, or an email that is just the gmail address, I get a mailer-daemon error sent from the VPS saying the user is unknown - it never tries to deliver outside the localhost as it thinks it should be handling the mail instead of looking at the MX records (I guess).
Likewise, if I email from outside the VPS an account that should be forwarded, root gets the same message.
Does anyone have any suggestions of how to fix this?
Thanks,
Ed
|