LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-16-2008, 09:38 AM   #1
SystemOverload
LQ Newbie
 
Registered: Nov 2007
Location: United Kingdom
Posts: 8

Rep: Reputation: 0
Sendmail - route mail off server for hosted domain


Hi,

I'm running sendmail on a small CentOS server, where there is only one hosted domain. This domain's http content is served from this server, but mail is served from another server, to which the MX record for this domain points (DNS is hosted on a third server).

This server is able to send mail successfully to any addresses not on this domain, but can't send mail to addresses on the domain.

Other servers are able to send mail to this domain.

Thus, it would seem the system is trying to deliver the mail locally, where I need it to deliver them to another server. How can I force all mail to be routed off the server?

Mail is sent by php_mail()

Thanks
 
Old 02-17-2008, 06:25 PM   #2
guglielmo
LQ Newbie
 
Registered: Feb 2008
Location: milano,italia
Distribution: server::debian desktop::ubuntu
Posts: 5

Rep: Reputation: 0
i don't know sendmail i'm using exim should be the same,

i suppose your server is configured for handling the mail for that domain, ie if domain is example.com probabilly snedmail is configured as mta for example.com
so when you sent email from your network using your sendmail as mta it suppose to be final destination so it doesn't look mx record but try to deliver locally.
to test thi case you can add an user and then send mail to him if arrive you have to reconfigure sendmail to avoid it to handle mail for example.com


hth
 
Old 02-18-2008, 06:16 AM   #3
SystemOverload
LQ Newbie
 
Registered: Nov 2007
Location: United Kingdom
Posts: 8

Original Poster
Rep: Reputation: 0
Yes, that is what's happening. How do I configure Sendmail not to accept mail on that domain?
 
Old 07-21-2008, 10:35 PM   #4
zenmechanic
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Rep: Reputation: 0
Question

Sorry for dredging up an old post, but it was the closest thing I could find to my issue.

Same problem as the poster:

Sendmail sits on box [A] along with apache/php. Box [B] (off lan) hosts mail.

MX records point properly to box [B] and WWW cname points properly to box [A]

Since sendmail is not querying DNS to get the MX records for the domain (because it believes it is the MTA, so why should it query), when sending mail from a php form with PHPMailer, sendmail is dropping it in the local users mailbox instead of routing it to server [B].

Please help a nub out.


Thanks,
Adam
 
Old 07-21-2008, 11:32 PM   #5
zenmechanic
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Rep: Reputation: 0
Ok, so I've figured out from a similar post that I needed to recompile sendmail with the mailertable function enabled. Done. However I am having a hell of a time trying to find how to format the entry in the mailertable file.
 
  


Reply

Tags
sendmail


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
Sendmail problem (mail hosted elsewhere) 60s TV Batman Linux - Server 3 01-31-2008 07:52 AM
I cannot ping hosted domain (site) at server Peon1 Linux - Newbie 4 10-06-2007 05:39 AM
I cannot ping hosted domain (site) at server Peon1 Linux - Networking 3 10-05-2007 10:21 PM
Email question - externally hosted mail server jkmb111 Linux - Software 1 05-17-2005 07:56 PM
How to setting the Virual Domain Mail Server by sendmail? explorer1979 Linux - General 1 06-04-2002 03:26 PM


All times are GMT -5. The time now is 10:16 PM.

Main Menu
Advertisement
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