[exim-dev] [Bug 1367] New: Odd behaviour of regex rewriting

Inizio della pagina
Delete this message
Reply to this message
Autore: Ian
Data:  
To: exim-dev
Nuovi argomenti: [exim-dev] [Bug 1367] Odd behaviour of regex rewriting
Oggetto: [exim-dev] [Bug 1367] New: Odd behaviour of regex rewriting
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1367
           Summary: Odd behaviour of regex rewriting
           Product: Exim
           Version: 4.72
          Platform: x86-64
        OS/Version: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Address Rewriting
        AssignedTo: nigel@???
        ReportedBy: ian.carmichael@???
                CC: exim-dev@???



We've had a few rewrite rules working fine but these were mapping one fixed
address to another. I've tried using a regular expression in the address
rewrite:

\N^username\d{6}@domain$\N username@domain EhS

(where I've substituted username and domain for the values I'm using)

I can do:
exim -brw username123456@domain
    SMTP: username@domain
  sender: username@domain
    from: username@domain
      to: username@domain
      cc: username@domain
     bcc: username@domain
reply-to: username@domain
env-from: username@domain
  env-to: username@domain


which is the result I want. I can also do a telnet session from a remote
computer and send a message via HELO, MAIL FROM, RCPT TO and the rewrite
happens and the mail gets through. When I try and send from other places e.g.
Yahoo, Google then I get an unknown recipient:

2013-07-12 12:00:47 H=nm8-vm1.bullet.mail.ird.yahoo.com [77.238.189.198]
F=<me@???> rejected RCPT <username123456@domain>: Unknown recipient.

Have I missed something? or is something not working as expected?


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email