LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-26-2011, 09:23 AM   #1
Papi_Linux_Server
LQ Newbie
 
Registered: Jul 2011
Posts: 3

Rep: Reputation: Disabled
Unhappy Mail server won't doesn't receive mails from external accounts


Hello,

I have successfully configured an email server. The server can send and receive mails locally and it can also send to external accounts. The problem is, it won't receive any mails from external account. The is already an existing email server for this company i work for. I am creating another one for them. The possible problem is the mx record. how do i set mx record so they won't clash with the mail server that already exists? I am in South Africa and the email server that exists is in Belgium.
 
Old 08-26-2011, 10:27 AM   #2
wpeckham
Member
 
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix
Posts: 785

Rep: Reputation: 174Reputation: 174
External mail

1. You can have multiple MX records for a domain, as long as they have different IP addresses. There is also a priority in the record, and if the primary MX times out or cannot respond, mail is routed to the secondary and tertiary in an order and volume based upon that priority.

2. Check that your mail server is listening on the mail port 25 using netstat. Check the ADDRESS it is listening on. If it is 127.0.0.1 then it is not listening for external mail, but local mail only. Change its configuration to make it listen on all ports.

PS: if your users pick up mail from the primary, you may have to configure it to accept mail from this secondary, and the secondary to forward mail it cannot deliver to the primary. Be careful not to define a loop.

Last edited by wpeckham; 08-27-2011 at 08:12 AM.
 
Old 08-29-2011, 01:07 AM   #3
Papi_Linux_Server
LQ Newbie
 
Registered: Jul 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
@wpeckham

sorry for taking so long to respond. how do i configure MX Records? I installed bind9 and tried following the steps provided in the linux guide but still no luck.

Thanx
 
Old 08-30-2011, 09:24 AM   #4
wpeckham
Member
 
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix
Posts: 785

Rep: Reputation: 174Reputation: 174
Looking over your traffic...

Re-examining your traffic, I have a few questions.
1. Is this one also supposed to receive mail for the company along side the pre-existing one, or only receive mail from your internal network?
2. Where is the MX record defined for your pre-existing mail server? (In a DNS you own, or one at your ISP?)
3. Who manages your DNS records, you or your ISP?
4. WHY does your company want a second mail server? (failover, handle greater volume, etc.)
 
Old 09-01-2011, 07:30 AM   #5
Papi_Linux_Server
LQ Newbie
 
Registered: Jul 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
To answer your first question,
this mail server is supposed to work along side the pre-existing one but when people send emails to this domain its first supposed to look in the pre-existing server when it does not find the mailbox for the recipient its supposed to look in my server.

i think the mx records for the pre-existing server are defined at the ISP in Belgium and the DNS is managed by the ISP.

I dont know why the company wants a new server but i think it has something to do with cutting costs.
 
Old 09-02-2011, 09:33 AM   #6
wpeckham
Member
 
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix
Posts: 785

Rep: Reputation: 174Reputation: 174
second mail server

I am not sure how a second server will save costs, but understand that they will run in parallel.

Since the other server is forwarding all mail for your domain that IT cannot deliver to this Second server, you cannot set this one to forward undeliverable mail to the first mail server. Doing so would create an endless loop for mail that neither could deliver. That means that ALL mail needs to go to the first mail server, and what it rolls over goes to the second mail server, where it will be either delivered or dropped. No additional MX record is required for this, and your secondary does not need to be able to receive mail from anything but the first mail server. You may need an MX record for the new mail server so that sites receiving mail FROM it will be able to do an MX lookup to verify it. You would request the MX entry be entered into the DNS by the ISP that manages DNS for your domain.

I have run a corporate site with two mail servers doing content and RBL filtering (and load sharing) for all inbound mail, and forwarding all valid mail to an internal mail server. (The balanced pair ran Tru64 and sendmail, the internal was MS Exchange. We cut spam by 90% and saved around $150k in man hours monthly.) I have never configured a two-node mail pair as you are considering, and I do not really understand the value. Perhaps someone will chime in who better understands why this is a good idea and how it will save money.
 
  


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
Mail server can't receive mails satimis Linux - Server 5 01-19-2007 03:45 AM
qmail -- new accounts can't receive mail, but old accounts can b:z *BSD 1 07-13-2005 12:42 AM
sendmail server unable to receive external mail goonfui_wong Linux - Networking 7 07-01-2005 02:15 AM
mail server: just send mails out, but not receive hamish Linux - Software 4 02-27-2005 11:06 AM
E-Mail clients are taking time to send /receive mails qs_tahmeed Linux - Networking 0 08-23-2004 10:07 AM


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