Re: [Exim] replacement for smail's pathalias driver

Góra strony
Delete this message
Reply to this message
Autor: John Jetmore
Data:  
Dla: exim-users
Temat: Re: [Exim] replacement for smail's pathalias driver
On Fri, 15 Jun 2001, Hirling Endre wrote:

> You need a director:


This needs to be implemented as a router

> ..or a router:
>
> weird_dlist:
> driver = domainlist
> route_list = "new_domain 123.123.123.123 byname"
> transport = remote_smtp
>
> If you use director+transport, you need to specify transport = weird_smtp
> in your director's config. If you use director+router, it's not needed.


In the docs that I have say that the the first argument in route_list is a
pattern, not a rewritten domain. So I don't see how the above router
would work. Perhaps an example of what I need is in order.

I need a router that checks a domain against a pattern and if it matches,
rewrites the envelope-to domain and specifies explicitly what mail server
to deliver the message to.

Say I have a message which is to user@???. When exim sees
that, I want it to deliver to the server private-mail.domain.com and in
the smtp transaction, I want it to "RCPT TO: user@???".

under smail, I just did this:

scan_outbound:
driver=pathalias,transport=scan_outbound;
file=/local/smail/lib/scan_outbound,proto=lsearch

<relevant excerpt of /local/smail/lib/scan_outbound>
2scan.domain.com private-mail.domain.com!scanned.cleanmail.com!%s
</excerpt>

Which very neatly did exactly what I needed it to do.

As far as I can tell the exim example provided above would only fire if
new_domain were scan2.domain.com, and it would explicitly deliver to
123.123.123.123, but I don't see where the domain would be rewritten.
PLease help me if I am being dense, but I dont' see it.

Thanks
--John Jetmore

   __________________________________________________________________
    John Jetmore  **  jetmore@???  **  812.461.3355 x1229