LinuxQuestions.org
Visit Jeremy's Blog.
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 04-30-2011, 04:59 AM   #1
jchambers
Member
 
Registered: Aug 2007
Location: California
Distribution: Debian
Posts: 127

Rep: Reputation: 15
Round robin / Exim4 / Mail delivery SMTP


Hello --

Here is the senario...

2 round robin dns servers
x.x.x.1 mydomain.com (hostname)
x.x.x.2 mydomain.com (hostname)

My problem is that when I try and send an email that is part of the domain, it ends up trying to deliver it locally. I realize it is supposed to, but I don't want that for non-users of the server.

I want to be able to deliver certain emails []@mydomain.com remotely. (info@mydomain.com)

exim4 setup "internet site; mail is sent and received directly using SMTP".
This works well as long as it is not an email from mydomain.com.

Is there a way to have exim check the users first and then deliver based on local user or not?


Next question.
Is having the domain name as the hostname the best way to setup a round robin? (web server)


Jon
 
Old 05-03-2011, 04:42 AM   #2
jchambers
Member
 
Registered: Aug 2007
Location: California
Distribution: Debian
Posts: 127

Original Poster
Rep: Reputation: 15
SOLVED:

Debian: Linux web-92.domain.com 2.6.32-5-686 #1 SMP Tue Mar 8 21:36:00 UTC 2011 i686 GNU/Linux

I changed the FQDN hostname of the servers.

From: domain.com
To: web-[IP].domain.com

Edit: /etc/exim4/update-exim4.conf.conf
Code:
dc_other_hostnames='web-92.domain.com'
dc_local_interfaces='x.x.x.92'
dc_readhost='web-92.domain.com'
# update-exim4.conf
# /etc/init.d/exim4 restart

Test with:
#exim -bt [user]@domain.com

You should get something like this
Code:
R: dnslookup for [user]@domain.com
[user]@domain.com
  router = dnslookup, transport = remote_smtp
  host smtp.mailserver.com       [x.x.x.x] MX=0
Hope this helps...
 
  


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
Concerns related to DNS round robin and SMTP gael Linux - Enterprise 3 07-01-2009 09:31 AM
Round Robin with Squid marche Linux - Newbie 0 12-19-2008 11:00 AM
[SOLVED] Exim4 configuration for local subnet mail delivery. Bryan88 Linux - Server 1 04-25-2007 07:53 PM
dns round-robin tzkolinux Linux - Networking 1 12-27-2004 04:49 AM
round robin for servers deepagodkhindi Programming 5 05-11-2003 06:50 AM

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

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