RE: [Exim] rewriting doesn't work?

Pàgina inicial
Delete this message
Reply to this message
Autor: John Horne
Data:  
A: exim-users
Assumpte: RE: [Exim] rewriting doesn't work?
On 07-Aug-2001 at 23:07:27 Bart Koopman wrote:
> why does the rule:
>
> ^([^!]+)!(.*)@local\.domain$ $2@$1 S
>
> not work, I want the SMTP command: RCPT TO:<somewhere.com!
> user@???> to be rewritten to <user@???> before actual
> relay checking takes place, so it can be rejected because of relaying
> rules after that... (this is what the manual says, is it not?)
>

As far as I can tell the rewrite does occur before the relay test:

From the system 'vulcan',
telnet jhorne.csd.plym.ac.uk 25
...
mail from: jhorne@???
250 <jhorne@???> is syntactically correct
rcpt to: somewhere.com!user@???
550 relaying to <user@???> prohibited by administrator            


As can be seen (last line) the relay test is against 'user@???'
rather than the original recipient
'somewhere.com!user@???'.

What relay configuration options are you using?

John.

------------------------------------------------------------------------
John Horne, University of Plymouth, UK           Tel: +44 (0)1752 233914
E-mail: jhorne@???
PGP key available from public key servers