LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 12-21-2007, 12:09 PM   #1
rprodan
LQ Newbie
 
Registered: Dec 2007
Posts: 2

Rep: Reputation: 0
Debian separate mail and web servers help


Hello,

I have a network of 10 windows machines which are connecting to the Internet through a gateway which is also the web and mail server. We have also our own domain name which is kept on the same machine.
I would like to separate these two servers.

I requested from our provider a new static IP so now I have two IPs. One of them I intend to use on the web server and another one on the mail server.
At this time, the web server is a Slackware 10 machine but I intend to replace it with Debian.

What I did until now: I've been set up the mail server, configured it and everything looks fine but I don't know what to do next.
So suppose that I'm done with the web server also, what should I do to emails sent to mydomain.com to arrive, instead on the web server, to the other machine?

Any help would be greatly appreciated.


Regards,
Axel
 
Old 12-21-2007, 02:21 PM   #2
LinuxManMikeC
Member
 
Registered: Nov 2007
Location: Provo, Utah
Distribution: Debian and Ubuntu
Posts: 74

Rep: Reputation: 15
You need an MX record in DNS for mydomain.com

It will tell any email servers that are looking to deliver to mydomain.com that your mail server mail.mydomain.com is handling email.

...

Ok, wait, I might be misreading your post, grammar got a little messy near the end . You want all email going to the email server, right?
 
Old 12-21-2007, 02:52 PM   #3
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
At least 4 entries should be present in the authoritative DNS server for your domain for everything to work properly.. some of these setting should already be in place since these are existing services.

an A record for Each Host


www.mydomain.com. 3600 IN A 12.34.56.78
mail.mydomain.com. 3600 IN A 12.34.56.79


MX record for the mail server pointing to the appropriate Host name NOT the IP address

mydomain.com. 3600 IN MX 10 mail.


Reverse DNS entry for the Mail server IP address


79.56.34.12.in-addr.arpa. 3600 IN PTR mail.mydomain.com

Last edited by farslayer; 12-21-2007 at 02:54 PM.
 
Old 12-21-2007, 04:55 PM   #4
restless
Member
 
Registered: Feb 2003
Location: Belgium
Distribution: Debian
Posts: 166

Rep: Reputation: 31
Quote:
Originally Posted by farslayer View Post
At least 4 entries should be present in the authoritative DNS server for your domain for everything to work properly.. some of these setting should already be in place since these are existing services.

an A record for Each Host


www.mydomain.com. 3600 IN A 12.34.56.78
mail.mydomain.com. 3600 IN A 12.34.56.79


MX record for the mail server pointing to the appropriate Host name NOT the IP address

mydomain.com. 3600 IN MX 10 mail.


Reverse DNS entry for the Mail server IP address


79.56.34.12.in-addr.arpa. 3600 IN PTR mail.mydomain.com
just a minor remark, I think

mydomain.com. 3600 IN MX 10 mail.

should be without the trailing dot because otherwise it won't be concatenated with $ORIGIN

but other than that it's correct.. just make sure you have an MX record and make sure that you've configured your MTA to be an endstation for mails to your domainname, for postfix that's in /etc/postfix/main.cf I think
 
Old 12-22-2007, 04:54 AM   #5
rprodan
LQ Newbie
 
Registered: Dec 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Ok, wait, I might be misreading your post, grammar got a little messy near the end . You want all email going to the email server, right?


Yes, indeed, all of the emails should go to the designated server, without passing through the other one.


--

Thank you guys for answers; since I am pretty unexperienced, I really appreciate your help.


Axel.

A post scriptum, maybe it's useful: I am using qmail and vpopmail...

Last edited by rprodan; 12-22-2007 at 04:56 AM.
 
  


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
Separate servers or just one? scjvsTP Linux - Networking 5 03-31-2006 12:27 PM
2 Mail/Web Servers Sern Linux - Networking 4 05-17-2005 10:29 AM
How to separate Incoming Mail and Outgoing Mail on SENDMAIL LiloAma Linux - Networking 1 03-22-2004 02:24 AM
Best free web and e-mail servers grogers Linux - Software 1 11-30-2002 09:26 PM
GUI for servers config ( smb, mail, web) gillesb Linux - Newbie 3 09-29-2002 12:44 PM


All times are GMT -5. The time now is 01:59 AM.

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