LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-20-2011, 12:17 PM   #1
Totoro-kun
Member
 
Registered: Nov 2010
Location: Kaunas, Lithuania
Distribution: Slackware
Posts: 234

Rep: Reputation: 125Reputation: 125
Few questions about mail server hostnames


Good evening fellow slackers,
I am trying to setup a little home server for myself and few friends, and one of it's function will be a mail server. I have some experience with small linux mail servers running Postfix, plus I have found some documentation on Sendmail, I think I should be ok there. But I am a bit confused with the hostname and mx record stuff.

Lets say, my /etc/hosts file looks like this:
Code:
127.0.0.1		localhost.localdomain localhost
xx.xx.xxx.xxx		myhostname.mydomain.com myhostname
*where xx.xx.xxx.xxx is my real IP address.

Now confision starts with mx record which is mail.mydomain.com and "mail" is not the hostname of my Slack box. So the question is: should I change my mx record to myhostname.mydomain.com, or should I add mail to my /etc/hosts somethere? or maybe I should specify mail.mydomain.com somewhere in sendmail configuration and that's it? What do you think?

Now another question is related to Reverse DNS, I know, that for my server to be accepted as trusted by other major mail servers, I should ask my ISP to setup Reverse DNS for me, so when my server says helo i am xx.xx.xxx.xxx myhostname.mydomain.com to gmail, gmail then tries to resolve xx.xx.xxx.xxx into myhostname.mydomai.com and if it finds myISPdomain.com instead, then my mail is marked as spam (unvanted behavior). So again, maybe someone knows what my ISP shoud set for my Reverse DNS, is it myhostname.mydomain.com? Or just mydomain.com? Or maybe mail.mydomain.com?

If it's not too much trouble, I would like to hear your thoughts about tis matter.
 
Old 11-20-2011, 07:36 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
When you say "real address" I'm assuming you mean LAN address (RFC1918), in this case the MX record should have an/the IP address on the outside of your firewall. It doesn't matter what name you use but your mail server should tell inbound connections the same name.

Some ISP's are not really interested in creating PTR records, in this case it's usually easier to forward all outbound email through your ISP's mail server instead which will provide validity as far as receiving MTA's go.
 
1 members found this post helpful.
Old 11-22-2011, 01:02 AM   #3
Totoro-kun
Member
 
Registered: Nov 2010
Location: Kaunas, Lithuania
Distribution: Slackware
Posts: 234

Original Poster
Rep: Reputation: 125Reputation: 125
Thank you for reply,
If I understood you correctly, and my smtp banner says hello I am myhostname.mydomain.com, then my MX and PRT records also should have myhostname.mydomain.com?

In my case, I can get PTR record easy, since a lot of my friends work for my ISP, so everything is arranged already, I just need to tell them, where my PTR should point.
 
Old 11-22-2011, 05:25 AM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Correct
 
  


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
mail server questions Hello-World Linux - Server 3 10-16-2009 09:26 PM
Sudoers - hostnames questions armandino Linux - General 1 03-04-2009 03:12 AM
Mail server questions? dissident85 Linux - Server 2 02-12-2009 06:41 AM
Mail server questions cool47 Linux - Newbie 4 08-23-2008 11:26 PM
questions about a mail server DKY Linux - Newbie 35 08-01-2003 10:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01: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