[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Exim as a LAN mail server [possibly-OT]



On Sat, Jul 14, 2001 at 03:43:05AM +1000, Rob Weir wrote:
...
> and would relay(?) messages to the correct SMTP server depending on
> the From: header in the message.

I'm no mail nor exim guru, so be warned:)
I never did this my self, but while reading in the manual I thought
the following could be ways to achieve this:

1) I never understood virtual domains, but isn't this what they are for?

2) look at "Closed mailing lists" and the use of the senders hook.
   (I think you need to be an exim trusted user for this to work)

Or use exim's string expansion capabilities and use things like:

      ${domain:$header_from:}
   or
      ${domain:$sender_address}

3) to feed a lookup that sets the hosts hook for the smart-host smtp
   transport. needs the hosts_override flag set to true to work

4) to feed a lookup that sets the host hook for a router

5) to feed a lookup that sets the transport hook for a router

6) to be used in the condition hook for routers, like:
   
      condition = "${if eq${domain:$header_from:}{ipsA.domain}{yes}fail}"

> Firstly, is this a good idea?  Would it horribly violate some basic

are you going to trust your users and make them trusted users for exim?
If not you'll have to use from:-header rewrite rules.

Just to make sure you don't trust me, I never did it, never tried it
and it's quit likely I misread Exim's fine manual.

-- 
groetjes, carel



Reply to: