Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-06-2005, 01:12 PM
|
#1
|
Member
Registered: Dec 2004
Posts: 66
Rep:
|
2 MX records, mail diverted
Hello.
I've got two MX records for my domain, one with priority 20, the other with 30, like so if we dig:
mydomain.com. 84828 IN MX 20 s1.mydomain.com.
mydomain.com. 84828 IN MX 30 s2.mydomain.com.
now, what happens is that eventhough s1.mydomain.com hasn't gone down since we started testing, some few emails are going through to s2.mydomain.com.
Admittedly, only a fraction of emails are doing this, but some important emails are going through to s2.mydomain.com. It has a only catchall account since we plan to use it for emergencies only - people don't check mail on s2. Any ideas as to why this is happening - any suggestions? Do we have to check both mailservers for mail then?
thanks,
branden_burger
|
|
|
12-07-2005, 01:41 PM
|
#2
|
Member
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384
Rep:
|
Hi,
when you set 2 MX records on your DNS config, both will be used.
The weightig is only here so that mailservers do some loadsharing between them.
If you want only backup, then the only real way to do it is to configure both mailservers as part of a cluster.
There are certainly some workaround, like using a script on the backup to monitor the main mailserver and take its place if its down, but i really think the cluster solution is the only long-term.
|
|
|
12-07-2005, 01:50 PM
|
#3
|
QmailToaster Developer
Registered: Dec 2005
Location: Burlington, NC
Distribution: CentOS, Voyage, Debian, Fedora
Posts: 220
Rep:
|
Quote:
Originally Posted by branden_burger
Hello.
I've got two MX records for my domain, one with priority 20, the other with 30, like so if we dig:
mydomain.com. 84828 IN MX 20 s1.mydomain.com.
mydomain.com. 84828 IN MX 30 s2.mydomain.com.
now, what happens is that eventhough s1.mydomain.com hasn't gone down since we started testing, some few emails are going through to s2.mydomain.com.
Admittedly, only a fraction of emails are doing this, but some important emails are going through to s2.mydomain.com. It has a only catchall account since we plan to use it for emergencies only - people don't check mail on s2. Any ideas as to why this is happening - any suggestions? Do we have to check both mailservers for mail then?
|
You have 2 machines trying to be the mail server. I only have experience with QMail (not sure what you're running), but you'd set up s2.mydomain.com to be a caching-only mail server. It would accept emails for mydomain.com, but would hold them until s1.mydomain.com is ready to accept them (in the event it's busy or offline). If you're looking for redundancy, you may look at a program called heartbeat (Sourceforge or Freshmeat, don't remember which) that would have s2 as a backup of s1 (replicating the files via rsync constantly), until s1 goes down. Then heartbeat would make s2 look like it's s1, assuming it's IP address and all. Get's a little more complicated if you're using MySQL for any storing of email or addresses.
|
|
|
12-08-2005, 05:07 AM
|
#4
|
Member
Registered: Dec 2004
Posts: 66
Original Poster
Rep:
|
i see
hmm, i thought as much. clustering/load balancing is a solution...could experiment with rsync and heartbeat though.
Thanks!!
|
|
|
All times are GMT -5. The time now is 03:49 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|