[EXIM] rewriting only for specific recipients; and hostname …

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Paul Slootman
Fecha:  
A: exim-users
Asunto: [EXIM] rewriting only for specific recipients; and hostname question
We have a system here at work which is connected to the organization's
intranet, but which also has a dialup connection to an ISP. We have
uucp and ppp connections to the ISP. At that ISP, we have a hostname,
i.e. to anyuser@??? is put in the uucp queue. So far so
good.

This system will also generate mail to users on the internal network.
So, anything that is sent to a recipient in the ah.nl is to be sent to
the internal central smarthost. Also not a problem.

Now the hard part: I want mail that is sent to recipients in the ah.nl
domain to have as sender user@???, and mail that is
destined to go outside the organization to have as send
user@???. I thought this might be done with rewriting
rules and matching against $header_to, but the rewriting rules don't
seem to allow ${if ..} etc. Specifically, the following fails:

.*@wau.mis.ah.nl       ${if match {$header_to} {@.*.ah.nl$} {$1@???} {$1@???} } EFf


The complaint is:
      unknown rewrite flag character (m) in line 342
which I've narrowed down to being the first 'm' in "match"...


Any suggestions?


Another thing, while I have your attention: the welcome banner:

220 janux.wau.mis.ah.nl ESMTP Exim 1.92 #1 Tue, 26 May 1998 18:05:58 +0200

The hostname shown there is always the hostname corresponding to the IP
address on the primary interface; it should be the hostname that is
found by doing a gethostbyaddr() with the address on which the
connection is made. I found that exim will reject mail to the hostname
that corresponds to the other interface, even when that is the interface
on which the connection is made! I got bitten by this at home where I
have a 192.168. local ether network with a fantasy hostname, and a
dialup PPP connection to the internet with a fixed IP address and
hostname. I fixed this by putting my PPP hostname as primary_hostname
into the configuration file.


Thanks,
Paul Slootman
--
home: paul@??? | work: paul@???
http://www.wurtel.demon.nl | Murphy Software, Enschede, the Netherlands

--
*** Exim information can be found at http://www.exim.org/ ***