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

Mailing List Archive: exim: users

Help with router

 

 

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


jspies at sun

Oct 30, 2009, 5:36 AM

Post #1 of 5 (643 views)
Permalink
Help with router

I am trying to configure a router for the following situation, but I
am not sure how to do it:

We have a rocketseed server (rs.sun.ac.za), exchange servers using
stbhub01.sun.ac.za as a gateway between Exchange and the rest of the
campus. Then we have mail.sun.ac.za (an exim gateway).

Some of the management of the university wants to use rocketseed (let
us call them rocketseedusers) which means the following should happen
to the email:

rocketseeduser --> Exchange
stbhub01.sun.ac.za --> mail.sun.ac.za
mail.sun.ac.za --> rs.sun.ac.za
rs.sun.ac.za --> mail.sun.ac.za
mail.sun.ac.za --> whereever the mail should go.

We use a postgresql database which contains inter alia the fields

user, emailaddress, rocketseed (boolean).

I have to tell exim that when it receives email from
stbhub01.sun.ac.za and the sender is a rocketseeduser the email should
be delivered at rs.sun.ac.za.

I have tried the following router, but Exim does not like "hosts" in
there.

I am not sure how to do it without being able to use "hosts"


rocketseed:
driver = redirect
hosts = stbhub01.stb.sun.ac.za
senders = ${lookup pgsql (select emailaddress from emailuser where rocketseed=true}
allow defer
transport = remote_smtp
route_list = rs.sun.ac.za

Can somebody show me the direction please?

Regards
Johann
--
Johann Spies Telefoon: 021-808 4599
Informasietegnologie, Universiteit van Stellenbosch

"Every good gift and every perfect gift is from above,
and cometh down from the Father of lights, with whom
is no variableness, neither shadow of turning."
James 1:17

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


fh-exim2003 at LF

Oct 30, 2009, 5:45 AM

Post #2 of 5 (599 views)
Permalink
Re: Help with router [In reply to]

On Fri, Oct 30, 2009 at 02:36:44PM +0200, Johann Spies wrote:
...
> I am not sure how to do it without being able to use "hosts"
>
>
> rocketseed:
> driver = redirect
> hosts = stbhub01.stb.sun.ac.za
> senders = ${lookup pgsql (select emailaddress from emailuser where rocketseed=true}
> allow defer
> transport = remote_smtp
> route_list = rs.sun.ac.za
>
> Can somebody show me the direction please?

have a look at route_data

http://www.exim.org/exim-html-current/doc/html/spec_html/ch20.html#SECTprioptman

--
Regards
Frank

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


fh-exim2003 at LF

Oct 30, 2009, 5:48 AM

Post #3 of 5 (602 views)
Permalink
Re: Help with router [In reply to]

On Fri, Oct 30, 2009 at 01:45:54PM +0100, Frank Heydlauf wrote:
> have a look at route_data
>
> http://www.exim.org/exim-html-current/doc/html/spec_html/ch20.html#SECTprioptman

.... using
driver = manualroute

--
Regards
Frank

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


jspies at sun

Oct 30, 2009, 6:11 AM

Post #4 of 5 (602 views)
Permalink
Re: Help with router [In reply to]

On Fri, Oct 30, 2009 at 01:48:16PM +0100, Frank Heydlauf wrote:

> > http://www.exim.org/exim-html-current/doc/html/spec_html/ch20.html#SECTprioptman
>
> .... using
> driver = manualroute

Thanks. The documentation does not really explain the format of
route_data. In the example

dict.ref.example: mail-1.ref.example:mail-2.ref.example
thes.ref.example: mail-3.ref.example:mail-4.ref.example

does that mean email delivered by dict.ref.example will be delivered
either to mail-1.ref.example or mail-2.ref.example

or that mail will delivered to one of the three hosts on that line?

Regards
Johann

--
Johann Spies Telefoon: 021-808 4599
Informasietegnologie, Universiteit van Stellenbosch

"Every good gift and every perfect gift is from above,
and cometh down from the Father of lights, with whom
is no variableness, neither shadow of turning."
James 1:17

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


jspies at sun

Oct 30, 2009, 6:29 AM

Post #5 of 5 (595 views)
Permalink
Re: Help with router [In reply to]

On Fri, Oct 30, 2009 at 03:11:28PM +0200, Johann Spies wrote:

> Thanks. The documentation does not really explain the format of
> route_data. In the example
>
> dict.ref.example: mail-1.ref.example:mail-2.ref.example
> thes.ref.example: mail-3.ref.example:mail-4.ref.example
>
> does that mean email delivered by dict.ref.example will be delivered
> either to mail-1.ref.example or mail-2.ref.example
>
> or that mail will delivered to one of the three hosts on that line?

I found the answer at
http://www.tin.org/bin/man.cgi?section=5&topic=exim4-config_files.

Thanks for your help anyway.

Regards
Johann
--
Johann Spies Telefoon: 021-808 4599
Informasietegnologie, Universiteit van Stellenbosch

"Every good gift and every perfect gift is from above,
and cometh down from the Father of lights, with whom
is no variableness, neither shadow of turning."
James 1:17

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

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


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.