LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 01-05-2014, 05:19 AM   #1
elliot01
Member
 
Registered: Jun 2009
Location: UK
Distribution: CentOS / RedHat
Posts: 89

Rep: Reputation: 16
Question MX record confusion (moving to an external mail system)


Hi all,

I would be so grateful if some kind soul could point out what I am missing here!

We have an internal mail server. MX records for the domains it manages were all configured internally/externally and all has been fine for four or five years.

Recently we have switched to Gmail, so I have changed the MX records on all three of our internal DNS servers (Active Directory) and also on our ISP. This was all done on 24th Dec, so plenty of time has passed for full propagation.

Now... most of our emails are coming through fine, but we have some examples when they just do not.

For instance, I have a linux box on our network, which produces some HDD capacity reports. It uses a simple "mail -s" command to mail the report to server.reports@hayley-group.co.uk.

Instead of the linux box looking up the MX for our domain and sending the mail through Google, it continues to send the mails through our old mail server.

If I manually do an MX lookup on the same linux box, it looks fine:

Code:
[root@hayley etc]# nslookup -query=mx hayley-group.co.uk
Server:         10.11.1.217
Address:        10.11.1.217#53

hayley-group.co.uk      mail exchanger = 10 aspmx3.googlemail.com.
hayley-group.co.uk      mail exchanger = 10 aspmx2.googlemail.com.
hayley-group.co.uk      mail exchanger = 5 alt2.aspmx.l.google.com.
hayley-group.co.uk      mail exchanger = 5 alt1.aspmx.l.google.com.
hayley-group.co.uk      mail exchanger = 1 aspmx.l.google.com.
Where is the best place to start looking into this? Why is this linux box routing the mail through the old server, when I can successfully resolve MX to Google's servers?

Any help or guidance appreciated!

Best Regards,

Elliot
 
Old 01-05-2014, 05:23 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,340

Rep: Reputation: Disabled
Quote:
Originally Posted by elliot01 View Post
Where is the best place to start looking into this? Why is this linux box routing the mail through the old server, when I can successfully resolve MX to Google's servers?
The mail command uses the local MTA to deliver mail. Perhaps the MTA is configured to use the old, internal server as a Smart Host? Or there could be a mailertable entry overriding the information in the MX records.

What is the local MTA on the affected box? (Postfix, sendmail, something else entirely?)
 
1 members found this post helpful.
Old 01-05-2014, 05:25 AM   #3
elliot01
Member
 
Registered: Jun 2009
Location: UK
Distribution: CentOS / RedHat
Posts: 89

Original Poster
Rep: Reputation: 16
Bleh, that's it! I was overlooking something rather obvious!

I checked /etc/postfix/main.cf and there was a relayhost configured, pointing to the old mail server. Changed it and now working - bingo!

Thank you
 
  


Reply



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
[SOLVED] Configuring postfix to send system mail to an external address (DynDNS) pwatk Linux - Server 5 10-07-2014 04:04 PM
external HDD permissions confusion RajahBrooke Slackware 14 04-06-2011 08:45 PM
Mail server not sending mail to location defined in MX record modulaaron Linux - Software 3 12-19-2010 07:57 PM
Moving boot record to mbr raypen Linux - General 5 04-10-2008 08:33 AM
Routing outgoing mail on a dual external interface system with sendmail Dewar Linux - Networking 5 11-19-2003 03:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:50 AM.

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
Open Source Consulting | Domain Registration