LinuxQuestions.org
Help answer threads with 0 replies.
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 03-26-2013, 03:46 AM   #1
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Interesting DNS "issue" with sendmail on CentOS 5.8


Not a question as such, more of an observation. I've still to do more investigation but just incase anyone has the same issue, or has experienced the same and worked out why I'll do some sharing.

Server is running CentOS 5.8 with sendmail.
Server sends mail through a relay server.
E-Mails are received as coming from username@server.domain.com (this is the expected behaviour)
Suddenly E-Mails are being received as coming from username@domain.com and mail destination addresses are also being re-written (this causes a few problems, as mail that's supposed to be internal - root@server.domain.com is being rewritten to root@domain.com)

Ok, so what's the change?

Nothing changed in any of the config files of the server, or the server that it relays to.

Change WAS made to the DNS servers, we switched providers.

The difference, there as a DNS wildcard *.domain.com and in the first provider this was set to an A record, but in the second provider this was set to a CNAME record that pointed to domain.com which was an A record.

So, it seems that if there's a CNAME record in the wildcard that sendmail strips the server hostname off the "From:" within e-mails.

More of a curiosity than an issue as I changed the wildcard to an A record instead of a CNAME, just wondered if anyone had come across this?

Last edited by TenTenths; 03-26-2013 at 03:47 AM.
 
Old 03-26-2013, 06:11 AM   #2
fenice
Member
 
Registered: Apr 2006
Distribution: CentOS openSUSE
Posts: 55

Rep: Reputation: 9
You shouldn't be using CNAME records for a mail server as they can cause problems, you should only have an A & MX record for mail servers.
 
Old 03-26-2013, 06:23 AM   #3
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Original Poster
Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Quote:
Originally Posted by fenice View Post
You shouldn't be using CNAME records for a mail server as they can cause problems, you should only have an A & MX record for mail servers.
I didn't have a CNAME record for the mail servers. The mail servers for the domain are standard MX records pointing to FQDN external mail servers.

This zone file section causes mail to come from username@server.domain.com
Code:
$ORIGIN domain.com.
                         30 A     123.123.123.1
*                        30 A     123.123.123.1
This zone file section causes mail to come from username@domain.com
Code:
$ORIGIN domain.com.
                         30 A     123.123.123.1
*                        30 CNAME domain.com.
 
  


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
"Difference between centos and slackware" and "also how to install scratch on centos" vijayendra.uppalapati Slackware 4 07-12-2012 11:10 PM
"Difference between centos and slackware" and "also how to install scratch on centos" vijayendra.uppalapati Slackware 2 01-23-2011 03:14 AM
dns is "weird" on centos 5.4 ciuly Linux - Networking 5 01-24-2010 08:13 AM
Centos 4.4 DNS and/or Sendmail/Postfix issue radiox Linux - Server 4 09-20-2007 05:04 PM
How to run "Closed" DNS on CentOS using BIND PhilipTodd Linux - Newbie 5 04-10-2006 01:26 AM

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

All times are GMT -5. The time now is 09:34 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
Open Source Consulting | Domain Registration