[exim] Re: Difficulty getting Exim Address rewriting working…

Top Page
Delete this message
Reply to this message
Author: Michael Lueck
Date:  
To: exim-users
Subject: [exim] Re: Difficulty getting Exim Address rewriting working on Ubuntu Linux
Greetings Jeremy and Daniel,


> On 12/28/23 14:37, Michael Lueck via Exim-users wrote:
>> The host side rewrite rules fail to rewrite. Why?
>
> The "reswriting patterns" section of the docs says
> "The source pattern ... is in fact processed as a single-item address list".
>
> Looking up the bit of docs describing address lists, we find
> "A certain amount of wildcarding is permitted. [...]
> If the local parts match, the domain is checked in exactly the same way as for a pattern in a domain list"
>
> And then about domain lists:
> "If a pattern starts with an asterisk, the remaining characters of the pattern are compared with the terminating characters of the domain"
>
> Note: "start with". It does not say you can use an asterisk somewhere else.



The last "note" in your response above: No, the Exim Address Rewriting page listed this as an example:

> Right here is a similar example rewrite rule:
>
> 7. Rewriting examples
> Here is an example of the two common rewriting paradigms:
>
> *@*.hitch.fict.example



Two asterisk charters included in that example.

So are you saying that actually more than one asterisk is not actually allowed?

How, with what syntax, would it be possible to use to seek out portions of the email address to detect it is a local address in order to map to a public Internet email address? I am seeking to detect
the presence of either a specific server hostname or the presence of the subdomain our internal office computers utilize. If either of those are true, rewriting the email address to a public Internet
address is necessary.

It seems Internal emails may be generated with a variety of addresses, so I was trying to seek out address keywords which would indicate to Exim that "this is a local-only address, it needs to be
rewritten." Thus my list: 1) emails to root 2) internal server hostnames or 3) the subdomain our local computers use. So replying to Daniel, I feel it is a risk of missing emails that need to have
local addresses rewritten if I were to list out a mapping list of local to public Internet addresses. As example it seems local mail may be sent to just user or user@hostname or
user@??? and I would rather not have to duplicate rules for each address format nuance possible.

I am thankful,

--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/