emailwiz icon indicating copy to clipboard operation
emailwiz copied to clipboard

Resolve "Anyone can send mails from a local user as long as the recipient is another local user"

Open william-stacken opened this issue 3 years ago • 2 comments

Fixes #237

It works, but note that I have only tested this using my setup where this script is partially run in docker, so I haven't tested this using the vanilla script.

william-stacken avatar Sep 11 '22 10:09 william-stacken

What's with the bizarre double echo command? Why not just echo "/^(.*)@$domain$/ \${1}" or something like that?

LukeSmithxyz avatar Sep 12 '22 19:09 LukeSmithxyz

You need to escape any dots in the domain name (.) into (\.). For example, example.com should turn into example\.com. Hence the double echo with the sed command.

william-stacken avatar Sep 13 '22 14:09 william-stacken

I'm going to assume that this bugfix is unnecessary after b657e768c9f9a9773b7767b286d1b16603ecd4ae, although if the issue persists, I'll merge this.

LukeSmithxyz avatar Oct 15 '22 19:10 LukeSmithxyz