AW: Redirect mails for non-existing users with specific prefix to a specific account
Hello Luc, thank you very much. I used your pull request to create a patched james-server-data-library.jar. Now it works perfectly. Any idea when there will be an apache james release with this bugfix? Thanks and kind regards, Pascal -Ursprüngliche Nachricht- Von: Luc DUZAN [mailto:ldu...@linagora.com] Gesendet: Mittwoch, 18. Oktober 2017 10:02 An: server-user@james.apache.org Betreff: Re: Redirect mails for non-existing users with specific prefix to a specific account Hello Pascal, Thank you a lot, you find a bug into James, I investigated your problem this morning and I created a James ticket for your bug here: https://issues.apache.org/jira/browse/JAMES-2189 I have started working on a fix that you can check here if you want: https://github.com/linagora/james-project/pull/1047. Best Regards, -- Luc On 17/10/2017 22:24, Schumacher, Pascal wrote: > 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 > > - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Re: Redirect mails for non-existing users with specific prefix to a specific account
Hello Pascal, Thank you a lot, you find a bug into James, I investigated your problem this morning and I created a James ticket for your bug here: https://issues.apache.org/jira/browse/JAMES-2189 I have started working on a fix that you can check here if you want: https://github.com/linagora/james-project/pull/1047. Best Regards, -- Luc On 17/10/2017 22:24, Schumacher, Pascal wrote: > 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 > > - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org
Redirect mails for non-existing users with specific prefix to a specific account
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