Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

Automatic Mail Redirection

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


george at lhhosting

Oct 30, 2006, 8:25 AM

Post #1 of 8 (1259 views)
Permalink
Automatic Mail Redirection

We use exim inbound servers to pre-process mail then pass the valid mail
through to our primary mail system.

By using the @mx_any parameter we accept mail to be relayed based on
the mx record in our DNS. Because our mail systems behind the relays do
not relay this is not dangerous for us. If somebody were to just enter
our MX record into their dns the only damage done would be to relay it
to our primary server which will reject it anyway.

The final router looks like this:

internal:
driver = manualroute
domains = ! +local_domains
transport = remote_smtp
route_list = * ourmailserver.ourdomain.com

What we are now trying to do is have exim recognize several final
destinations.

Question 1: If we list several mail servers in the route list will exim
try each one if delivery fails on another one?

Question 2: Can a router be built to do what I asked in question 1?

Alternative: If we set up a private record in each person's DNS, say a
text record, with a code name indicating the mail server they reside
on, is there any logic we can build into the router to pick up record
from the DNS, match it against a file that translates the code name to
a server host name, then have that automatically inserted into the
router's route list?

GA


--
gascione
------------------------------------------------------------------------
gascione's Profile: http://www.exim-users.org/forums/member.php?action=getinfo&userid=112
View this thread: http://www.exim-users.org/forums/showthread.php?threadid=53540


--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/


george at lhhosting

Oct 31, 2006, 4:10 AM

Post #2 of 8 (1204 views)
Permalink
Re: Automatic Mail Redirection [In reply to]

Anybody?

Thanks
GA


--
gascione
------------------------------------------------------------------------
gascione's Profile: http://www.exim-users.org/forums/member.php?action=getinfo&userid=112
View this thread: http://www.exim-users.org/forums/showthread.php?threadid=53540


--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/


jgh at wizmail

Oct 31, 2006, 2:44 PM

Post #3 of 8 (1205 views)
Permalink
Re: Automatic Mail Redirection [In reply to]

gascione wrote:
> Anybody?

Insufficient question.

--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/


george at lhhosting

Oct 31, 2006, 2:54 PM

Post #4 of 8 (1223 views)
Permalink
Re: Automatic Mail Redirection [In reply to]

Thank you, that was very helpful.

Perhaps you can tell me what you found insufficient about the original
question when I started this post.


--
gascione
------------------------------------------------------------------------
gascione's Profile: http://www.exim-users.org/forums/member.php?action=getinfo&userid=112
View this thread: http://www.exim-users.org/forums/showthread.php?threadid=53540


--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/


Jason.Meers at mv-online

Nov 1, 2006, 2:10 AM

Post #5 of 8 (1208 views)
Permalink
Re: Automatic Mail Redirection [In reply to]

Sorry - forgot to reply to the list!

----snip----

What we are now trying to do is have exim recognize several final destinations.

Question 1: If we list several mail servers in the route list will exim try each one if delivery fails on another one?

Question 2: Can a router be built to do what I asked in question 1?

Alternative: If we set up a private record in each person's DNS, say a text record, with a code name indicating the mail server they reside on, is there any logic we can build into the router to pick up record from the DNS, match it against a file that translates the code name to a server host name, then have that automatically inserted into the router's route list?

GA
----snip----




Hi, the "route_list" and "route_data" options support a semi-colon seperated list of hosts or ip addresses, see the links below:

http://www.exim.org/exim-html-4.62/doc/html/spec_html/ch20.html#id2614498

http://www.exim-new-users.co.uk/index.php?searchword=route_list&option=com_search&Itemid=




You can also find a paper to explain this in more detail here (see page 34 for manualroute to multiple targets):

http://www.exim-new-users.co.uk/Integrating_Exim_with_Exchange_Tutorial_v.1.1.pdf



You might want to consider a "redirect" router that exaimnes the "local_part" to decide whichn destination server to send the message to instead of creating new records in dns (start with a simple text file first, then use a fast simple db like "cdb" once you have it working).


You might also want to consider the hosts_randomize option:

http://www.exim-new-users.co.uk/index.php?searchword=hosts_randomize&option=com_search&Itemid=


Thanks
Jason_Meers

--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/


iane at sussex

Nov 1, 2006, 2:53 AM

Post #6 of 8 (1202 views)
Permalink
Re: Automatic Mail Redirection [In reply to]

--On 31 October 2006 17:54:24 -0500 gascione <george[at]lhhosting.com> wrote:

>
> Thank you, that was very helpful.
>
> Perhaps you can tell me what you found insufficient about the original
> question when I started this post.
>

Jeremy was replying to an email that just said "anybody?".

Unless his mailbox was sorted by thread or subject, 28 emails separated
your first and second post, so he likely didn't connect them.



> --
> gascione
> ------------------------------------------------------------------------
> gascione's Profile:
> http://www.exim-users.org/forums/member.php?action=getinfo&userid=112
> View this thread:
> http://www.exim-users.org/forums/showthread.php?threadid=53540



--
Ian Eiloart
IT Services, University of Sussex

--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/


george at lhhosting

Nov 1, 2006, 3:53 AM

Post #7 of 8 (1205 views)
Permalink
Re: Automatic Mail Redirection [In reply to]

I understand, sorry for the reply Jeremy.

GA


--
gascione
------------------------------------------------------------------------
gascione's Profile: http://www.exim-users.org/forums/member.php?action=getinfo&userid=112
View this thread: http://www.exim-users.org/forums/showthread.php?threadid=53540


--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/


msherman at projectile

Nov 1, 2006, 4:49 AM

Post #8 of 8 (1197 views)
Permalink
Re: Automatic Mail Redirection [In reply to]

gascione wrote:
> I understand, sorry for the reply Jeremy.
>

You did it again... please quote enough content in your replies so that
people who enter the conversation late know what you're talking about.

- Marc

--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.