Hello everbody, how to redirect mails for non-existing users with a specific prefix to specific account?
I downloaded james 3.0 and ran >james-cli adddomain test >james-cli adduser admin@test password Then I used jmx to call addRegexMapping("*", "test", ".*:admin@test") and everything works fine (mails to "prefix_abc@test" are redirected to "admin@test"). But my real requirement is to redirect mails with specific prefixes to different accounts. So I remove the regex mapping above and call addRegexMapping("*", "test", "prefix_.*:admin@test") instead. But when I now connect to james and try to send a mail to prefix_abc@test I get: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 Unknown user: prefix_abc@test I also tried these options: addRegexMapping("*", "test", "prefix_*:admin@test") addRegexMapping("prefix_*", "test", "prefix_.*:admin@test") but the result is the same error. Thanks and kind regards, Pascal