LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-22-2008, 01:41 PM   #1
ejellard
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Rep: Reputation: 0
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
 
Old 03-23-2008, 03:08 AM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
If your MX is pointing to google how then is mail from outside the VPS coming to the VPS instead of going to google ?

For sendmail to stop local delivery attempts remove the domain from /etc/mail/local-host-names
 
Old 03-24-2008, 05:39 AM   #3
ejellard
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Hi,

Sorry - should have clarified - I've got a few domains, and one of them is pointing to google, the others aren't.

I'll try removing the domain from that file tonight, thanks (I'm away from SSH access at the moment!)

Cheers,
Ed
 
Old 03-24-2008, 02:40 PM   #4
ejellard
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Unfortunately that didn't work - still delivers to local accounts instead of external ones.

Any other ideas would be much appreciated!

Cheers,
Ed
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How allow external access to local services (smtp-sendmail-syslog) Marv Bon *BSD 3 08-24-2007 11:45 AM
Local and External Sendmail Combination Azmeen Linux - Server 0 04-25-2007 06:34 AM
Fetchmail with multiple mail accounts and local accounts lmcilwain Linux - Software 3 04-01-2007 02:58 PM
send mail to all users accounts nesargha Linux - Server 3 08-29-2006 12:11 AM
Sendmail - Can receive external, no local mail though macdonalder Linux - Software 2 11-18-2005 03:04 AM


All times are GMT -5. The time now is 11:23 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration